/* ══════════════════════════════════════════════════
   LIMITUP RENEWAL v3  ·  Glassmorphism Aurora Theme
   Palette : Deep Space Navy · Aurora Purple · Teal · Cyan
   ══════════════════════════════════════════════════ */

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

:root {
    /* ── Aurora Deep Space Palette ── */
    --bg-deep: #070715;
    --bg-mid: #0d0d2b;
    --bg-surface: #12122a;

    /* Glass surfaces */
    --glass-primary: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-bright: rgba(139, 92, 246, 0.4);

    /* Aurora Colors */
    --aurora-purple: #8B5CF6;
    --aurora-violet: #A855F7;
    --aurora-teal: #14B8A6;
    --aurora-cyan: #06B6D4;
    --aurora-green: #10B981;
    --aurora-indigo: #6366F1;

    /* Text */
    --text-main: #F0F0FF;
    --text-muted: rgba(200, 200, 240, 0.65);
    --text-accent: #C4B5FD;

    /* Gradients */
    --gradient-aurora: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 50%, #10B981 100%);
    --gradient-aurora2: linear-gradient(135deg, #6366F1 0%, #8B5CF6 40%, #14B8A6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.5) 0%, rgba(6, 182, 212, 0.5) 100%);

    /* Layout */
    --nav-height: 80px;
    --container-width: 1200px;
    --radius-card: 20px;
    --radius-btn: 50px;
}

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

html {
    scroll-behavior: auto;
}

/* Lenis가 스크롤 담당하므로 CSS smooth 비활성화 */

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

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

ul {
    list-style: none;
}

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

/* ─── Aurora Mesh Background ─── */
/* 단순화: radial-gradient 4개 → 2개로 줄여 fixed 재계산 부하 감소 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 15%, rgba(139, 92, 246, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(6, 182, 212, 0.14) 0%, transparent 60%);
    pointer-events: none;
    will-change: auto;
    transform: translateZ(0);
    /* GPU 레이어 분리 */
}

/* ─── Aurora Orbs ─── */
/* blur 감소(80→60px), 크기 축소, will-change로 GPU 컴포지팅 강제 */
.aurora-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    animation: orbFloat 20s ease-in-out infinite;
    will-change: transform;
    /* GPU 레이어 고정 */
    transform: translateZ(0);
    /* 초기 GPU 레이어 생성 */
    backface-visibility: hidden;
    /* 불필요한 repaint 방지 */
}

.aurora-orb-1 {
    width: 480px;
    height: 480px;
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, transparent 65%);
    animation-delay: 0s;
}

.aurora-orb-2 {
    width: 400px;
    height: 400px;
    top: 35%;
    right: -8%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.50) 0%, transparent 65%);
    animation-delay: -7s;
}

.aurora-orb-3 {
    width: 380px;
    height: 380px;
    bottom: -8%;
    left: 32%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, transparent 65%);
    animation-delay: -13s;
}

/* transform만 사용 → composite 단계만 실행 (layout/paint 없음) */
@keyframes orbFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    33% {
        transform: translate3d(30px, -25px, 0) scale(1.05);
    }

    66% {
        transform: translate3d(-25px, 15px, 0) scale(0.97);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* ─── Scroll Progress ─── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-aurora);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8), 0 0 20px rgba(6, 182, 212, 0.5);
}


/* ─── Splash Screen ─── */
#splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 8px;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    animation: splashPulse 1.5s ease-in-out infinite alternate;
}

@keyframes splashPulse {
    0% {
        filter: brightness(0.8);
    }

    100% {
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
    }
}

.splash-loader {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.splash-loader::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--gradient-aurora);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
    animation: loadBar 1.5s ease-in-out infinite;
}

@keyframes loadBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

/* ─── Navigation ─── */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

#mainNav.navbar-shrink {
    background: rgba(7, 7, 21, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(139, 92, 246, 0.08);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand span {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.navbar-nav {
    display: flex;
    gap: 2rem;
}

.navbar-nav li a {
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.navbar-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-aurora);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav li a:hover,
.navbar-nav li a.active {
    color: var(--text-main);
}

.navbar-nav li a:hover::after,
.navbar-nav li a.active::after {
    width: 100%;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(7, 7, 21, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        z-index: -1;
    }

    .navbar-collapse.show {
        transform: translateY(0);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

/* ─── Animations & Reveals ─── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.reveal-fade.active {
    opacity: 1;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ═══════════════════════════════
   HERO SECTION
═══════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

/* Hero background image with very dark overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(7, 7, 21, 0.6) 0%, rgba(7, 7, 21, 0.4) 50%, rgba(7, 7, 21, 0.8) 100%),
        url('../assets/img/hero-bg.png') center/cover no-repeat;
    z-index: 0;
    animation: zoomBg 22s ease-in-out infinite alternate;
}

@keyframes zoomBg {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Noise texture overlay */
.hero::after {
    content: '';
    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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

#tsparticles {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-bg-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle,
            rgba(139, 92, 246, 0.12) 0%,
            rgba(6, 182, 212, 0.08) 35%,
            transparent 65%);
    filter: blur(60px);
    z-index: 2;
    animation: heroPulse 10s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    from {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.6;
    }

    to {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-subheading {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px var(--primary-glow);
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(270deg, #ffffff, #a5b4fc, #6366f1, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientFlow 5s ease-in-out infinite;
    word-break: keep-all;
    min-height: 1.2em;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-sub-heading {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-block;
    padding: 1.1rem 3rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-btn);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    background: var(--glass-primary);
    border: 1px solid var(--glass-border-bright);
    color: var(--text-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-aurora);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--radius-btn);
}

.btn-primary:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.6), 0 0 80px rgba(6, 182, 212, 0.3);
}

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

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: scrollFade 2s ease-in-out infinite;
}

@keyframes scrollFade {

    0%,
    100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(6px);
    }
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-indicator i {
    color: var(--aurora-purple);
    font-size: 1rem;
}

/* ═══════════════════════════════
   COMMON SECTION STYLES
═══════════════════════════════ */
.page-section {
    position: relative;
    padding: 6rem 0;
    z-index: 1;
}

/* Alternating background tint */
.bg-secondary {
    background: rgba(139, 92, 246, 0.04);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-aurora);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 1.2rem;
}

/* ─── Glass Card Mixin ─── */
.glass-card {
    background: var(--glass-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
}

/* ═══════════════════════════════
   SERVICES SECTION
═══════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    background: var(--glass-primary);
    backdrop-filter: blur(10px);
    /* 16→10px: 렌더링 부하 감소 */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 3rem 2rem;
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    contain: layout style;
    /* 카드 내부 layout 격리 */
    transform: translateZ(0);
    /* GPU 레이어 분리 */
}

/* Gradient glow line top */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-aurora);
    transition: left 0.5s ease;
    border-radius: 2px 2px 0 0;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: var(--glass-hover);
    border: 1px solid var(--glass-border-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient-aurora);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 0.25;
}

.service-icon i {
    position: relative;
    z-index: 1;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    word-break: keep-all;
}

/* Glare overlay (JS adds this) */
.glare-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    transition: background 0.1s;
}

/* ═══════════════════════════════
   PORTFOLIO SECTION
═══════════════════════════════ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    background: var(--bg-surface);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.15);
}

.portfolio-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.portfolio-link img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: brightness(0.85) saturate(0.9);
}

.portfolio-item:hover .portfolio-link img {
    transform: scale(1.08);
    filter: brightness(1) saturate(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.82) 0%,
            rgba(6, 182, 212, 0.82) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    color: white;
    font-size: 3rem;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover .portfolio-overlay-content {
    transform: scale(1);
}

.portfolio-caption {
    padding: 1.5rem;
    background: rgba(18, 18, 42, 0.85);
    /* backdrop-filter 제거 → 고정 bg로 대체 */
}

.portfolio-caption-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.portfolio-caption-subheading {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════
   ABOUT / TIMELINE
═══════════════════════════════ */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    content: "";
    background: linear-gradient(to bottom,
            var(--aurora-purple),
            var(--aurora-cyan),
            var(--aurora-green));
    opacity: 0.5;
}

.timeline>li {
    position: relative;
    min-height: 150px;
    margin-bottom: 100px;
}

.timeline>li::after,
.timeline>li::before {
    display: table;
    content: " ";
}

.timeline>li::after {
    clear: both;
}

.timeline-image {
    position: absolute;
    left: 50%;
    width: 150px;
    height: 150px;
    margin-left: -75px;
    text-align: center;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 100%;
    background-color: var(--bg-surface);
    overflow: hidden;
    z-index: 2;
    box-shadow:
        0 0 0 6px rgba(139, 92, 246, 0.1),
        0 0 30px rgba(139, 92, 246, 0.25);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
}

.timeline-image.final-circle {
    background: var(--gradient-aurora);
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: transparent;
    box-shadow:
        0 0 0 6px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(139, 92, 246, 0.5);
}

.timeline-image.final-circle h4 {
    font-size: 1rem;
    line-height: 1.5;
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.timeline-panel {
    position: relative;
    width: 41%;
    float: left;
    text-align: right;
    padding: 2rem;
    background: var(--glass-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timeline-panel::before {
    position: absolute;
    top: 40px;
    right: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-left: 15px solid rgba(255, 255, 255, 0.08);
    border-right: 0;
    border-bottom: 15px solid transparent;
    content: " ";
}

.timeline>li.timeline-inverted>.timeline-panel {
    float: right;
    text-align: left;
}

.timeline>li.timeline-inverted>.timeline-panel::before {
    right: auto;
    left: -15px;
    border-right-width: 15px;
    border-left-width: 0;
}

.timeline-heading h4 {
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.timeline-heading h4.subheading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    background: none;
    -webkit-text-fill-color: unset;
}

.timeline-body p {
    word-break: keep-all;
    line-height: 1.75;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .timeline::before {
        left: 40px;
    }

    .timeline>li {
        margin-bottom: 50px;
        min-height: 100px;
    }

    .timeline-image {
        left: 0;
        width: 80px;
        height: 80px;
        margin-left: 0;
        border-width: 2px;
    }

    .timeline-image.final-circle h4 {
        font-size: 0.7rem;
    }

    .timeline-panel {
        width: calc(100% - 100px);
        float: right;
        text-align: left;
    }

    .timeline-panel::before {
        display: none;
    }
}

/* ═══════════════════════════════
   CONTACT SECTION
═══════════════════════════════ */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-card {
    position: relative;
    background: var(--glass-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 3rem;
    text-align: center;
    width: 340px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Animated gradient border glow */
.contact-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-card) + 1px);
    background: var(--gradient-aurora);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.2);
}

.contact-card:hover::before {
    opacity: 1;
}

/* Inner bg to hide the gradient border */
.contact-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-card) - 1px);
    background: var(--bg-mid);
    z-index: 0;
    transition: background 0.4s ease;
}

.contact-card>* {
    position: relative;
    z-index: 1;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.contact-info a {
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    transition: color 0.3s;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-aurora);
    transition: width 0.3s;
}

.contact-info a:hover::after {
    width: 100%;
}

.contact-info a:hover {
    color: var(--aurora-cyan);
}

.contact-person {
    margin-top: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-person span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(7, 7, 21, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.back-to-top {
    transition: color 0.3s;
}

.back-to-top:hover {
    color: var(--aurora-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ═══════════════════════════════
   MODAL
═══════════════════════════════ */
.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 21, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content-wrapper {
    position: relative;
    z-index: 2;
    background: rgba(13, 13, 43, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 3rem;
    border-radius: var(--radius-card);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(139, 92, 246, 0.2);
}

.custom-modal.show .modal-content-wrapper {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--aurora-purple);
}

#modalImg {
    max-width: 100%;
    max-height: 50vh;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 1rem auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal-body p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ═══════════════════════════════
   UTILITIES
═══════════════════════════════ */
.text-center {
    text-align: center;
}

/* Aurora tag chip */
.aurora-chip {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-accent);
    margin-bottom: 1rem;
}

/* ─── Star field (CSS only ambient) ─── */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.6;
    }
}