:root {
    --bg-white: #FFFFFF;
    --bg-light: #FDF9F8;
    /* Even softer peach white */
    --bg-panel: rgba(255, 255, 255, 0.85);
    --surface: #FFF0ED;
    --accent-blue: #FF7D61;
    --accent-purple: #FFB3A6;
    --accent-cyan: #FFD1C9;
    --text-primary: #0F172A;
    /* Back to a slightly more professional navy-black */
    --text-secondary: #334155;
    /* Darkened for better contrast */
    --text-muted: #64748B;
    /* Darkened for better contrast */
    --glass-border: #E2E8F0;
    /* Slightly darker for visibility */
    --glow-blue: rgba(255, 125, 97, 0.08);
    --shadow-soft: 0 20px 50px -12px rgba(15, 23, 42, 0.08);

    /* Brand Gradients */
    --grad-ai: linear-gradient(135deg, #FF7D61 0%, #FFB3A6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    position: relative;
}

h1,
h2,
h3,
.font-tech {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* Cinematic Background */
.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-blue) 0%, transparent 60%);
    pointer-events: none;
    transition: background 0.1s ease;
}

/* Glassmorphism Light */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
}

.glass-panel:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 15px 40px -5px rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
}

.top-bar {
    height: 40px;
    background: #0F172A;
    /* Sleek dark premium */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #E2E8F0;
    font-weight: 500;
    position: relative;
    width: 100%;
    z-index: 1100;
    letter-spacing: 0.5px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 125, 97, 0.2);
}

.top-bar i {
    color: var(--accent-blue);
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    border-bottom-color: #fff;
}

/* Unified Navbar Refinement */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 125, 97, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-weight: 600;
    color: var(--text-primary) !important;
    padding: 0.5rem 1.5rem !important;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2.4rem);
}

/* Glass Card Standard */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(255, 125, 97, 0.1);
    border-color: var(--accent-blue);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 800;
    word-break: break-word;
}

.hero-title span {
    background: var(--grad-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glow-text {
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 125, 97, 0.2), 0 0 20px rgba(255, 125, 97, 0.1);
    }

    to {
        text-shadow: 0 0 20px rgba(255, 125, 97, 0.6), 0 0 30px rgba(255, 125, 97, 0.4);
    }
}

.hero-lead-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--surface);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.hero-image-container {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    z-index: -1;
    box-shadow: var(--shadow-soft);
    transform: rotate(3deg);
    transition: all 0.5s ease;
}

.hero-image-container:hover::before {
    transform: rotate(0deg) scale(1.02);
}

.hero-portrait {
    border-radius: 30px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    transition: all 0.5s ease;
    display: block;
    position: relative;
    z-index: 2;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    left: -30px;
    animation-delay: 2s;
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Buttons */
.btn-ai {
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ai-primary {
    background: var(--accent-blue);
    color: #fff;
}

.btn-ai-primary:hover {
    background: #E86A51;
    /* Darker Coral */
    box-shadow: 0 10px 30px rgba(255, 125, 97, 0.5), 0 0 15px rgba(255, 125, 97, 0.3);
    transform: translateY(-2px);
}

.btn-ai-outline {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-ai-outline:hover {
    background: var(--glass-border);
}

/* Sections Utilities */
.py-140 {
    padding: 140px 0;
    position: relative;
    z-index: 1;
}

.py-100 {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Missing Utility Classes */
.uppercase {
    text-transform: uppercase;
}

.extra-small {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Gradient text utility */
.font-grad {
    background: var(--grad-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Override Bootstrap .text-info to match brand coral palette */
.text-info {
    color: var(--accent-blue) !important;
}

/* icon-box used in orchestration section */
.icon-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: rgba(255, 125, 97, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: all 0.4s ease;
}

/* icon-box-small used in contact cards */
.icon-box-small {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 125, 97, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.icon-box-small svg,
.icon-box-small i {
    width: 22px;
    height: 22px;
}

section {
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
    /* Crucial: prevent AOS animations and negative margins from overflowing the viewport */
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-white {
    background-color: var(--bg-white) !important;
}

.bg-panel {
    background-color: var(--bg-panel) !important;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-blue);
    margin-bottom: 25px;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 125, 97, 0.08);
    border-radius: 8px;
}

/* Service & "What I Do" Cards */
.section-container {
    background: var(--bg-white);
    border-radius: 48px;
    padding: 100px 60px;
    margin: 40px 20px;
    border: 1px solid var(--glass-border);
    box-shadow: none;
    overflow: hidden;
    /* Prevent negative row margins from causing horizontal scroll */
}

/* 3D Gallery Carousel */
.gallerySwiper {
    padding: 50px 0 100px 0 !important;
}

.gallery-slide-content {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    width: 100%;
    border: 1px solid var(--glass-border);
}

.gallery-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    backdrop-filter: blur(5px);
    color: #fff;
}

.gallery-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.gallery-overlay p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.gallerySwiper .swiper-pagination-bullet {
    background: var(--accent-blue);
    width: 10px;
    height: 10px;
}

.gallerySwiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 10px;
}

/* Projects */
.project-card {
    height: 100%;
    overflow: hidden;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12), 0 18px 36px -18px rgba(255, 125, 97, 0.2);
}

.project-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
    transform: scale(1.15);
}

.project-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    z-index: 2;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-blue);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 125, 97, 0.7);
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
        box-shadow: 0 0 0 10px rgba(255, 125, 97, 0);
    }

    100% {
        transform: scale(1);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(255, 125, 97, 0);
    }
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.project-card:hover .project-action-btn {
    transform: translateY(0);
}

.project-action-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: scale(1.1);
}

.project-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tech-badge {
    padding: 5px 12px;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 6px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.project-card:hover .tech-badge {
    background: var(--surface);
    border-color: var(--accent-purple);
}

.filter-btn {
    padding: 8px 25px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    margin: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.project-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-item.filtering-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

/* Fix for dark sections to ensure they stay solid and don't overlap previous white sections */
section.bg-black {
    background-color: #0F172A !important;
    /* Force solid dark background */
}

/* Orchestration Section (Dark Accent) */
.orchestration-section {
    background: #0F172A !important;
    color: #fff;
    border-radius: 40px;
    margin: 40px 20px;
    overflow: hidden;
}

.orchestration-section .text-muted {
    color: #94A3B8 !important;
    /* Lighter gray for dark bg */
}

.orchestration-section .text-secondary {
    color: #CBD5E1 !important;
    /* High contrast gray-white */
}

.orchestration-section p {
    color: #94A3B8;
}

.orchestration-section .lead,
.orchestration-section p.text-muted {
    color: #CBD5E1 !important;
}

.workflow-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.4s ease;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.workflow-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-blue);
    transform: translateX(10px);
}

.workflow-card .icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 125, 97, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: all 0.4s ease;
}

.workflow-card:hover .icon-box {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 125, 97, 0.4);
}

.workflow-card h6 {
    color: #fff;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pipeline-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pipeline-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 125, 97, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.pipeline-viz {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.pipeline-node {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #CBD5E1;
    transition: all 0.3s ease;
}

.pipeline-node:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    color: #fff;
}

.pipeline-node i {
    color: var(--accent-blue);
}

.node-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
    position: relative;
}

.node-connector::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
}

.workflow-section.theme-dark .section-tag {
    color: var(--accent-blue);
}

.workflow-section.theme-dark h2 {
    color: #fff;
}

.workflow-section.theme-dark .text-secondary {
    color: #94A3B8 !important;
}

.workflow-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workflow-nav-item {
    padding: 20px 25px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.theme-dark .workflow-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-dark .workflow-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .workflow-nav-item h5 {
    color: #fff;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.theme-dark .workflow-nav-item h5 span {
    color: #94A3B8;
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 8px;
    text-transform: lowercase;
}

.theme-dark .workflow-nav-item.active h5 {
    color: var(--accent-blue);
}

.theme-dark .workflow-nav-item p {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.theme-dark .workflow-nav-item.active p {
    color: #CBD5E1;
}

.workflow-preview-panel {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 30px;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none;
}

.workflow-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    opacity: 0;
    transition: all 0.5s ease;
    transform: scale(0.98);
    position: absolute;
    pointer-events: none;
    filter: none;
}

.workflow-img.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    pointer-events: auto;
}

/* About Section - Redesigned Visual */
.about-visual {
    position: relative;
    padding-bottom: 20px;
}

.about-frame {
    background: var(--bg-light);
    border-radius: 40px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

.about-exp-badge {
    position: absolute;
    bottom: 0;
    right: -20px;
    background: var(--bg-white);
    padding: 25px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    min-width: 140px;
}

.about-mini-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.stat-icon {
    color: var(--accent-blue);
    width: 24px;
    height: 24px;
}

/* Hackathons & Timeline */
.timeline-container {
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    padding-bottom: 50px;
    border-left: 2px dashed var(--glass-border);
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(255, 125, 97, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--accent-blue);
    transform: scale(1.2);
}

.exp-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background: var(--bg-light);
    border-color: var(--glass-border);
    transform: translateX(5px);
}

.timeline-item h5 {
    color: var(--text-primary) !important;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-item h5 i {
    color: var(--accent-blue);
    width: 18px;
}

.achievement-box {
    background: var(--bg-white);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    height: 100%;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.stat-card h3 {
    color: var(--accent-blue);
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Skills & Tools */
.tech-category-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-category-title::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, var(--glass-border), transparent);
}

.skill-item {
    padding: 15px 20px;
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    margin-bottom: 12px;
}

.skill-item:hover {
    border-color: var(--accent-blue);
    background: var(--bg-light);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 125, 97, 0.1);
}

.skill-item i {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.skill-item:hover i {
    transform: rotate(10deg);
}

.skill-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Vision Text */
.vision-display {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

/* Footer Modern */
.footer-modern {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.footer-bottom {
    border-color: rgba(15, 23, 42, 0.05) !important;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link i {
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--text-primary);
    color: #fff;
    transform: translateY(-5px) rotate(8deg);
    border-color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.footer-status-card {
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.footer-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #10B981;
}

.hover-info:hover {
    color: var(--accent-blue) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-white);
}

::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Animations */
[data-aos] {
    transition-duration: 1000ms !important;
}

/* Feature Grid Polish */
.feature-icon-box {
    width: 60px;
    height: 60px;
    background: var(--grad-ai);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(255, 125, 97, 0.2);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px rgba(255, 125, 97, 0.3);
}

.service-icon i {
    background: var(--grad-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Responsive Design (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 991px) {

    /* Prevent row overflow on mobile by reducing gutters */
    .row {
        --bs-gutter-x: 1.5rem;
        /* Equivalent to g-3/g-4 instead of g-5 */
    }

    .navbar-collapse {
        background: var(--bg-panel);
        border-radius: 15px;
        padding: 15px;
        margin-top: 15px;
        border: 1px solid var(--glass-border);
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 50px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-lead-box {
        margin: 0 auto 2rem auto;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .hero-image-container {
        margin-top: 3rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-container {
        padding: 60px 30px;
        margin: 20px 10px;
        border-radius: 30px;
    }

    .py-140 {
        padding: 80px 0;
    }

    .py-100 {
        padding: 60px 0;
    }

    .about-exp-badge {
        right: 0;
        bottom: -20px;
    }

    .gallery-slide-content {
        height: 400px;
    }

    .workflow-preview-panel {
        min-height: 400px;
        margin-top: 2rem;
    }

    .orchestration-section {
        margin: 20px 0;
        /* Remove horizontal margin as it's a full-width section */
        border-radius: 0;
        /* More standard for mobile sections */
        width: 100%;
    }

    .pipeline-panel {
        padding: 40px 20px;
        margin-top: 2rem;
    }

    .achievement-box {
        padding: 30px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .vision-display {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    .hero-section .btn-ai {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-section .d-flex {
        flex-direction: column;
    }

    .floating-badge {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .badge-1 {
        top: 0;
        right: 0;
    }

    .badge-2 {
        bottom: 0;
        left: 0;
    }

    .section-container {
        padding: 40px 15px;
        margin: 20px 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        width: 100%;
    }

    .gallery-slide-content {
        height: 300px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .filter-group {
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -8px;
        width: 14px;
        height: 14px;
    }

    .contact-card {
        margin-bottom: 15px;
    }

    .footer-modern {
        padding: 60px 0;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
        margin-bottom: 30px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-bottom {
        padding-top: 30px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}