﻿/* =========================================
   1. GLOBAL & VARIABLES
   ========================================= */
:root {
    /* Palette */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #ec4899;
    --accent: #8b5cf6;

    /* Text */
    --text-main: #111827;
    --text-muted: #4b5563;
    --bg-color: #f8fafc;

    /* Glass & Depth */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: 20px;
    --glass-saturation: 180%;
    /* Makes colors behind glass pop */

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #6366f1;       /* Indigo */
    --primary-dark: #4f46e5;
    --secondary: #ec4899;     /* Pink */
    --accent: #8b5cf6;        /* Violet */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* =========================================
   2. HERO LAYOUT
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Background Ambient Glow */
.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.1) 50%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: pulse-glow 10s ease-in-out infinite alternate;
}

.hero-container {
    max-width: 1280px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* =========================================
   3. TYPOGRAPHY & TEXT
   ========================================= */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fade-in-left 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Status Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.25rem;
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

/* Title */
.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 500px;
}

/* =========================================
   4. BUTTONS
   ========================================= */
.buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

/* Primary CTA */
.btn-primary {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    gap: 0.75rem;
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.5);
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(79, 70, 229, 0.6);
}

/* Icon Buttons */
.btn-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    color: var(--text-main);
    border: 1px solid #e5e7eb;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

.btn-icon:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* Active/tap state for mobile */
.btn-icon:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Icon Button Group */
.btn-icon-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* GitHub icon specific color on hover */
.btn-icon[aria-label="GitHub"]:hover {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

/* Resume icon specific color on hover */
.btn-icon[aria-label="Resume"]:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Tooltips */
.btn-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--text-main);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover .btn-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   5. VISUAL (3D & CARDS)
   ========================================= */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in-up 1s ease 0.2s backwards;
}

.circle-backdrop {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-img {
    width: 90%;
    height: auto;
    object-fit: contain;
    z-index: 5;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
    animation: levitate 5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.image-wrapper:hover .hero-img {
    transform: scale(1.05) translateY(-10px);
}

/* Floating Glass Cards */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Tech Icon Styles */
.tech-card {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.tech-card:hover {
    transform: scale(1.1);
    background: white;
}

/* Tech Positions */
.pos-1 { top: 10%; left: 0; animation: float 6s ease-in-out infinite; }
.pos-2 { top: 20%; right: 0; animation: float 5s ease-in-out infinite 0.5s; }
.pos-3 { bottom: 15%; left: 5%; animation: float 7s ease-in-out infinite 1s; }

/* Enhanced Code Window */
.code-card {
    bottom: 5%;
    right: 5%;
    width: 240px;
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.9); /* Dark background for code */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite 1.5s;
    transform: translateZ(20px);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.filename {
    font-family: monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: auto;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }

.code-content {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.indent { margin-left: 1rem; }
.indent-2 { margin-left: 2rem; }
.c-pink { color: #c084fc; }
.c-blue { color: #60a5fa; }
.c-cyan { color: #22d3ee; }

/* =========================================
   6. RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        align-items: center;
    }

    .desc {
        margin: 0 auto;
    }

    .buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
    }

    .image-wrapper {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .title { font-size: 2.25rem; }
    .code-card { display: none; } /* Hide complex element on very small screens */
    .hero { padding: 1rem; }
}

/* =========================================
   7. KEYFRAMES
   ========================================= */
@keyframes fade-in-left {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0px, -10px); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}
/* =========================================
   6. TECH LOOP SECTION
   ========================================= */
.tech-section {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.tech-loop-mask {
    max-width: 100%;
    overflow: hidden;
    /* Enhanced fading mask */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.tech-loop-track {
    display: flex;
    width: max-content;
    gap: 6rem;
    animation: loop-scroll 35s linear infinite;
    padding: 1.5rem 0;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2.5rem;
    color: #94a3b8; /* Muted slate */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(100%) opacity(0.7);
    cursor: pointer;
    position: relative;
}

.tech-item span {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--text-main);
    white-space: nowrap;
}

/* Hover Effects */
.tech-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15) translateY(-5px);
}

.tech-item:hover span {
    opacity: 1;
    transform: translateX(0);
}

/* Brand Colors on Hover */
.tech-item:hover .fa-html5 { color: #e34c26; filter: drop-shadow(0 4px 6px rgba(227, 76, 38, 0.3)); }
.tech-item:hover .fa-css3-alt { color: #264de4; filter: drop-shadow(0 4px 6px rgba(38, 77, 228, 0.3)); }
.tech-item:hover .fa-js { color: #f7df1e; filter: drop-shadow(0 4px 6px rgba(247, 223, 30, 0.3)); }
.tech-item:hover .fa-react { color: #61dafb; filter: drop-shadow(0 4px 6px rgba(97, 218, 251, 0.3)); }
.tech-item:hover .fa-node-js { color: #339933; filter: drop-shadow(0 4px 6px rgba(51, 153, 51, 0.3)); }
.tech-item:hover .fa-git-alt { color: #f05032; filter: drop-shadow(0 4px 6px rgba(240, 80, 50, 0.3)); }
.tech-item:hover .fa-docker { color: #2496ed; filter: drop-shadow(0 4px 6px rgba(36, 150, 237, 0.3)); }
.tech-item:hover .fa-aws { color: #ff9900; filter: drop-shadow(0 4px 6px rgba(255, 153, 0, 0.3)); }
.tech-item:hover .fa-python { color: #3776ab; filter: drop-shadow(0 4px 6px rgba(55, 118, 171, 0.3)); }
.tech-item:hover .fa-angular { color: #dd0031; filter: drop-shadow(0 4px 6px rgba(221, 0, 49, 0.3)); }
.tech-item:hover .fa-vuejs { color: #42b883; filter: drop-shadow(0 4px 6px rgba(66, 184, 131, 0.3)); }
.tech-item:hover .fa-php { color: #777bb4; filter: drop-shadow(0 4px 6px rgba(119, 123, 180, 0.3)); }
.tech-item:hover .fa-sass { color: #cc6699; filter: drop-shadow(0 4px 6px rgba(204, 102, 153, 0.3)); }
.tech-item:hover .fa-wordpress { color: #21759b; filter: drop-shadow(0 4px 6px rgba(33, 117, 155, 0.3)); }
.tech-item:hover .fa-bootstrap { color: #7952b3; filter: drop-shadow(0 4px 6px rgba(121, 82, 179, 0.3)); }

.tech-loop-track:hover {
    animation-play-state: paused;
}

@keyframes loop-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* =========================================
   7. RESPONSIVE ENHANCEMENTS
   ========================================= */

/* Tablet Landscape & Small Laptops (max 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        align-items: center;
        margin: 0 auto;
        max-width: 700px;
    }

    .desc {
        max-width: 100%;
    }

    .buttons {
        justify-content: center;
    }

    /* Adjust image size for tablet */
    .image-wrap {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Pull floating cards in slightly */
    .pos-1 {
        left: 5%;
    }

    .pos-2 {
        right: 5%;
    }

    .pos-3 {
        left: 5%;
        bottom: 10%;
    }

    .pos-4 {
        right: 5%;
        bottom: 10%;
    }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
        align-items: flex-start;
        /* Start from top */
    }

    .title {
        font-size: 2.5rem;
    }

    /* Hero Visual adjustments */
    .hero-visual {
        margin-top: 2rem;
        perspective: 800px;
    }

    .image-wrap {
        max-width: 100%;
    }

    /* Reposition floating cards to avoid cutting off */
    .tech-card {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    /* Tighter formation */
    .pos-1 {
        top: 0;
        left: 0;
    }

    .pos-2 {
        top: 5%;
        right: 0;
    }

    .pos-3 {
        bottom: 25%;
        left: -10px;
    }
}

.section-padding {
    padding: 6rem 0;
}

/* =========================================
   WHY CHOOSE US (ANIMATED GRID)
   ========================================= */

.why-choose-us {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Background Pattern */
.pattern-dots {
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 300px;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

/* --- LEFT COLUMN: 3D Visual Stack --- */
.image-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 550px; /* Tall container */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. The Backdrop Shape */
.shape-backdrop {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(236,72,153,0.1));
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
    z-index: 1;
}

/* 2. Main Image Box */
.main-img-box {
    position: relative;
    width: 90%;
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.why-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

/* Interactive Hover: Twist and Zoom */
.image-stack:hover .shape-backdrop {
    transform: rotate(-8deg) scale(1.05);
}

.image-stack:hover .main-img-box {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.25);
}

.image-stack:hover .why-img {
    transform: scale(1.1);
}

/* 3. Floating Success Card */
.float-stat-card {
    position: absolute;
    bottom: 40px;
    right: -10px;
    background: white;
    padding: 15px 25px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
    animation: float-y 4s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Ring Chart Animation */
.ring-chart {
    width: 45px;
    height: 45px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg { fill: none; stroke: #e2e8f0; stroke-width: 3; }
.circle { 
    fill: none; 
    stroke: var(--success); 
    stroke-width: 3; 
    stroke-linecap: round; 
    stroke-dasharray: 100, 100; /* Full circle */
    animation: fill-circle 2s ease-out forwards;
}

.ring-chart i {
    position: absolute;
    color: var(--success);
    font-size: 0.9rem;
}

/* --- RIGHT COLUMN: Content Grid --- */
.benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Individual Benefit Card */
.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Lift & Border highlight */
.benefit-card:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Icon Box Styling */
.icon-box {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    transition: transform 0.5s ease;
}

.icon-box.primary { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.icon-box.secondary { background: linear-gradient(135deg, #ec4899, #db2777); }
.icon-box.accent { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-box.green { background: linear-gradient(135deg, #10b981, #059669); }

/* Icon Rotation on Hover */
.benefit-card:hover .icon-box {
    transform: rotateY(180deg);
}

.b-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.b-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Shine Button Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: none;
}

.btn-shine:hover::after {
    animation: shine-pass 0.75s;
}

/* --- ANIMATIONS --- */
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fill-circle {
    0% { stroke-dasharray: 0, 100; }
    100% { stroke-dasharray: 100, 100; }
}

@keyframes shine-pass {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .image-stack {
        height: 400px;
        margin-bottom: 3rem;
    }
    
    .float-stat-card {
        right: 0;
        bottom: 20px;
    }
    
    .benefits-wrapper {
        grid-template-columns: 1fr; /* Stack cards */
    }
}

@media (max-width: 480px) {
    .float-stat-card {
        padding: 10px;
        transform: scale(0.9);
        right: -10px;
    }
}
/* Variables for easy customization */
:root {
    --primary: #4f46e5;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* --- 1. SECTION LAYOUT --- */
.ceo-section {
    padding: 5rem 2rem;
    background-color: var(--bg-light);
    overflow: hidden;
    /* Prevent scrollbars from animations */
}

.ceo-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    /* Vertically center */
    justify-content: space-between;
    gap: 4rem;
}

/* --- 2. LEFT CONTENT (TEXT) --- */
.ceo-content {
    flex: 1;
    max-width: 550px;
}

/* Typography & Animations */
.ceo-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;

    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.ceo-name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 0.5rem;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

.ceo-role {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.ceo-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    color: var(--text-dark);
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* --- 3. RIGHT VISUAL (IMAGE) --- */
.ceo-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Pushes image to the right */

    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s cubic-bezier(0.2, 0.9, 0.3, 1) 0.4s forwards;
}

.ceo-figure {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    /* Portrait ratio */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 0;
    transition: transform 0.5s ease;
}

.ceo-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

/* Hover Effect on Figure */
.ceo-figure:hover {
    transform: translateY(-10px);
}

.ceo-figure:hover img {
    transform: scale(1.08);
}

/* --- 4. GLASSMORPHISM CAPTION --- */
.ceo-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.ceo-caption .avatar img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.ceo-caption .meta {
    display: flex;
    flex-direction: column;
    color: white;
}

.ceo-caption .name {
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ceo-caption .role {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.ceo-caption .actions {
    margin-left: auto;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.action-btn:hover {
    background: var(--primary);
}

/* --- 5. KEYFRAMES --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- 6. RESPONSIVE --- */
@media (max-width: 900px) {
    .ceo-container {
        flex-direction: column-reverse;
        /* Image on top for mobile, or remove '-reverse' for image bottom */
        text-align: center;
        gap: 3rem;
    }

    .ceo-content {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .ceo-visual {
        justify-content: center;
    }
}

/* =========================================
   TECHNICAL SEO SECTION (DARK)
   ========================================= */

.tech-seo-section {
    padding: 8rem 0;
    background-color: #0f172a;
    /* Dark Navy */
    color: white;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Subtle Grid Background */
.tech-seo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    /* Visual left, Text right */
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- RIGHT: CONTENT --- */
.tech-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.tech-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient-green {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-lead {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 90%;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.item-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.tech-item:hover .item-icon {
    background: #34d399;
    color: #064e3b;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.item-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #f1f5f9;
}

.item-info p {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}


/* --- LEFT: VISUAL (SPEED TEST) --- */
.tech-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 550px;
    perspective: 1000px;
}

/* Floating Code Background */
.code-bg {
    position: absolute;
    top: 0;
    left: -20px;
    font-family: 'Courier New', monospace;
    color: rgba(52, 211, 153, 0.15);
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 0;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.5);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.1);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transform: rotate(-5deg);
}

.indent {
    margin-left: 2rem;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 520px;
    background: #1e293b;
    border: 10px solid #334155;
    border-radius: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    z-index: 2;
    transform: rotateY(-15deg) rotateX(5deg);
    /* 3D turn */
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.7);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #334155;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 3;
}

.phone-screen {
    padding: 50px 24px;
    background: #0f172a;
    height: 100%;
    position: relative;
}

/* Skeleton UI */
.skeleton-header {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    border-radius: 8px;
}

.skeleton-hero {
    width: 100%;
    height: 140px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    border-radius: 12px;
}

.skeleton-text {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-btn {
    width: 120px;
    height: 36px;
    background: rgba(52, 211, 153, 0.2);
    margin-top: 24px;
    border-radius: 8px;
}

/* Scanning Laser */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #34d399;
    box-shadow: 0 0 20px 4px rgba(52, 211, 153, 0.6);
    animation: scan 3s ease-in-out infinite;
    z-index: 10;
}

/* Result Circle */
.speed-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 20;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1s;
    opacity: 0;
    scale: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #334155;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke: #10b981;
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: progress 1.5s ease-out forwards 1.5s;
    stroke-dasharray: 0, 100;
    filter: drop-shadow(0 0 4px #10b981);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
}

.score-text span {
    font-size: 3rem;
    font-weight: 800;
    color: #10b981;
    display: block;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.score-text small {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Floating Stats */
.tech-stat {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 5;
    animation: floatStat 4s ease-in-out infinite;
    display: flex;
    align-items: center;
}

.tech-stat i {
    color: #34d399;
    margin-right: 10px;
    font-size: 1.1rem;
}

.t1 {
    top: 15%;
    right: -30px;
    animation-delay: 0s;
}

.t2 {
    bottom: 15%;
    left: -30px;
    animation-delay: 2s;
}

/* RESPONSIVE TECH SECTION */
@media (max-width: 968px) {
    .tech-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .tech-visual {
        order: -1;
        /* Visual on top for mobile */
        height: 400px;
    }

    .tech-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tech-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .tech-features {
        align-items: center;
    }

    .tech-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: rgba(255, 255, 255, 0.03);
        width: 100%;
        max-width: 400px;
    }

    .tech-item:hover {
        transform: translateY(-5px);
    }
    
    .item-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .tech-visual {
        height: 350px;
    }
    
    .phone-mockup {
        transform: scale(0.8);
    }
    
    .tech-stat {
        transform: scale(0.8);
    }
}

/* --- ANIMATIONS --- */
@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes progress {
    0% {
        stroke-dasharray: 0, 100;
    }

    100% {
        stroke-dasharray: 98, 100;
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        scale: 1;
    }
}

@keyframes floatStat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .tech-visual {
        order: 2;
        height: 400px;
    }

    .tech-content {
        order: 1;
    }

    .tech-item {
        justify-content: center;
        text-align: left;
    }

    .code-bg {
        display: none;
    }
}



/* =========================================
   DIGITAL ECOSYSTEM (LIGHT MODE)
   ========================================= */

:root {
    --eco-light-bg: #ffffff;
    --eco-text-main: #0f172a;
    --eco-text-body: #64748b;
    --eco-primary: #4f46e5;
    --eco-card-bg: rgba(255, 255, 255, 0.85);
    --eco-border: #e2e8f0;
    --eco-shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --eco-shadow-core: 0 0 40px rgba(79, 70, 229, 0.15);
}

.ecosystem-light-section {
    padding: 8rem 0;
    background-color: #f8fafc;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Background Effects */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    z-index: 0;
}

.blob-purple {
    background: #8b5cf6;
    top: -10%;
    right: -10%;
}

.blob-blue {
    background: #3b82f6;
    bottom: -10%;
    left: -10%;
}

.home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.eco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- LEFT CONTENT --- */
.eco-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.1);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: ecoPulse 2s infinite;
}

.eco-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.text-gradient-royal {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eco-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Benefits List */
.eco-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-row {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.benefit-row:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.b-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.benefit-row h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.benefit-row p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.btn-eco-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--text-main);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.btn-eco-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
    background: var(--primary);
}


/* --- RIGHT VISUAL (THE HUB) --- */
.eco-visual-hub {
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.hub-container {
    width: 500px;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Center Core */
.hub-core {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
    position: relative;
    z-index: 10;
    border: 4px solid #f8fafc;
}

.core-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(79, 70, 229, 0.1);
    z-index: -1;
}

.r1 {
    width: 150px;
    height: 150px;
    animation: ripple 3s infinite;
}

.r2 {
    width: 220px;
    height: 220px;
    animation: ripple 3s infinite 1s;
}

/* Connector Lines */
.connector-line {
    position: absolute;
    background: #e2e8f0;
    z-index: 1;
    transform-origin: center;
}

.c-top {
    width: 2px;
    height: 140px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
}

.c-bottom {
    width: 2px;
    height: 140px;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
}

.c-left {
    width: 140px;
    height: 2px;
    left: 50px;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
}

.c-right {
    width: 140px;
    height: 2px;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
}

/* Animated Data Flow on Lines */
.connector-line::after {
    content: '';
    position: absolute;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

.c-top::after,
.c-bottom::after {
    width: 100%;
    height: 30px;
    top: 0;
    left: 0;
    animation: flowY 2s infinite;
}

.c-left::after,
.c-right::after {
    width: 30px;
    height: 100%;
    top: 0;
    left: 0;
    animation: flowX 2s infinite;
}

/* Floating Hub Cards */
.hub-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    width: 200px;
    transition: 0.3s;
    animation: floatCard 6s ease-in-out infinite;
    z-index: 5;
}

.hub-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    z-index: 20;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.c-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.c-purple {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
}

.c-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.c-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.card-info strong {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
}

.card-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 5px #10b981;
    animation: pulse-green 2s infinite;
}

/* Positioning Cards */
.card-top {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.card-bottom {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.card-left {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.card-right {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}


/* --- ANIMATIONS --- */
@keyframes ecoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes flowY {
    0% {
        top: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes flowX {
    0% {
        left: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes floatCard {

    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -15px;
    }
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .eco-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .eco-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .eco-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .eco-benefits {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .eco-visual-hub {
        transform: scale(0.85);
        height: 500px;
        margin-top: -2rem;
    }
}

@media (max-width: 480px) {
    .eco-visual-hub {
        transform: scale(0.6);
        height: 350px;
        margin-top: -4rem;
        margin-bottom: -2rem;
    }
    
    .hub-container {
        width: 100%;
    }
    
    /* Stack cards vertically on very small screens if needed, or keep scaled */
    .card-left { left: -40px; }
    .card-right { right: -40px; }
}
/* =========================================
   SERVICES SECTION
   ========================================= */

.services-section {
    padding: 6rem 0;
    background-color: var(--light-bg); /* Or #f8fafc */
    position: relative;
}

/* Header Styling */
.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .badge {
    margin-bottom: 1rem;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    border: none;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

/* =========================================
   SERVICE CARD DESIGN
   ========================================= */
.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
}

/* Banner Image Area */
.card-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-banner img {
    transform: scale(1.1);
}

/* Floating Icon */
.card-icon {
    position: absolute;
    bottom: -25px; /* Half overlapping */
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
    z-index: 2;
    border: 4px solid white; /* Creates separation from image */
}

/* Icon Color Variants */
.card-icon.secondary {
    background: var(--secondary);
    box-shadow: 0 8px 16px rgba(236, 72, 153, 0.3);
}

.card-icon.accent {
    background: var(--accent);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

/* Card Content Body */
.card-content {
    padding: 2.5rem 1.75rem 1.75rem; /* Top padding accounts for overlapping icon */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Details List */
.service-details {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-details li {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-details li i {
    color: #10b981; /* Green checkmark */
    font-size: 0.9rem;
}

/* Card Footer (Stars & Buttons) */
.card-footer {
    margin-top: auto; /* Pushes to bottom */
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24; /* Star color */
    font-size: 0.85rem;
}

.rating span {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 4px;
    font-weight: 600;
}

/* Buttons */
.btn-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.btn-sm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}

.btn-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Mobile Tweak */
@media (max-width: 480px) {
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-group {
        width: 100%;
        justify-content: space-between;
    }
}

/* Responsive for Why Choose Us */
@media (max-width: 960px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .benefits-wrapper {
        grid-template-columns: 1fr;
    }
    
    .image-stack {
        height: 400px;
        margin-bottom: 2rem;
    }
}

/* =========================================
   8. ENHANCED RESPONSIVE OVERRIDES (MOBILE PERFECTION)
   ========================================= */

@media (max-width: 1024px) {
    .container, .hero-container, .ceo-container {
        padding: 0 20px;
    }
    
    .hero-text {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-visual {
        margin-top: 40px;
        height: auto;
        min-height: 400px;
    }
    
    .ceo-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .ceo-content {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .image-stack {
        max-width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .title {
        font-size: 2.5rem;
    }
    
    .desc {
        font-size: 1rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Primary button full width on mobile */
    .btn-primary {
        width: 100%;
        max-width: 280px;
    }
    
    /* Icon buttons group stays horizontal */
    .btn-icon-group {
        display: flex;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    
    /* Icon buttons fixed size on mobile */
    .btn-icon-group .btn-icon,
    .buttons .btn-icon {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px;
        flex-shrink: 0;
        border-radius: 50%;
    }
    
    .tech-card {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Adjust floating positions for mobile */
    .pos-1 { top: 0; left: 0; }
    .pos-2 { top: 10%; right: 0; }
    .pos-3 { bottom: 10%; left: 0; }
    .pos-4 { bottom: 0; right: 0; }
    
    .ceo-name {
        font-size: 2rem;
    }
    
    .benefit-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .icon-box {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .hero-visual {
        min-height: 300px;
    }
    
    .image-stack {
        height: 300px;
    }
    
    .float-stat-card {
        padding: 10px 15px;
        bottom: 10px;
        right: 0;
        transform: scale(0.85);
        transform-origin: bottom right;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Icon buttons slightly smaller on very small screens */
    .btn-icon-group .btn-icon,
    .buttons .btn-icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px;
        font-size: 1.1rem;
    }
    
    .btn-primary {
        max-width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    /* Disable complex animations on very low end devices/small screens */
    .hero-bg-glow {
        animation: none;
        opacity: 0.5;
    }
}