@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color System based on Logo */
    --color-base: #faf9fc; /* Off-white / very light lavender */
    --color-white: #ffffff;
    --color-light-grey: #f3f0f7; /* Soft purple tone */
    
    --color-primary-dark: #1c102b; /* Deep Charcoal/Purple */
    --color-primary: #53207b; /* Logo Deep Purple */
    --color-primary-light: #7b31b5;
    
    --color-secondary: #c91458; /* Logo Magenta / Pink */
    --color-secondary-light: #eb3b7d;
    --color-secondary-dark: #a00f45;
    
    --color-accent: #e91e63; /* Pink Accent */
    
    --color-text-dark: #1f1a26; /* Charcoal */
    --color-text-body: #474351; /* Slate/Dark Neutral */
    --color-text-light: #867e91;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --grad-light: linear-gradient(180deg, var(--color-base) 0%, var(--color-light-grey) 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.1) 100%);
    --grad-glass-dark: linear-gradient(135deg, rgba(28, 16, 43, 0.8) 0%, rgba(83, 32, 123, 0.9) 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Effects */
    --container-max: 1280px;
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    --shadow-sm: 0 4px 10px rgba(83, 32, 123, 0.05);
    --shadow-md: 0 10px 30px rgba(83, 32, 123, 0.08);
    --shadow-lg: 0 20px 40px rgba(83, 32, 123, 0.12);
    --shadow-glow: 0 0 25px rgba(201, 20, 88, 0.25);
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-base);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}


/* Hero Sections Padding */
.hero { padding: 200px 0 140px; }
.page-hero { padding: 160px 0 80px; }

.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden; /* Fix horizontal overlaps */
}

/* Storytelling scroll sections */
.section-light { background: var(--grad-light); }
.section-grey { background: var(--color-base); }
.section-dark { 
    background-color: var(--color-primary-dark); 
    background-image: radial-gradient(circle at top right, rgba(83, 32, 123, 0.4) 0%, transparent 60%);
    color: var(--color-light-grey);
}
.section-dark h2, .section-dark h3, .section-dark p {
    color: var(--color-white);
}

/* Background System */
.bg-layer-container {
    position: fixed; /* Fixed background for continuous feel */
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.bg-layer-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(201, 20, 88, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(83, 32, 123, 0.04) 0%, transparent 40%);
}
.bg-pattern-molecules {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(83, 32, 123, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}
.bg-noise {
    position: absolute; inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.02;
    mix-blend-mode: multiply;
}
canvas.particles-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: 50px; /* Pill shape for premium feel */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(83, 32, 123, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--grad-primary);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-primary:hover {
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 20, 88, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: rgba(83, 32, 123, 0.2);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(83, 32, 123, 0.04);
    color: var(--color-primary);
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.enquire-btn {
    background: var(--color-secondary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-secondary) !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 39, 126, 0.3);
}

.enquire-btn:hover {
    background: var(--color-secondary-dark) !important;
    border-color: var(--color-secondary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 39, 126, 0.4);
}


/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.logo-img-horizontal {
    height: 48px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-fast);
    /* Logo sits cleanly, no borders, no padding tricks */
}

.logo:hover .logo-img-horizontal {
    transform: scale(1.02);
}

.footer-logo-wrap {
    margin-bottom: 24px;
    display: inline-block;
}

.footer-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-logo-card:hover {
    transform: translateY(-2px);
}

.logo-img-stacked {
    height: auto;
    width: 140px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.cta-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.cta-logo-card .logo-img-stacked {
    width: 120px;
}

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

.nav-links li a:not(.btn) {
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover::after,
.nav-links li a.active:not(.btn):after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none; border: none;
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.hero-subtitle-top {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--color-text-body);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.hero-3d-visual {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

/* Premium Cards - Open Layout */
.glass-card {
    background: transparent;
    border: none;
    border-top: 1px solid rgba(59, 21, 92, 0.08);
    box-shadow: none;
    border-radius: 0;
    padding: 32px 0;
    transition: transform 0.4s ease;
}

.section-dark .glass-card {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: transparent;
    box-shadow: none;
}

.glass-card::before {
    display: none;
}

/* Service / Solution Blocks */
.grid-solutions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.solution-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(83, 32, 123, 0.05);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition-slow);
}

.glass-card:hover .solution-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.solution-number {
    position: absolute;
    top: 32px; right: 40px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(83, 32, 123, 0.03);
    transition: var(--transition-slow);
}

.glass-card:hover .solution-number {
    color: rgba(201, 20, 88, 0.06);
    transform: translateY(-5px);
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 16px;
}
.arrow-link svg {
    transition: var(--transition-fast);
}
.arrow-link:hover svg {
    transform: translateX(5px);
    color: var(--color-secondary);
}

/* Portfolio Grid */
.portfolio-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(30, 18, 43, 0.05);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 39, 126, 0.25);
}

.portfolio-visual {
    height: 240px;
    background: var(--grad-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-visual::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(59, 21, 92, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.portfolio-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.portfolio-title {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

/* Timeline / Approach */
.timeline-container {
    position: relative;
    padding: 40px 0;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0; left: 40px;
    width: 2px; height: 100%;
    background: rgba(59, 21, 92, 0.1);
}

.timeline-step {
    position: relative;
    padding-left: 100px;
    margin-bottom: 80px;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: 0; left: 33px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(212, 39, 126, 0.15);
    transition: var(--transition);
}

.timeline-step:hover::before {
    background: var(--color-secondary);
    box-shadow: 0 0 0 8px rgba(212, 39, 126, 0.25);
}

.timeline-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    position: absolute;
    left: -20px;
    top: -5px;
    width: 40px;
    text-align: right;
}

/* Footer */
.footer {
    background: var(--color-light-grey);
    color: var(--color-text-body);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute; top: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(212, 39, 126, 0.05), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

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

.footer-col h3 {
    color: var(--color-primary);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--color-text-body);
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.legal-links {
    display: flex; gap: 24px;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* Mobile */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Responsive Padding & Overflows */
    html, body { overflow-x: hidden; }
    
    .section { padding: 60px 0; }
    .hero { padding: 140px 0 60px; }
    .page-hero { padding: 120px 0 40px; }
    
    .glass-card, .portfolio-card { padding: 24px !important; }
    .grid-solutions { grid-template-columns: 1fr !important; gap: 20px; }

    .nav-links {
        position: fixed;
        top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
        background: var(--color-white);
        flex-direction: column;
        padding: 40px;
        transform: translateX(100%);
        transition: var(--transition);
        align-items: flex-start;
    }
    
    .nav-links li a {
        color: var(--color-text-dark) !important;
    }

    .nav-links.active {
        transform: translateX(0);
    }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-3d-visual { opacity: 0.3; right: -50%; }
    
    .timeline-container::before { left: 20px; }
    .timeline-step { padding-left: 60px; }
    .timeline-step::before { left: 13px; }
    .timeline-number { display: none; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    .logo-img-horizontal {
        height: 38px;
        max-width: 170px;
    }
}

/* Header Dark Theme (For Hero sections with dark backgrounds) */
.header-dark-theme:not(.scrolled) .logo,
.header-dark-theme:not(.scrolled) .nav-links:not(.active) li a,
.header-dark-theme:not(.scrolled) .mobile-menu-btn {
    color: var(--color-white) !important;
}





.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Feedback & Anti-Spam Styles */
.form-feedback-banner {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feedback-success {
    background: #e6f9f0;
    border: 1px solid #70d6a5;
    color: #0b6b3e;
}

.feedback-error {
    background: #fdf0ee;
    border: 1px solid #f59e8f;
    color: #a32211;
}

.sr-only-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus and input enhancements */
input:focus, select:focus, textarea:focus {
    border-color: var(--color-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 39, 126, 0.18) !important;
}

/* Clean Touch Targets for Mobile */
button, .btn, input, select, textarea {
    touch-action: manipulation;
}

/* ==========================================================================
   3D Scrolling & Parallax Utilities 
   ========================================================================== */
.scene-3d {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.parallax-bg {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.1s ease-out; /* Smooth mouse tracking */
}

.parallax-layer {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.scroll-3d-element {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(40px) translateZ(-60px) rotateX(4deg);
}

.scroll-3d-element.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0);
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .scroll-3d-element {
        opacity: 1 !important;
        transform: none !important;
    }
    .parallax-bg, .parallax-layer {
        transform: none !important;
    }
}


/* =========================================
   FLOATING HERO BACKGROUND ELEMENTS
   ========================================= */

.float-el {
    position: absolute;
    opacity: 0.8;
}

/* 1. Abstract Plus Signs */
.plus-el {
    width: 24px;
    height: 24px;
    opacity: 0.65;
}
.plus-el::before, .plus-el::after {
    content: '';
    position: absolute;
    background: var(--color-primary-light);
    border-radius: 4px;
}
.plus-el::before {
    top: 50%; left: 0; width: 100%; height: 4px; transform: translateY(-50%);
}
.plus-el::after {
    left: 50%; top: 0; width: 4px; height: 100%; transform: translateX(-50%);
}

.p1 { top: 18%; left: 12%; --s: 0.8; --r: 15deg; --r-end: 60deg; animation: floatPlus 12s ease-in-out infinite; }
.p2 { top: 22%; right: 15%; --s: 1.3; --r: 45deg; --r-end: 90deg; animation: floatPlus 15s ease-in-out infinite reverse; }
.p3 { top: 70%; left: 8%; --s: 0.6; --r: -20deg; --r-end: 25deg; animation: floatPlus 10s ease-in-out infinite; }
.p4 { top: 55%; right: 8%; --s: 0.9; --r: 10deg; --r-end: 45deg; animation: floatPlus 14s ease-in-out infinite; }
.p5 { top: 82%; right: 28%; --s: 0.5; --r: 0deg; --r-end: 90deg; animation: floatPlus 18s ease-in-out infinite reverse; opacity: 0.4; }

.p4::before, .p4::after, .p2::before, .p2::after { 
    background: var(--color-secondary-light); 
}

@keyframes floatPlus {
    0%, 100% { transform: translateY(0) scale(var(--s)) rotate(var(--r)); }
    50% { transform: translateY(-35px) scale(var(--s)) rotate(var(--r-end)); }
}

/* 2. Glowing Orbs */
.orb-el {
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    opacity: 0.6;
}
.o1 { width: 350px; height: 350px; background: rgba(83, 32, 123, 0.2); top: -5%; right: -5%; animation: floatOrb 20s ease-in-out infinite; }
.o2 { width: 450px; height: 450px; background: rgba(212, 39, 126, 0.15); bottom: -15%; left: -10%; animation: floatOrb 25s ease-in-out infinite reverse; }
.o3 { width: 250px; height: 250px; background: rgba(83, 32, 123, 0.15); top: 35%; left: 45%; animation: floatOrb 18s ease-in-out infinite; }

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(35px, -60px) scale(1.1); }
    66% { transform: translate(-25px, 25px) scale(0.9); }
}

/* 3. Abstract Capsules (Pills) */
.cap-el {
    width: 60px;
    height: 140px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(83, 32, 123, 0.15) 0%, rgba(212, 39, 126, 0.15) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 30px rgba(83,32,123,0.08);
}
.c1 { top: 20%; right: 25%; --rot: 30deg; --rot-end: 45deg; animation: floatCap 14s ease-in-out infinite; }
.c2 { top: 65%; left: 15%; --rot: -40deg; --rot-end: -25deg; animation: floatCap 16s ease-in-out infinite reverse; width: 45px; height: 110px; border-radius: 25px; }
.c3 { top: 15%; left: 25%; --rot: 15deg; --rot-end: -10deg; animation: floatCap 20s ease-in-out infinite; width: 35px; height: 80px; border-radius: 18px; }
.c4 { top: 75%; right: 18%; --rot: -60deg; --rot-end: -40deg; animation: floatCap 18s ease-in-out infinite reverse; width: 50px; height: 120px; border-radius: 25px; }

@keyframes floatCap {
    0%, 100% { transform: translateY(0) rotate(var(--rot)); }
    50% { transform: translateY(-50px) rotate(var(--rot-end)); }
}

/* 4. Abstract Rings */
.ring-el {
    border-radius: 50%;
    border: 2px solid rgba(83, 32, 123, 0.2);
    box-sizing: border-box;
}
.r1 { top: 12%; left: 40%; width: 100px; height: 100px; animation: floatOrb 15s ease-in-out infinite; border-color: rgba(212, 39, 126, 0.2); }
.r2 { top: 45%; right: 5%; width: 160px; height: 160px; animation: floatOrb 22s ease-in-out infinite reverse; border-width: 3px; }
.r3 { bottom: 15%; left: 35%; width: 70px; height: 70px; animation: floatOrb 18s ease-in-out infinite; }

/* Connect Links CTAs */
.connect-links a {
    transition: var(--transition-fast);
}
.connect-links a:hover {
    color: var(--color-primary) !important;
}
.connect-links a:hover svg {
    transform: scale(1.1);
    stroke: var(--color-primary) !important;
    transition: transform var(--transition-fast), stroke var(--transition-fast);
}

/* Mouse Interactive Magnetic/Dodge Effect for Float Elements */
.float-el {
    /* Translate operates independently of transform, so it won't break keyframe animations */
    translate: var(--tx, 0px) var(--ty, 0px);
    transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* =========================================
   PREMIUM CUSTOM CURSOR
   ========================================= */
@media (min-width: 1024px) {
    body, a, button, input, textarea, select, .glass-card, .portfolio-card {
        cursor: none !important;
    }
}

.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--color-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    transition: background 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border: 1.5px solid var(--color-primary-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.hover-active {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    background: rgba(201, 20, 88, 0.08); /* Magenta tint */
    border-color: rgba(201, 20, 88, 0.4);
}

.cursor-dot.hover-active {
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    background: var(--color-primary);
}

/* Force inline grids to collapse on mobile */
@media (max-width: 768px) {
    [style*="grid-template-columns: 1fr 1.35fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Hide timeline visual on mobile */
    .timeline-visual.hidden-mobile {
        display: none !important;
    }
}

/* Global inline grid override for strict auto-fit sizes on small screens */
@media (max-width: 480px) {
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
}
