:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 Helvetica, Arial, sans-serif, "Apple Color Emoji", 
                 "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
}

/* Navigation */
/* Update Navigation styles */
.navbar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
}

/* Update media queries */
@media (max-width: 1024px) {
    .nav-links a {
        margin-left: 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav-links {
        display: flex;
    }
    
    .nav-links a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
}

/* Remove this from the bottom media query */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    /* Remove the display: none for nav-links */
}
.logo img {
    height: 70px;
    width: auto;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
/* Update hero section styles */
.hero {
    padding: 12rem 2rem 8rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), 
                      url('../images/intelligorithm-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    color: white;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 400px;
        padding: 8rem 1rem 4rem;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero .btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
    min-width: 120px;
    max-width: 200px;
    margin: 0 auto;
}

.hero .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Footer */
/* Add these styles for body and main content wrapper */
main {
    flex: 1;
}

/* Update footer styles */
.footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Contact Form Styles */
.contact-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
}

.button-wrapper {
    text-align: right;
    margin-top: 1rem;
}

.btn-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: auto;
    display: inline-block;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.text-danger {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }

    .contact-container,
    .privacy-container {
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .privacy-header h1 {
        font-size: 1.75rem;
    }

    .cookie-preference-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-preference-buttons button {
        width: 100%;
        text-align: center;
    }
}

/* Cookie Preferences Page */
.privacy-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.privacy-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.privacy-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.privacy-header p {
    font-size: 1rem;
    color: #6b7280;
}

.legal-notice {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.legal-notice h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.legal-notice p {
    color: #4b5563;
    line-height: 1.6;
}

.highlight-box {
    margin-bottom: 2rem;
}

.highlight-box h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.cookie-preference-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1rem;
    background-color: #fff;
    transition: box-shadow 0.2s ease-in-out;
}

.cookie-preference-item:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
}

.cookie-preference-item.essential {
    background-color: #f9fafb;
}

.cookie-preference-item input[type="checkbox"] {
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    height: 1.125rem;
    width: 1.125rem;
    border-radius: 4px;
    border-color: #d1d5db;
    color: var(--primary-color);
    flex-shrink: 0;
}

.cookie-preference-item input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-preference-item input[type="checkbox"]:focus {
    ring: 2px;
    ring-offset: 0;
    ring-color: var(--primary-color);
}

.cookie-preference-item .content {
    flex: 1;
}

.cookie-preference-item .label-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-preference-item label {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

.cookie-preference-item p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
}

.cookie-status-badge.essential {
    background-color: #dcfce7;
    color: #166534;
}

.cookie-status-badge.optional {
    background-color: #dbeafe;
    color: #1e40af;
}

.cookie-preference-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-preference-buttons button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.cookie-preference-buttons button:hover {
    opacity: 0.9;
}

.cookie-preference-buttons .btn-reset {
    background-color: #fff;
    border-color: #d1d5db;
    color: #374151;
}

.cookie-preference-buttons .btn-reset:hover {
    background-color: #f9fafb;
}

.cookie-preference-buttons .btn-save {
    background-color: var(--primary-color);
    color: white;
}

.cookie-preference-buttons .btn-save:hover {
    background-color: var(--secondary-color);
}

.contact-section {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-section p {
    color: #4b5563;
}

.contact-section a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for Cookie Preferences Page */
@media (max-width: 768px) {
    .privacy-container {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .privacy-header h1 {
        font-size: 1.5rem;
    }
    
    .privacy-header p {
        font-size: 0.9rem;
    }

    .legal-notice h2 {
        font-size: 1.1rem;
    }
    
    .highlight-box h2 {
        font-size: 1.25rem;
    }
    
    .cookie-preference-item {
        padding: 1rem;
    }
    
    .cookie-preference-item label {
        font-size: 1rem;
    }
    
    .cookie-preference-item p {
        font-size: 0.85rem;
    }
    
    .cookie-preference-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cookie-preference-buttons button {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

/* Update footer styles */
.footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}