/* ==========================================
   JuiceTeam - Cyberpunk Future Main Styles
   ========================================== */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    /* Tighter letter spacing for headings */
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    /* Bolder h1 */
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

/* Global Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
}

/* Social Links - Enhanced Visibility */
.social-links {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.social-link {
    color: var(--color-white) !important;
    opacity: 0.9;
    transition: all var(--transition-base);
    width: 48px;
    /* Bigger touch target */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    /* Button background */
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark theme social links - match chat button */
[data-theme="dark"] .social-link {
    background: rgba(26, 115, 232, 0.7);
    border-color: rgba(26, 115, 232, 0.7);
}

.social-link:hover {
    color: var(--color-white) !important;
    opacity: 1;
    transform: translateY(-3px);
    background: var(--color-primary);
    /* Primary color on hover */
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .social-link:hover {
    background: rgba(26, 115, 232, 0.85);
    border-color: rgba(26, 115, 232, 0.85);
}

.social-link svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: currentColor;
    color: white !important;
}

p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ==========================================
   Navigation - Dual Theme Compatible
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    z-index: 200;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-10);
    /* Increased padding */
    position: relative;
}

/* Logo - Far Left */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: var(--text-lg);
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-text {
    font-weight: 600;
}

.logo-icon {
    font-size: 1.5rem;
}

/* Navigation Links - Center */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    position: relative;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: var(--space-2) 0;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

/* Dropdown Toggle */
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.nav-dropdown-toggle:hover svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all var(--transition-base);
    z-index: 100;
    padding: var(--space-2);
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-tertiary);
}

/* Nav Actions - Right */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    margin-left: auto;
    /* Push to the right */
}

/* Language Selector - JuiceCore Style */
.lang-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    /* Removed border */
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    height: 36px;
}

.lang-toggle:hover {
    background: var(--color-bg-hover);
    /* border-color removed */
}

.lang-toggle svg {
    width: 14px;
    height: 14px;
    display: none;
}

.current-lang {
    font-size: var(--text-sm);
    font-weight: 500;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-option:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.lang-option.active {
    color: var(--color-primary);
    font-weight: 600;
    background: var(--color-primary-bg);
}

.lang-option.active::after {
    content: '✓';
    font-weight: 700;
}

[data-theme="dark"] .social-link:hover {
    background: rgba(26, 115, 232, 0.85);
    border-color: rgba(26, 115, 232, 0.85);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Icon Button - JuiceCore Style */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    /* Removed border */
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--color-bg-hover);
    /* border-color removed */
}

.icon-btn .sun-icon {
    display: none;
}

.icon-btn .moon-icon {
    display: block;
}

[data-theme="dark"] .icon-btn .sun-icon {
    display: block;
}

[data-theme="dark"] .icon-btn .moon-icon {
    display: none;
}

/* Buttons - JuiceCore Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
    height: 36px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: white;
    /* Ensure text stays white on hover */
    /* transform: translateY(-1px); REMOVED to keep button static */
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(64px + var(--space-20)) 0 var(--space-20);
    overflow: clip;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26, 115, 232, 0.08), transparent);
}

[data-theme="dark"] .hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(138, 180, 248, 0.12), transparent);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--color-border-light) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    transform: none !important;
    /* Force no movement */
    animation: none !important;
    /* Force no animation */
    transition: none !important;
    /* Force no transition */
}

/* Prevent layout shift during typing effect */
.hero-subtitle {
    min-height: 3.6em;
    /* Reserve space for 2 lines to prevent any jumping on wrap */
    display: flex;
    /* Ensure proper alignment if needed */
    align-items: center;
    /* Center text vertically if single line? Or top? */
    justify-content: center;
    overflow: hidden;
    /* Hide anything that exceeds 2 lines */
}

/* Use standard font for typing effect */
[data-typing] {
    font-family: var(--font-sans) !important;
    letter-spacing: normal !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    /* Changed from var(--color-primary-bg) */
    border: 1px solid var(--color-primary-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.hero .container {
    position: relative;
    /* Changed from sticky to relative to prevent jumping */
    z-index: 20;
}

.hero-title {
    font-size: 5rem;
    /* Increased from var(--text-6xl) which was 4rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
    opacity: 1;
    transform: none !important;
    /* Force no movement */
    animation: none !important;
    /* Force no animation */
    transition: none !important;
    /* Force no transition */
}

/* NUCLEAR OPTION: Stop any movement in children */
.hero-title span,
.hero-title .holographic,
.hero-title .neon-cyan {
    transform: none !important;
    animation: none !important;
    transition: none !important;
    background-size: 100% 100% !important;
    /* Prevent background moving */
    background-position: center !important;
}

.text-gradient {
    background: linear-gradient(135deg, #1A73E8 0%, #4285F4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #8AB4F8 0%, #AECBFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    margin-top: var(--space-6);
    /* Added spacing above description */
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    /* Hidden for typewriter */
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: var(--space-20) 0;
}

/* Specific sections with larger spacing */
.features,
.capabilities,
.about-section,
.blogs-section,
.section {
    padding: var(--space-40) 0 !important;
    /* Reduced from 16rem to 10rem */
    margin-bottom: var(--space-12);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    padding: var(--space-10);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1A73E8, #4285F4);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.product-super-title {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
}

.product-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.product-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    padding: var(--space-8);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    text-align: center;
}

.team-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.team-avatar {
    font-size: 4rem;
    margin-bottom: var(--space-4);
}

.team-name {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.team-role {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.team-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Product Split Layout (Desc Left, Visual Right) */
.product-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    /* Reduced gap */
    align-items: center;
    margin-bottom: var(--space-8);
    /* Reduced margin */
    padding: var(--space-6);
    /* Reduced padding */
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
}

.product-split-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
    text-align: left;
}

.product-split-visual {
    width: 100%;
    height: 220px;
    /* Reduced height from 300px */
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    /* Reduced icon size */
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.product-split-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(26, 115, 232, 0.1), transparent 70%);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature-card {
    padding: var(--space-8);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

.feature-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.feature-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Footer */
.footer {
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-alt);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.footer-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}


.footer-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-light);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: calc(64px + var(--space-8));
        padding-bottom: var(--space-12);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-description {
        font-size: var(--text-lg);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: var(--space-8);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-description {
        font-size: var(--text-base);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   About Us Section - Developer Carousel
   =================================== */
.about-section {
    padding: var(--space-20) 0;
    overflow: hidden;
    /* Prevent content from extending beyond section */
}

/* Carousel Wrapper - Full Width */
.developer-carousel-wrapper {
    width: 100%;
    margin-top: var(--space-12);
    overflow: hidden;
    /* Clip any overflow */
}

/* Carousel Container */
/* Carousel Container */
.developer-carousel {
    position: relative;
    width: auto;
    /* Allow auto width */
    margin-left: var(--space-12);
    /* Move margin here for clipping */
    overflow: hidden;
    /* Clips content at margin edge */
    border-top-left-radius: var(--radius-2xl);
    border-bottom-left-radius: var(--radius-2xl);
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: var(--space-12);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 var(--space-8) 0 0;
    margin-left: 0;
    /* Remove margin from track */
}

.carousel-slide {
    min-width: 65%;
    /* Reduced from 75% to prevent overflow */
    max-width: 850px;
    flex-shrink: 0;
    margin-right: var(--space-6);
    /* Gap between slides */
}

/* Developer Card */
.developer-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: auto;
    /* Changed from 100% to auto */
}

.developer-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.1) 0%,
            rgba(118, 75, 162, 0.1) 50%,
            rgba(240, 147, 251, 0.1) 100%);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 3s infinite;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.4;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Developer Carousel Wrapper */
.developer-carousel-wrapper {
    position: relative;
    padding-bottom: 100px;
    /* Space for absolute controls */
    max-width: 100%;
    /* Was 1200px */
    margin: 0 auto;
    min-height: 800px;
    /* Use min-height to allow expansion */
    height: auto;
    /* Allow auto height */
    overflow: visible;
    /* Allow content to flow */
}

/* Static Developer Info */
.developer-info-static {
    padding: var(--space-8) var(--space-12);
    max-width: 800px;
    /* Increased width for text */
    margin: var(--space-8) 0 0 var(--space-12);
    /* Align Left */
    height: 250px;
    /* Fixed height to prevent button jumping */
    overflow: hidden;
    /* Hide overflow if text is too long */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top */
    text-align: left;
}

.developer-info-static .developer-role {
    color: #1a1a1a;
}

.developer-info-static .developer-title {
    color: #333333;
}

.developer-info-static .developer-description {
    color: #4a4a4a;
}

.developer-role,
.developer-title,
.developer-description {
    opacity: 1;
    /* Start visible, allow JS to animate */
    transition: opacity 0.3s ease;
}

.developer-role {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: #1a1a1a !important;
    /* Explicit dark color for light theme */
    margin-bottom: var(--space-3);
}

.developer-title {
    font-size: var(--text-base);
    color: #333333 !important;
    /* Explicit medium-dark color */
    font-weight: var(--font-medium);
    margin-bottom: var(--space-3);
}

.developer-description {
    font-size: var(--text-base);
    color: #4a4a4a !important;
    /* Explicit gray color */
    line-height: 1.6;
}

/* Typing Animation / Visible State - kept for future animations */
.developer-info-static.typing .developer-role,
.developer-info-static.typing .developer-title,
.developer-info-static.typing .developer-description {
    opacity: 1;
}

.developer-info-static.typing .developer-role {
    transition-delay: 0.1s;
}

.developer-info-static.typing .developer-title {
    transition-delay: 0.3s;
}

.developer-info-static.typing .developer-description {
    transition-delay: 0.5s;
}

@keyframes fadeInTyping {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Navigation - Bottom - FIXED POS */
.carousel-controls {
    position: absolute;
    bottom: var(--space-8);
    /* 32px from bottom of wrapper */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    /* margin-top removed to avoid layout shift */
    z-index: 10;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-gray-400);
    /* Darker border */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-gray-700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Highlight shadow */
}

.carousel-btn:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: none;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

/* Carousel Indicators - Hidden */
.carousel-indicators {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-slide {
        min-width: calc(70% - var(--space-3));
    }

    .carousel-track {
        margin-left: var(--space-8);
    }

    .developer-info-static {
        margin-left: var(--space-8);
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        min-width: calc(80% - var(--space-3));
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .carousel-track {
        margin-left: var(--space-4);
    }

    .developer-info-static {
        margin-left: var(--space-4);
        padding: var(--space-6) var(--space-8);
    }

    .developer-role {
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        min-width: calc(90% - var(--space-3));
    }

    .carousel-track {
        padding: 0 var(--space-4);
        margin-left: 0;
    }

    .developer-info-static {
        margin-left: 0;
        padding: var(--space-6);
        max-width: 100%;
    }
}

/* Dark Theme Support */
/* Dark Theme Support */
[data-theme="dark"] .developer-card {
    background: var(--color-bg-elevated);
}

[data-theme="dark"] .developer-role {
    color: #ffffff !important;
    opacity: 1 !important;
}

[data-theme="dark"] .developer-title {
    color: #e0e0e0 !important;
    opacity: 1 !important;
}

[data-theme="dark"] .developer-description {
    color: #cccccc !important;
    opacity: 1 !important;
}

[data-theme="dark"] .developer-photo {
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.15) 0%,
            rgba(118, 75, 162, 0.15) 50%,
            rgba(240, 147, 251, 0.15) 100%);
}

[data-theme="dark"] .carousel-btn {
    background: rgba(0, 0, 0, 0.6) !important;
    /* Dark background */
    border-color: rgba(255, 255, 255, 0.6) !important;
    /* Highlight */
    color: white !important;
    backdrop-filter: blur(4px);
}

[data-theme="dark"] .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    border-color: white !important;
}

/* ===================================
   Capabilities Section (Ported from JTv2)
   =================================== */
.capabilities-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
}

.capability-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.capability-item.reverse {
    direction: rtl;
}

.capability-item.reverse>* {
    direction: ltr;
}

.capability-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.capability-description {
    color: var(--color-text-secondary);
    /* Theme-aware color */
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.capability-list {
    list-style: none;
    padding: 0;
}

.capability-list li {
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    position: relative;
    color: var(--color-text-primary);
    /* Theme-aware color */
}

.capability-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.capability-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-box {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.box-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.box-2 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.box-3 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.box-4 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.capability-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.capability-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {

    .capability-item,
    .capability-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .capability-visual {
        height: 250px;
    }
}

/* ===================================
   Footer (Ported from JTv2 - Purple Style)
   =================================== */
.footer {
    background: #0F0F0F !important;
    /* Dark Background */
    color: var(--color-white);
    padding: 120px 0 100px !important;
    /* Збільшено padding для більшого футера */
    margin-top: 60px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CTA Styles inside Footer */
.cta-content {
    margin-top: 0;
    margin-bottom: var(--space-12);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title {
    font-size: var(--text-5xl);
    position: relative;
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.cta-description {
    font-size: var(--text-xl);
    position: relative;
    margin-bottom: var(--space-8);
    color: var(--color-white);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    /* Ensure visibility */
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Footer Grid & Links */
.footer-container-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-brand-centered {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-12);
    padding-top: var(--space-8);
    /* Space for line */
    position: relative;
    font-size: 3.5rem;
    /* Larger Brand Text */
    font-weight: 800;
    /* Bolder */
    color: var(--color-white);
}

/* White separator line (not full width) */
.footer-brand-centered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    /* Partial width */
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-12);
    width: 100%;
    max-width: 1000px;
    margin-bottom: var(--space-12);
    text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.footer-col-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #FFFFFF !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-2);
}

.footer-col-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-col-links a {
    color: #FFFFFF !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: var(--text-base);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.footer-col-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
    transform: translateX(3px);
}

/* Button overrides for dark context */
.footer .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.footer .btn-outline:hover {
    background: var(--color-white);
    color: #764ba2;
}

.footer .btn-primary {
    background: var(--color-white);
    color: #764ba2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ===================================
   Latest Blogs Section (Corrected)
   =================================== */
.blogs-section {
    padding: var(--space-40) 0 !important;
}

.blogs-grid {
    display: grid;
    /* Force 3 columns */
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}

/* Blog Card Container */
.blog-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Image Top, Content Bottom */
    height: 100%;
    /* Uniform height */
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Image Wrapper */
.blog-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-alt);
    /* Fallback */
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(240, 147, 251, 0.1) 100%);
}

.image-placeholder .placeholder-icon {
    font-size: 3rem;
    opacity: 0.6;
}

/* Content Wrapper */
.blog-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.blog-date {
    color: var(--color-text-secondary);
}

.blog-category {
    color: var(--color-primary);
    font-weight: 600;
}

.blog-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.blog-excerpt {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex: 1;
}

.blog-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.blog-link:hover {
    gap: var(--space-3);
}

/* Responsive */
@media (max-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr;
    }
}

/* Policy Pages Typography */
.policy-content {
    font-size: 1.125rem;
    /* 18px for readability */
    line-height: 1.8;
    /* Relaxed line height */
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

.policy-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.policy-content p {
    margin-bottom: var(--space-6);
}

.policy-content ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-6);
}

.policy-content li {
    margin-bottom: var(--space-2);
}

.policy-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.policy-content a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ==========================================
   Mobile Menu
   ========================================== */
.mobile-menu-toggle {
    display: none;
    z-index: 210;
    position: relative;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 205;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-links {
    transform: translateY(0);
}

.mobile-menu-link {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

/* Force remove inset shadow from neon borders to fix 'blue background' issue */
.neon-border-cyan {
    box-shadow: none !important;
    /* Remove glow for clean black border */
    border-color: #000000 !important;
    /* Force black border */
}

.hero-badge {
    background: transparent !important;
    box-shadow: none !important;
    /* Start clean */
    border: 1px solid #000000 !important;
    /* Force black border */
    color: var(--color-text-primary) !important;
    /* Neutral text color */
}

/* Re-apply subtle outer glow if needed, but ensure NO inset and neutral color */
.hero-badge.animate-pulse-glow {
    box-shadow: none !important;
    /* No glow */
    animation: none !important;
    /* Stop animation */
}