/* === ROOT & THEME VARIABLES === */
:root {
    /* Colors */
    --color-primary-light: #3b82f6;
    --color-primary-dark: #8b5cf6;
    --color-secondary: #06b6d4;
    --color-success: #238636;
    --color-white: #ffffff;

    /* Dark Theme */
    --bg-dark: #0d1117;
    --bg-dark-secondary: #161b22;
    --text-dark: #f0f6fc;
    --text-dark-secondary: #8b949e;
    --border-dark: #30363d;
    --shadow-color-dark: rgba(139, 92, 246, 0.1);

    /* Light Theme */
    --bg-light: #ffffff;
    --bg-light-secondary: #f6f8fa;
    --text-light: #24292e;
    --text-light-secondary: #586069;
    --border-light: #d0d7de;
    --shadow-color-light: rgba(0, 0, 0, 0.07);
    
    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    
    /* Transitions & Shadows */
    --transition-base: 0.3s ease;
    --shadow-sm: 0 4px 16px var(--shadow-color);
    --shadow-md: 0 8px 32px var(--shadow-color);
    
    /* Layout */
    --navbar-height: 70px;
    --container-padding: 16px;
    --container-max-width: 1280px;
}

/* === BASE & RESET STYLES === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

body.dark-theme {
    --bg-color: var(--bg-dark);
    --bg-secondary: var(--bg-dark-secondary);
    --text-color: var(--text-dark);
    --text-secondary: var(--text-dark-secondary);
    --border-color: var(--border-dark);
    --shadow-color: var(--shadow-color-dark);
}

body:not(.dark-theme) {
    --bg-color: var(--bg-light);
    --bg-secondary: var(--bg-light-secondary);
    --text-color: var(--text-light);
    --text-secondary: var(--text-light-secondary);
    --border-color: var(--border-light);
    --shadow-color: var(--shadow-color-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary-dark);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Universal Focus Styles */
:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
    border-radius: 6px;
}

/* === BUTTONS & COMMON ELEMENTS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-icon:hover {
    color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: scale(1.05);
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(var(--bg-rgb), 0.98);
    /* Directly set a neutral shadow to prevent "purple line" */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}
body.dark-theme { --bg-rgb: 13, 17, 23; }
body:not(.dark-theme) { --bg-rgb: 255, 255, 255; }


.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo .neuorial-logo {
    height: 155px;
    width: auto;
}

.nav-links a {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all var(--transition-base);
}

.nav-links a:hover {
    background-color: var(--bg-secondary);
    color: var(--color-primary-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
body:not(.dark-theme) .theme-toggle-btn .sun-icon { display: block; }
body:not(.dark-theme) .theme-toggle-btn .moon-icon { display: none; }

.desktop-only { display: none; }

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
}
.mobile-menu.active { display: block; }
.mobile-menu-content { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu-content a {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all var(--transition-base);
}
.mobile-menu-content a:hover { background-color: var(--bg-secondary); }
.mobile-cta { margin-top: 16px; }

/* === SECTIONS & HEADERS === */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.subtitle-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--navbar-height);
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
}
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 12s ease-in-out infinite;
    will-change: transform;
}
body:not(.dark-theme) .gradient-orb { opacity: 0.2; }
.orb-1 { width: 400px; height: 400px; background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%); top: 10%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-dark) 100%); top: 50%; right: -10%; animation-delay: 3s; }
.orb-3 { width: 250px; height: 250px; background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%); bottom: 10%; left: 40%; animation-delay: 6s; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }

.hero-container {
    display: grid;
    gap: 40px;
    align-items: center;
    text-align: center;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 8px;
    transition: transform var(--transition-base);
}
.stat-link:hover { transform: scale(1.05); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--text-color); }
.stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }
.hero-visual {
    position: relative;
    height: 350px; /* Reverted height to original for 3 cards */
    margin-top: 40px;
}
.demo-card {
    position: absolute;
    background: rgba(var(--bg-rgb), 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    animation: cardFloat 8s ease-in-out infinite;
    box-shadow: var(--shadow-sm);
}
/* Original positions for the three demo cards */
.card-1 { top: 0; left: 0; width: 260px; animation-delay: 0s; }
.card-2 { top: 120px; right: 0; width: 220px; animation-delay: 2.5s; }
.card-3 { bottom: 0; left: 50%; transform: translateX(-50%); width: 200px; animation-delay: 5s; }


@keyframes cardFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
.card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.card-header span { font-size: 0.9rem; font-weight: 500; }
.progress-bar { width: 100%; height: 4px; background: var(--border-color); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-light)); width: 75%; animation: progressAnimation 3s ease-in-out infinite alternate; }
@keyframes progressAnimation { from { width: 20%; } to { width: 90%; } }
.progress-text { font-size: 0.8rem; color: var(--text-secondary); }
.metric-value { font-size: 1.5rem; font-weight: 700; color: var(--color-success); }
.metric-label { font-size: 0.8rem; color: var(--text-secondary); }
.sync-visual { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sync-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--color-primary-light); animation: syncPulse 2s ease-in-out infinite; }
.sync-line { width: 40px; height: 2px; background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent); animation: syncLine 2s ease-in-out infinite; }
@keyframes syncPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.7; } }
@keyframes syncLine { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* === SERVICES & WORKFLOW ANIMATION === */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-dark);
}

.service-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--color-white); margin-bottom: 24px;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.service-card p { color: var(--text-secondary); }

.workflow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.5;
}
body:not(.dark-theme) .workflow-bg { opacity: 0.2; }

#workflow-svg .workflow-paths path {
    stroke: url(#lineGradient);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 1000; 
    stroke-dashoffset: 1000;
}
#workflow-svg.animate .workflow-paths path {
    animation: draw-line 3s ease-out forwards;
}

#workflow-svg .workflow-nodes circle {
    fill: var(--border-color);
    opacity: 0;
}
#workflow-svg.animate .workflow-nodes circle {
    animation: fade-in-node 1s ease-out forwards;
}

#workflow-svg.animate path:nth-child(2), #workflow-svg.animate circle:nth-child(2) { animation-delay: 0.2s; }
#workflow-svg.animate path:nth-child(3), #workflow-svg.animate circle:nth-child(3) { animation-delay: 0.4s; }
#workflow-svg.animate path:nth-child(4), #workflow-svg.animate circle:nth-child(4) { animation-delay: 0.6s; }
#workflow-svg.animate path:nth-child(5), #workflow-svg.animate circle:nth-child(5) { animation-delay: 0.8s; }
#workflow-svg.animate path:nth-child(6), #workflow-svg.animate circle:nth-child(6) { animation-delay: 1s; }

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes fade-in-node {
    to {
        opacity: 1;
    }
}


/* === CASE STUDIES === */
.case-studies { background-color: var(--bg-color); }
body.dark-theme .case-studies { background-color: #11151a; }

.case-studies-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.case-study {
    background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px;
    padding: 32px; transition: all var(--transition-base); box-shadow: var(--shadow-sm);
}
.case-study:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--color-secondary); }
.case-study-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.company-info { display: flex; align-items: center; gap: 16px; }
.company-logo {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-dark) 100%);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--color-white); font-size: 1.5rem; font-weight: 600;
}
.company-info h4 { font-size: 1.25rem; font-weight: 600; }
.company-info span { font-size: 0.9rem; color: var(--text-secondary); }
.case-study-metric { text-align: right; }
.case-study-metric .metric-value { font-size: 1.75rem; color: var(--color-secondary); font-weight: 700; }
.case-study h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 16px; }
.case-study p { color: var(--text-secondary); }

/* === PRICING === */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.pricing-card {
    text-align: center; display: flex; flex-direction: column;
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 32px; transition: all var(--transition-base); box-shadow: var(--shadow-sm);
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pricing-card.popular { 
    border-color: var(--color-primary-light); 
}

.pricing-header { margin-bottom: 32px; }
.pricing-header h3 { font-size: 1.75rem; }
.pricing-header p { color: var(--text-secondary); }
.pricing-features { text-align: left; margin-bottom: 32px; flex-grow: 1; }
.feature { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1rem; }
.feature svg { color: var(--color-success); flex-shrink: 0; }

/* === TESTIMONIALS === */
.testimonials { background-color: var(--bg-secondary); }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.testimonial-card {
    display: flex; flex-direction: column; justify-content: space-between;
    background-color: var(--bg-color); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 32px; transition: all var(--transition-base); box-shadow: var(--shadow-sm);
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
    border-left: 3px solid var(--color-primary-light);
    padding-left: 20px;
}
.author-info { display: flex; align-items: center; gap: 16px; font-style: normal; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-name { display: block; font-weight: 600; }
.author-title { font-size: 0.9rem; color: var(--text-secondary); }

/* === ABOUT US SECTION === */
.about-us { background-color: var(--bg-color); }
body.dark-theme .about-us { background-color: #11151a; }

.about-content-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px; /* Limit width to keep text readable */
    margin: 0 auto;
}

.about-visual {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.about-visual svg {
    width: 80px;
    height: 80px;
    color: var(--color-white);
}

.about-text-content {
    text-align: center;
}

.about-text-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* === FAQ SECTION === */
.faq { background-color: var(--bg-secondary); }
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-base);
}
.faq-item.active {
    border-color: var(--color-primary-light);
}
.faq-question {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}
.faq-question span {
    padding-right: 16px;
}
.faq-icon {
    transition: transform var(--transition-base);
    flex-shrink: 0;
}
.faq-item.active .faq-icon {
    transform: rotate(90deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 300px;
}


/* === CONTACT SECTION === */
.contact-section { background: var(--bg-color); }
body.dark-theme .contact-section { background-color: #11151a; }

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.contact-form .form-row { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 24px; 
    margin-bottom: 24px; 
}
.contact-form .form-group { text-align: left; }
.contact-form .form-group:last-child { margin-bottom: 24px; } /* Adjusted margin for last form group */

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 16px;
    height: 16px;
    transition: color var(--transition-base);
}
.input-wrapper textarea ~ svg {
    top: 18px;
    transform: none;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.contact-form input:focus ~ svg, .contact-form textarea:focus ~ svg {
    color: var(--color-primary-light);
}

.contact-form textarea { resize: vertical; }

.contact-form .form-submit-btn { /* Added class for targeting the submit button directly */
    margin-top: 20px; /* Add space above the button */
}

/* Style for the form submission message */
#form-message {
    margin-top: 16px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}


/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f27 100%);
    color: var(--text-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-dark);
}
body:not(.dark-theme) .footer {
    background: linear-gradient(135deg, var(--bg-light-secondary) 0%, #eef2f7 100%);
    border-top: 1px solid var(--border-light);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.footer .neuorial-logo-footer {
    height: 120px;
    width: auto;
    margin-bottom: 8px;
}

.footer-content p {
    max-width: 450px;
    font-size: 1rem;
    margin-bottom: 16px;
}

/* New: Footer contact info styles */
.footer-contact-info {
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-contact-info p {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: var(--text-color); /* Make this text more prominent */
}

.footer-email-link {
    font-weight: 600;
    color: var(--color-primary-light);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.footer-email-link:hover {
    color: var(--color-primary-dark);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    margin-bottom: 16px;
}

.footer-nav a {
    font-weight: 500;
    transition: color var(--transition-base);
}
.footer-nav a:hover {
    color: var(--color-primary-light);
}

.social-links { 
    display: flex; 
    gap: 20px; 
}
.social-links a { 
    color: var(--text-secondary); 
    transition: all var(--transition-base); 
}
.social-links a:hover { 
    color: var(--color-primary-light); 
    transform: translateY(-2px); 
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* === SCROLL ANIMATIONS === */
.animate-on-scroll { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up { transform: translateY(30px); }
.fade-right { transform: translateX(-30px); }
.zoom-in { transform: scale(0.9); }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

/* === MEDIA QUERIES === */
@media (min-width: 768px) {
    :root { --container-padding: 24px; }
    .desktop-only { display: flex; }
    .mobile-menu-btn, .mobile-menu { display: none; }
    .section-header h2 { font-size: 2.75rem; }
    .subtitle-text { font-size: 1.2rem; }
    .hero-container { grid-template-columns: 1fr 1fr; text-align: left; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin-left: 0; margin-right: 0; }
    .hero-cta { justify-content: flex-start; }
    .hero-stats { justify-content: flex-start; }
    .hero-visual { order: 1; margin-top: 0; }
    
    /* Original positioning for the three demo cards on desktop */
    .card-1 { top: 0; left: 0; width: 260px; }
    .card-2 { top: 120px; right: 0; width: 220px; }
    .card-3 { bottom: 0; left: 50%; transform: translateX(-50%); width: 200px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .case-studies-grid, .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
    .contact-form .form-row { grid-template-columns: 1fr 1fr; }
    .contact-form-wrapper { padding: 48px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }

    /* About Us - Tablet/Desktop */
    .about-content-grid {
        flex-direction: row; /* Horizontal layout */
        text-align: left;
        align-items: center;
        gap: 60px;
    }
    .about-visual {
        margin: 0; /* Remove auto margin from previous text-align: center */
    }
    .about-text-content {
        text-align: left;
    }
}

@media (min-width: 992px) {
    .hero-title { font-size: 4rem; }
    .services-grid, .case-studies-grid, .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

    /* Original positioning for the three demo cards on larger desktops */
    .card-1 { top: 0; left: 0; width: 260px; }
    .card-2 { top: 120px; right: 0; width: 220px; }
    .card-3 { bottom: 0; left: 50%; transform: translateX(-50%); width: 200px; }
}

@media (min-width: 1200px) {
    .hero-container { gap: 80px; }
}
