* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Design Tokens */
    /* 1. Typography */
    --h1-size: clamp(48px, 6vw, 72px);
    --h1-weight: 700;
    --h1-letter-spacing: -0.02em;
    
    --h2-size: clamp(36px, 4.5vw, 56px);
    --h2-weight: 700;
    --h2-letter-spacing: -0.01em;
    
    --h3-size: clamp(24px, 3vw, 32px);
    --h3-weight: 600;
    
    --body-size: 18px;
    --body-line-height: 1.75;

    /* 2. Colors */
    --color-primary: #0A0A0A;
    --color-accent: #3B82F6;
    --color-surface: #F7F8FA;
    --color-surface-alt: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-light: #6B7280;
    --color-border: #E5E7EB;

    --color-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* 3. Spacing & Sizing */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    --font-logo: 'Poppins', var(--font-sans);

    --spacing-unit: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

    /* 4. Borders & Shadows */
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
}

body {
    font-family: var(--font-sans);
    font-size: var(--body-size);
    line-height: var(--body-line-height);
    color: var(--color-text);
    background: var(--color-surface);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- 1. Global Layout & Structure --- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg); /* 32px */
}

section {
    padding: var(--spacing-3xl) 0;
}

.bg-white {
    background: var(--color-surface-alt);
}

.sub-page {
    background: var(--color-surface-alt);
}

.full-height-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}
.section-header h2 {
    font-family: var(--font-logo);
    font-size: var(--h2-size);
    font-weight: var(--h2-weight);
    letter-spacing: var(--h2-letter-spacing);
    line-height: var(--h2-line-height);
    margin-bottom: var(--spacing-sm);
}
.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 65ch;
    margin: 0 auto;
}

/* --- 2. Header & Navigation --- */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(247, 248, 250, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

nav .logo {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}
nav .logo img {
    height: 70px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--body-size);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-left: var(--spacing-lg); /* Space between menu and buttons */
}

.hamburger { display: none; }

/* --- 3. Reusable Components --- */
/* Buttons */
.btn-primary, .btn-secondary, .btn-secondary-glass {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: var(--body-size);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}
.btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
}

.btn-secondary-glass {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* --- 4. Page Sections --- */
/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-3xl);
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
    align-items: center;
}
.hero-content {
    grid-column: span 7;
}
.hero h1 {
    font-family: var(--font-logo);
    font-size: var(--h1-size);
    font-weight: var(--h1-weight);
    letter-spacing: var(--h1-letter-spacing);
    line-height: var(--h1-line-height);
    margin-bottom: var(--spacing-md);
}
.hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 60ch;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}
.hero .cta-group { display: flex; gap: var(--spacing-sm); }
.hero-visual {
    grid-column: span 5;
    perspective: 1000px;
    position: relative;
    min-height: 400px;
}
.visual-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}
.hero-visual-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Loqonun ölçüsünü daha da böyütdük */
    z-index: 1;
}
.hero-visual-logo img {
    width: 100%;
    height: auto;
    opacity: 1; /* Loqonu tam görünən etdik */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1)); /* Arxasına kölgə əlavə etdik */
}


.gradient-text {
    background: var(--color-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.3em;
    background: rgba(59, 130, 246, 0.2);
    z-index: -1;
    transform: skewY(-2deg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}
.hero-badge svg { width: 16px; height: 16px; }

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* Animated Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--color-gradient-primary);
    top: -250px;
    right: -150px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--color-gradient-accent);
    bottom: -200px;
    left: -150px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* --- Services Section --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    grid-auto-rows: 220px;
}

.service-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}
.service-card:nth-child(1) { animation-delay: 0.1s; grid-column: span 2; grid-row: span 2; }
.service-card:nth-child(2) { animation-delay: 0.2s; grid-column: span 2; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-soft);
}

.service-card > * { position: relative; z-index: 1; }

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}
.service-card p {
    color: var(--color-text-light);
    font-size: var(--body-size);
}
.service-card-cta {
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card-cta h3 { color: white; }
.service-card-cta p { color: rgba(255,255,255,0.7); }
.service-card-cta .cta-arrow {
    font-size: 2rem;
    color: white;
    align-self: flex-end;
    transition: transform 0.3s ease;
}
.service-card-cta:hover .cta-arrow { transform: translateX(10px); }

/* --- About Us Section --- */
.about-section { background: var(--color-surface-alt); }
.about-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
    align-items: center;
}
.about-container { max-width: 1200px; margin: 0 auto; }
.about-visual {
    grid-column: span 3;
    text-align: center;
}
.about-visual svg {
    width: 120px;
    height: 120px;
}
.about-text-wrapper{
    grid-column: span 9;
}
.about-text-wrapper .about-text{
    color: var(--color-text-light); 
    line-height: 1.8;
    max-width: 75ch; /* Oxunaqlı sətir uzunluğu */
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-border);
}
.benefit-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}
.benefit-card .benefit-icon {
    margin-bottom: var(--spacing-sm);
}
.benefit-card .benefit-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}
.benefit-card h3 { font-size: 1.1rem; margin-bottom: var(--spacing-xs); }
.benefit-card p { color: var(--color-text-light); font-size: 16px; }

/* About Text Styling */
.about-section .about-text {
    text-align: justify;
    margin-bottom: var(--spacing-xl); /* Mətndən sonra boşluq */
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal columns */
    gap: var(--spacing-2xl);
    align-items: stretch; /* Make columns equal height */
}

.contact-form-wrapper,
.contact-details-wrapper {
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.contact-column {
    display: flex;
    flex-direction: column;
}

.contact-column-title {
    font-size: 1.5rem; /* Smaller than section title */
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.contact-details-wrapper {
    flex-grow: 1; /* Ensures the card fills the available space */
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-details-list li {
    display: flex;
    align-items: flex-start; /* Align icon to the top */
    gap: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.post-index {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    opacity: 0.8;
}

.contact-details-list li svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-details-list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details-list li a:hover {
    color: var(--color-accent);
}

/* --- Contact Section --- */
.cta-section { background: var(--color-surface-alt); }
.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.form-row {
    display: flex;
    gap: var(--spacing-md);
}
.form-row input, .form-row textarea {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--body-size);
    font-family: inherit;
    transition: border-color 0.3s ease;
}
.form-row textarea {
    min-height: 150px;
    resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-message {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
}
.form-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}
.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}
.contact-info-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}
.contact-info-footer a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}
.contact-info-footer a:hover { color: var(--accent); }
.contact-info-footer svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}
.contact-info-footer a:hover svg { color: var(--accent); }

/* --- Footer --- */
footer {
    background: #111827; /* Darker than primary for contrast */
    color: var(--color-text-light);
    padding: var(--spacing-md) 0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* --- 5. Other Components --- */
/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 43, 77, 0.6);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-md);
    transform: translateY(20px) scale(0.95);
    transition: transform .3s ease;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}
.modal-content h3 {
    font-size: var(--h3-size);
    color: var(--color-text);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-light);
    cursor: pointer;
}
.modal-content .service-details {
    margin-top: var(--spacing-md);
    list-style: none;
    padding: 0;
}
.modal-content .service-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-xs);
    font-size: 1.05rem;
    color: var(--color-text-light);
}
.modal-content .service-details li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 600;
    margin-right: var(--spacing-xs);
    margin-top: 2px;
}
.modal-content .modal-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--accent);
    padding-left: var(--spacing-sm);
}

/* Dot Navigation (can be removed if not needed) */
.dot-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 999;
    display: none; /* Hidden for now */
}

/* --- 6. Responsive Design --- */
@media (max-width: 1024px) {
    .container { padding: 0 var(--spacing-md); }

    nav .container { height: 70px; }
    nav .logo { font-size: 1.5rem; }
    .nav-menu, .nav-cta { display: none; }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 2;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--color-primary);
        transition: all 0.3s ease-in-out;
    }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-menu { /* Mobile menu overlay */
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--color-surface);
        width: 100%;
        height: 100vh;
        text-align: center;
        justify-content: center;
        transition: left 0.3s ease;
        gap: var(--spacing-lg);
    }
    .nav-menu.active { left: 0; }
    .nav-menu a { font-size: 1.5rem; }

    .hero { padding-top: var(--spacing-2xl); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { grid-column: span 1; }
    .hero-visual { display: none; }
    .hero .cta-group { justify-content: center; }
    .hero-stats { justify-content: center; }

    .services-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
    .services-grid-full { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .service-card:nth-child(n) { grid-column: auto; grid-row: auto; }

    .nav-menu.active .nav-cta {
        display: flex;
    }

    .about-grid { grid-template-columns: 1fr; }
    .about-visual { display: none; }
    .benefits-grid { grid-template-columns: 1fr; }

    /* Mobil cihazlarda animasiyanı dayandırıb, alt-alta düzürük */
    .logo-scroll-container { -webkit-mask-image: none; mask-image: none; }
    .partners-grid-animated {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Responsive adjustments for contact section */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .form-row { flex-direction: column; }
    .contact-info-footer { gap: var(--spacing-lg); }
}

@media (max-width: 768px) {
    section { padding: var(--spacing-2xl) 0; }
    .section-header { margin-bottom: var(--spacing-xl); }

    .services-grid, .services-grid-full { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--spacing-sm); }
    .hero h1 { font-size: var(--h2-size); }
    .hero p { font-size: 1rem; }
    .hero .cta-group { flex-direction: column; }
    .nav-menu.active .nav-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--spacing-lg);
    }
    .btn-primary, .btn-secondary, .btn-secondary-glass { width: 100%; text-align: center; justify-content: center; }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #F7F8FA;
        --color-surface: #0F172A;
        --color-surface-alt: #1E293B;
        --color-text: #F1F5F9;
        --color-text-light: #94A3B8;
        --color-border: #334155;
    }
    .service-card, .benefit-card { background: var(--color-surface-alt); }
    .btn-secondary-glass {
        background: rgba(51, 65, 85, 0.5); /* Darker glass effect */
        border-color: rgba(148, 163, 184, 0.3);
        color: var(--color-text);
    }
}

/* Styles for full-page service grid */
.services-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem; /* var(--spacing-md) is 24px, this is 20px */
}

.services-grid-full .service-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-grid-full .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-accent);
}

/* CTA Card in Services Grid */
.services-grid-full .service-card-cta {
    background: var(--color-accent);
    color: white;
    text-decoration: none;
}

.services-grid-full .service-card-cta h3 {
    color: white;
}

.services-grid-full .service-card-cta p {
    color: rgba(255, 255, 255, 0.8);
}

.services-grid-full .service-card-cta .cta-arrow {
    font-size: 2rem;
    align-self: flex-end;
}

/* --- Partners & Clients Animated Scroll --- */
.logo-scroll-container {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-top: var(--spacing-xl);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partners-grid-animated {
    display: flex;
    gap: 1.5rem;
    width: max-content; /* Allow the container to grow with its content */
    animation: scrollLogos 40s linear infinite;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-accent);
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-card {
    background-color: var(--color-surface-alt);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    width: 220px;
    height: 140px;
    flex-shrink: 0; /* Prevent cards from shrinking */
}

.partner-card img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* --- End of Partners & Clients --- */