/* ============================================
   PREMIUM MODERN DESIGN SYSTEM
   Updated for bold impact & recruiter focus
   ============================================ */

:root {
    /* Core Colors - Sharper & Bolder */
    --primary-blue: #3f63ad;
    --primary-blue-dark: #2d4a80;
    --primary-blue-light: #5a7bc4;
    --accent-glow: rgba(63, 99, 173, 0.4);

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-surface: rgba(255, 255, 255, 0.85);

    /* Spacing & Layout */
    --container-max: 1280px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --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 30px var(--accent-glow);

    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --blur-amt: 12px;

    /* Design Tokens for Compatibility */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --transition-base: 0.3s ease;
    --border-color: rgba(0, 0, 0, 0.1);
    --white: #ffffff;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* ============================================
   BACKGROUND PATTERNS (Fixing "Empty" Feel)
   ============================================ */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(63, 99, 173, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(63, 99, 173, 0.08) 0%, transparent 40%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* ============================================
   HEADER & NAV
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.btn-nav {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(63, 99, 173, 0.3);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 99, 173, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================================
   HERO SECTION DESIGN
   ============================================ */
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(63, 99, 173, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(63, 99, 173, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(63, 99, 173, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: white;
}

.hero-trust {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-logos {
    display: inline-block;
    margin-left: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero Visual - Profile Card */
.profile-card-wrapper {
    position: relative;
    z-index: 10;
}

.profile-img-hero {
    width: 100%;
    max-width: 450px;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.profile-card-wrapper:hover .profile-img-hero {
    transform: rotate(0deg);
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: float 6s ease-in-out infinite;
}

.badge-exp {
    top: 40px;
    left: -20px;
}

.badge-roas {
    bottom: 40px;
    right: 20px;
    animation-delay: 2s;
}

.badge-num {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.badge-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes float {

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

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

/* ============================================
   IMPACT STATS
   ============================================ */
.stats-section {
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   SECTIONS & CARDS
   ============================================ */
.section {
    padding: 100px 0;
}

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

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    text-align: left;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.glass-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

/* ============================================
   TIMELINE (JOURNEY) DESIGN
   ============================================ */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid rgba(63, 99, 173, 0.2);
    padding-left: 40px;
}

.timeline-block {
    position: relative;
    margin-bottom: 60px;
}

.timeline-marker {
    position: absolute;
    left: -49px;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--bg-white);
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    z-index: 5;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.role-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.role-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.role-title {
    display: block;
    color: var(--primary-blue);
    font-weight: 600;
}

.role-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.role-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 600;
}

.role-achievements {
    list-style: none;
    margin-top: 16px;
}

.role-achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.role-achievements li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ============================================
   PROJECTS GRID (Not Empty!)
   ============================================ */
/* ============================================
   PROJECTS GRID (Fixed Alignment)
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    /* Match expertise section gap */
    align-items: stretch;
    /* Ensures all cards in a row are same height */
    width: 100%;
    margin-top: 50px;
    /* Consistent spacing from header */
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Stacks content vertically */
    height: 100%;
    /* Fills the grid cell */
    opacity: 1 !important;
    /* Force visibility */
    transform: none !important;
    /* Remove any transforms */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: rgba(63, 99, 173, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.project-cat {
    font-size: 0.9rem;
    color: #475569;
    /* Darker Slate 600 for visibility */
    margin-bottom: 12px;
    font-weight: 500;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-desc {
    color: #334155;
    /* Slate 700 for better readability */
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Pushes metrics to the bottom */
    line-height: 1.6;
}

.project-metrics {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
    /* Ensures it stays at bottom */
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
}

.metric span {
    font-size: 0.85rem;
    color: #475569;
    /* Darker Slate 600 */
    font-weight: 500;
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */
.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-box {
    text-align: center;
    padding: 32px 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}

.service-box:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* ============================================
   CTA & FOOTER
   ============================================ */
/* ============================================
   CTA & FOOTER (UPDATED - Blue Theme)
   ============================================ */
.cta-content {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    border: 2px solid white;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

footer {
    background: var(--primary-blue-dark);
    /* Dark Blue Background */
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    margin-bottom: 12px;
    font-size: 1.8rem;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-email {
    display: inline-block;
    margin-top: 16px;
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    color: white;
    font-size: 1.2rem;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Page Spacing Utilities */
.page-padding-top {
    padding-top: 120px !important;
    /* Reduced from 160px default or huge gaps */
    padding-bottom: 60px;
}

.section-tight {
    padding: 60px 0;
    /* Tighter section spacing */
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .profile-card-wrapper {
        margin: 0 auto;
        max-width: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .services-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 40px 24px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        backdrop-filter: blur(20px);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1.1rem;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        padding: 8px;
        color: var(--primary-blue);
    }

    /* Hero Section Mobile */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .profile-card-wrapper {
        display: none;
    }

    /* Timeline Mobile */
    .timeline-container {
        padding-left: 20px;
        border: none;
    }

    .timeline-marker {
        display: none;
    }

    /* Projects Grid Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Services Grid Mobile */
    .services-overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links {
        gap: 12px;
    }

    /* Clients Scroll Mobile */
    .client-logo {
        min-width: 150px;
        height: 100px;
        padding: 15px;
    }

    .clients-scroll {
        gap: 40px;
    }

    /* CTA Section Mobile */
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* General Mobile Adjustments */
    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .glass-card {
        padding: 24px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ============================================
   CHRISTMAS THEME & EFFECTS
   ============================================ */
.logo {
    position: relative;
    display: inline-block;
}

.santa-hat {
    position: absolute;
    top: -22px;
    left: -18px;
    width: 45px;
    height: auto;
    pointer-events: none;
    z-index: 10;
    transform: rotate(-10deg);
}

/* Magical Dust Trail */
.magical-dust {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: dust-fade-out linear forwards;
}

@keyframes dust-fade-out {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dust-x)), calc(-50% + var(--dust-y))) scale(0);
    }
}

/* =========================================
   MOBILE OPTIMIZATION (Fixing "Hard UI")
   ========================================= */
@media (max-width: 900px) {

    /* 1. Global Typography Scaling */
    html {
        font-size: 15px;
    }

    h1.hero-title {
        font-size: 2.4rem !important;
        line-height: 1.2 !important;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    h2.section-title-large {
        font-size: 2rem !important;
        text-align: center;
    }

    .section-header,
    .section-header-center {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
        max-width: 100% !important;
    }

    /* 2. Container & Padding */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .section,
    .page-padding-top {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    /* 3. Header & Smart Dropdown Menu */
    nav {
        padding: 0 20px !important;
        height: 70px !important;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        /* Hidden by default */
        overflow: hidden;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 0;
        /* Collapsed */
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        display: flex !important;
    }

    .nav-links.active {
        max-height: 100vh;
        /* Expand */
        padding: 30px 0;
        gap: 25px;
    }

    .nav-links li a {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-primary);
        display: block;
        padding: 5px 0;
    }

    .menu-toggle {
        display: block !important;
        font-size: 1.8rem;
        color: var(--primary-blue);
        background: none;
        border: none;
        cursor: pointer;
    }

    /* 4. Grid Stacking (Fix single column) */
    .hero-container {
        display: flex !important;
        flex-direction: column-reverse;
        /* Text bottom, Image top usually looks better? Or Text top? Text top is safer for SEO/Loading */
        /* Let's do Text Bottom if image is decorative, but for portfolio Profile Top is good */
        /* Actually often Img Top, Text Bottom is standard mobile flow. OR Text Top, Img Bottom. */
        /* Let's try FLEX COLUMN (Text Top) */
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center;
    }

    /* If visual was on right, now it's second (bottom). */

    .stats-grid,
    .projects-grid,
    .service-card-row,
    .gallery-grid,
    .case-study-grid,
    .cs-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        /* Force Single Column */
        gap: 25px !important;
        width: 100% !important;
    }

    /* 5. Specific Element Fixes */
    .hero-visual {
        margin: 0 auto !important;
        display: flex;
        justify-content: center;
    }

    .profile-card-wrapper {
        width: 90% !important;
        max-width: 320px !important;
        margin: 0 auto;
    }

    /* About Page Side-by-Side Fix */
    /* Selects the grid div in about page */
    .page-padding-top .container>div[style*="grid"] {
        display: flex !important;
        flex-direction: column;
        gap: 30px !important;
    }

    .glass-card {
        padding: 24px !important;
    }

    /* Buttons */
    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Trust Logos */
    .trust-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px !important;
    }

    /* =========================================
       NEW: Fixes for Grid & Footer (User Request)
       ========================================= */

    /* 1. 2x2 Grid for Stats (Instead of 1 column) */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* 2. Shrink Footer */
    footer {
        padding: 30px 0 !important;
    }

    .footer-content {
        gap: 20px !important;
    }

    .footer-heading {
        margin-bottom: 15px !important;
    }

    /* 3. Portfolio Mobile Mixed Content Fix */
    /* Ensure hero content doesn't overlap/touch edges */
    .hero-container,
    .project-hero {
        padding-top: 20px !important;
        /* Add space from header */
        padding-bottom: 40px !important;
    }

    .hero-visual img,
    .hero-visual img,
    .profile-img-hero {
        margin-bottom: 20px;
        max-width: 80% !important;
    }

    /* =========================================
       FINAL MOBILE FIXES (Padding, Footer Grid, Portfolio Header)
       ========================================= */

    /* 1. Smart Padding Strategy */
    /* General Sections (Middle of page) - Keep compact */
    .section,
    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* FIRST SECTION ONLY (Must Clear Header) */
    /* Targeting all variations of Hero/Top sections */
    .hero-section,
    .page-padding-top,
    .portfolio-hero-section,
    .project-hero,
    main>section:first-child,
    body>section:nth-of-type(2) {
        /* Fallback for some structures */
        padding-top: 120px !important;
        /* Header is ~80px + 40px Space */
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* 2. Portfolio Header Simplified (Remove Animation/Image, Simple Text) */
    .portfolio-hero-section {
        height: auto !important;
        min-height: auto !important;
        padding-top: 100px !important;
        /* Space for Fixed Header */
        padding-bottom: 20px !important;
        background: var(--bg-white) !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Hide Complex Elements on Mobile */
    .portfolio-hero-section .hero-description,
    .portfolio-hero-section .portfolio-text-bg,
    .portfolio-hero-section .hero-profile-image {
        display: none !important;
    }

    /* Style the Name/Title */
    .portfolio-hero-section .hero-name-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 20px !important;
        background: transparent !important;
    }

    .portfolio-hero-section .hero-name-title h1 {
        font-size: 1.8rem !important;
        /* Reduce size */
        color: var(--primary-blue) !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
    }

    .portfolio-hero-section .hero-name-title p {
        font-size: 0.95rem !important;
        color: var(--text-secondary) !important;
        letter-spacing: 2px !important;
    }

    /* 3. Footer Grid Layout (Brand Top, Links/Social Grid) */
    footer {
        padding: 40px 0 !important;
    }

    .footer-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* 2 Columns for widgets */
        gap: 30px !important;
        text-align: left !important;
    }

    .footer-brand {
        grid-column: span 2;
        /* Brand takes full width top */
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-links-col {
        text-align: center;
        /* Center align links */
    }

    .footer-social-col {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    /* 4. Previous Fixes (About Image, Nav, 2x2 Stats) */

    /* About Image Fix */
    .page-padding-top .container>div[style*="grid"]>div:first-child {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto 30px !important;
        display: block !important;
    }

    .page-padding-top .container>div[style*="grid"]>div:last-child {
        margin-top: 0 !important;
    }

    /* Nav Z-Index */
    header {
        z-index: 10000 !important;
    }

    .nav-links {
        z-index: 9999 !important;
    }

    /* 2x2 Stats Grid */
    .stats-grid,
    .trust-logos {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* FORCE MENU TOGGLE VISIBILITY */
    .menu-toggle {
        display: block !important;
        position: absolute !important;
        right: 24px !important;
        top: 22px !important;
        font-size: 2rem !important;
        color: #3f63ad !important;
        z-index: 10001 !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
}/* Force Update */
