/* ═══════════════════════════════════════════════
   ANCHANA S RAJAN — Portfolio Styles
   Premium Dark Theme with Vibrant Accents
   ═══════════════════════════════════════════════ */

/* ── CSS Variables / Design Tokens ── */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a28;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-border: rgba(255, 255, 255, 0.08);

    --text-primary: #f0eff4;
    --text-secondary: rgba(240, 239, 244, 0.65);
    --text-muted: rgba(240, 239, 244, 0.4);

    --accent-1: #a855f7;      /* Violet */
    --accent-2: #ec4899;      /* Pink */
    --accent-3: #6366f1;      /* Indigo */
    --accent-4: #14b8a6;      /* Teal */

    --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --gradient-hero: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #6366f1 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));

    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-max: 1200px;
    --container-padding: clamp(20px, 5vw, 48px);

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ── Cursor Glow ── */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--bg-glass-border);
    padding: 10px 0;
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link--cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 8px 24px;
}

.nav-link--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-link:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.hero-gradient-orb--1 {
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-gradient-orb--2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: 10%;
    left: -10%;
    animation-delay: -7s;
}

.hero-gradient-orb--3 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-title-name {
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 800;
    letter-spacing: -3px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    min-height: 30px;
}

.typed-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-1);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.4);
}

.btn--glass {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn--glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: clamp(280px, 25vw, 380px);
    height: clamp(280px, 25vw, 380px);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(168, 85, 247, 0.3);
}

.hero-image-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.2);
    animation: ring-rotate 30s linear infinite;
}

.hero-image-ring::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-1);
    border-radius: 50%;
    top: 50%;
    left: -6px;
    box-shadow: 0 0 20px var(--accent-1);
}

.hero-image-ring--2 {
    inset: -28px;
    border-color: rgba(236, 72, 153, 0.12);
    animation-direction: reverse;
    animation-duration: 40s;
}

.hero-image-ring--2::before {
    background: var(--accent-2);
    box-shadow: 0 0 20px var(--accent-2);
    left: auto;
    right: -6px;
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    font-size: 13px;
    font-weight: 500;
    z-index: 3;
    animation: float-card 6s infinite ease-in-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.float-card-icon {
    font-size: 20px;
}

.hero-float-card--1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.hero-float-card--2 {
    bottom: 20%;
    left: -15%;
    animation-delay: -2s;
}

.hero-float-card--3 {
    bottom: 5%;
    right: 0%;
    animation-delay: -4s;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-text {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    animation: scroll-pulse 2s infinite;
}

/* ── Section Common ── */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-1);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 500px;
}

/* ── About Section ── */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text--lead {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--bg-glass-border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-xl);
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
}

.about-image-accent {
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-xl) + 8px);
    border: 1px solid var(--bg-glass-border);
    z-index: -1;
}

.about-image-accent::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-xl) + 16px);
    border: 1px solid rgba(168, 85, 247, 0.08);
}

/* ── Skills Section ── */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.skill-card--featured {
    border-color: rgba(168, 85, 247, 0.2);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
}

.skill-icon {
    color: var(--accent-1);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.skill-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.skill-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.skill-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s var(--ease-out);
}

/* ── Experience / Timeline ── */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 6px;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-1);
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--accent-1);
    opacity: 0.5;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: rgba(168, 85, 247, 0.15);
    transform: translateX(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.timeline-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.timeline-badge--work {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-1);
}

.timeline-badge--edu {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-3);
}

.timeline-badge--cert {
    background: rgba(20, 184, 166, 0.15);
    color: var(--accent-4);
}

.timeline-date {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-org {
    font-size: 15px;
    color: var(--accent-1);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-details li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.timeline-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: 600;
}

/* ── Portfolio Section ── */
.portfolio {
    background: var(--bg-secondary);
}

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

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    transition: all var(--transition-base);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    border-color: rgba(168, 85, 247, 0.2);
}

.portfolio-card--large {
    grid-column: span 2;
}

.portfolio-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-card--large .portfolio-card-image {
    aspect-ratio: 21/9;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.portfolio-card-tag {
    padding: 6px 16px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-1);
    backdrop-filter: blur(10px);
}

.portfolio-card-info {
    padding: 28px;
}

.portfolio-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Video portfolio cards */
.portfolio-card-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1035, #0f1a2e);
}

.portfolio-card--large .portfolio-card-video {
    aspect-ratio: 21/9;
}

.portfolio-card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-video video {
    transform: scale(1.03);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.45);
    cursor: pointer;
    z-index: 4;
    transition: opacity 0.35s ease, background 0.35s ease;
    opacity: 1;
}

.video-play-overlay.playing {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.video-play-btn {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.35), 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.video-play-overlay:hover .video-play-btn {
    transform: scale(1.12);
    background: rgba(168, 85, 247, 0.95);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5), 0 0 0 6px rgba(168, 85, 247, 0.2);
}

.portfolio-card-tag--video {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    padding: 6px 14px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-1);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.portfolio-card--video:has(video[controls]) .portfolio-card-tag--video {
    opacity: 0;
    pointer-events: none;
}

/* Ensure video controls are always on top when visible */
.portfolio-card-video video[controls] {
    z-index: 3;
    position: relative;
}



/* ── Contact Section ── */
.contact-inner {
    max-width: 800px;
    margin: 0 auto;
}

.contact .section-header {
    text-align: center;
}

.contact .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    color: var(--accent-1);
}

.contact-card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.contact-card-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

/* ── Footer ── */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--bg-glass-border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
}

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

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-1);
}

/* ── Animations ── */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes scroll-pulse {
    0% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* Scroll-triggered animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

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

.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }

/* Section reveal */
.section .section-header,
.section .about-grid,
.section .skills-grid,
.section .timeline,
.section .portfolio-grid,
.section .contact-grid,
.section .contact-form {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.section.in-view .section-header,
.section.in-view .about-grid,
.section.in-view .skills-grid,
.section.in-view .timeline,
.section.in-view .portfolio-grid,
.section.in-view .contact-grid,
.section.in-view .contact-form {
    opacity: 1;
    transform: translateY(0);
}

.section.in-view .about-grid { transition-delay: 0.15s; }
.section.in-view .skills-grid { transition-delay: 0.15s; }
.section.in-view .timeline { transition-delay: 0.15s; }
.section.in-view .portfolio-grid { transition-delay: 0.15s; }
.section.in-view .contact-grid { transition-delay: 0.15s; }
.section.in-view .contact-form { transition-delay: 0.3s; }

/* ── Responsive ── */

/* ── Large Tablets / Small Desktops (1024px) ── */
@media (max-width: 1024px) {
    :root {
        --section-padding: clamp(64px, 10vw, 120px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        width: 260px;
        height: 260px;
    }

    .hero-float-card--1 { right: 5%; }
    .hero-float-card--2 { left: 5%; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-col {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .portfolio-card--large {
        grid-column: span 1;
    }

    .portfolio-card--large .portfolio-card-image,
    .portfolio-card--large .portfolio-card-video {
        aspect-ratio: 16/9;
    }

    .section-title {
        font-size: clamp(32px, 5vw, 48px);
    }
}

/* ── Tablets Portrait (768px) ── */
@media (max-width: 768px) {
    :root {
        --container-padding: clamp(16px, 4vw, 32px);
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 80px;
        min-height: auto;
    }

    .hero-title-name {
        font-size: clamp(42px, 10vw, 64px);
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-float-card {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    /* About */
    .about-text--lead {
        font-size: 18px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .about-image-col {
        max-width: 320px;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skill-card {
        padding: 28px 24px;
    }

    /* Timeline */
    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
    }

    .timeline-content {
        padding: 24px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-content:hover {
        transform: translateX(4px);
    }

    /* Portfolio */
    .portfolio-card-info {
        padding: 20px;
    }

    .portfolio-card-title {
        font-size: 18px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-card {
        flex-direction: row;
        text-align: left;
        padding: 20px 24px;
        gap: 16px;
    }

    .contact-card-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ── Large Phones (600px) ── */
@media (max-width: 600px) {
    .hero-content {
        gap: 36px;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-image-ring {
        inset: -8px;
    }

    .hero-image-ring--2 {
        inset: -20px;
    }

    .hero-title-name {
        font-size: clamp(36px, 12vw, 52px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }

    /* About */
    .about-text {
        font-size: 15px;
    }

    .about-image-col {
        max-width: 280px;
    }

    .about-image {
        border-radius: var(--radius-lg);
    }

    /* Section headers */
    .section-tag {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }

    .section-title {
        font-size: clamp(28px, 7vw, 40px);
        letter-spacing: -1.5px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Timeline */
    .timeline-item {
        padding-bottom: 32px;
    }

    .timeline-details li {
        font-size: 13px;
    }

    /* Portfolio video cards */
    .portfolio-card-video {
        aspect-ratio: 16/10;
    }

    .portfolio-card-tag--video {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }

    /* Contact form */
    .form-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .contact-form {
        gap: 16px;
    }

    /* Toast */
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }
}

/* ── Phones (480px) ── */
@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
    }

    .hero {
        padding: 90px 0 60px;
    }

    .hero-image-wrapper {
        width: 190px;
        height: 190px;
    }

    .hero-image {
        border-width: 2px;
    }

    .hero-image-ring::before {
        width: 8px;
        height: 8px;
    }

    .hero-title-line {
        font-size: 16px;
    }

    .hero-title-name {
        font-size: clamp(32px, 14vw, 44px);
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    /* About */
    .about-stats {
        gap: 10px;
        margin-top: 28px;
        padding-top: 28px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-plus {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .about-image-col {
        max-width: 240px;
    }

    /* Skills */
    .skill-card {
        padding: 24px 20px;
    }

    .skill-icon svg {
        width: 32px;
        height: 32px;
    }

    .skill-name {
        font-size: 16px;
    }

    .skill-desc {
        font-size: 13px;
    }

    /* Timeline */
    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-marker {
        left: -24px;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 20px 16px;
    }

    .timeline-title {
        font-size: 16px;
    }

    .timeline-org {
        font-size: 14px;
    }

    .timeline-badge {
        font-size: 10px;
        padding: 3px 10px;
    }

    .timeline-date {
        font-size: 12px;
    }

    .timeline-text {
        font-size: 13px;
    }

    .timeline-details li {
        font-size: 13px;
        padding-left: 16px;
    }

    /* Portfolio */
    .portfolio-card {
        border-radius: var(--radius-md);
    }

    .portfolio-card-info {
        padding: 16px;
    }

    .portfolio-card-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .portfolio-card-desc {
        font-size: 13px;
    }

    .video-play-btn {
        width: 52px;
        height: 52px;
    }

    .video-play-btn svg {
        width: 20px;
        height: 20px;
    }

    .portfolio-card-tag {
        padding: 4px 12px;
        font-size: 11px;
    }

    /* Contact */
    .contact-card {
        padding: 16px 20px;
        gap: 14px;
    }

    .contact-card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: var(--radius-sm);
    }

    .contact-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .contact-card-label {
        font-size: 11px;
    }

    .contact-card-value {
        font-size: 13px;
    }

    .form-label {
        font-size: 12px;
    }

    .btn--full {
        padding: 14px 20px;
        font-size: 14px;
    }

    /* Nav */
    .nav-logo {
        font-size: 24px;
    }

    .nav.scrolled {
        padding: 8px 0;
    }

    /* Mobile menu */
    .mobile-link {
        font-size: 26px;
    }

    /* Footer */
    .footer {
        padding: 24px 0;
    }

    .footer-text {
        font-size: 13px;
    }

    .footer-link {
        font-size: 13px;
    }
}

/* ── Small Phones (360px) ── */
@media (max-width: 360px) {
    :root {
        --container-padding: 14px;
    }

    .hero-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .hero-title-name {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
        letter-spacing: -1px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
    }

    .about-image-col {
        max-width: 200px;
    }

    .timeline-content {
        padding: 16px 14px;
    }

    .timeline-title {
        font-size: 15px;
    }

    .mobile-link {
        font-size: 22px;
    }

    .video-play-btn {
        width: 44px;
        height: 44px;
    }

    .video-play-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ── Touch device optimizations ── */
@media (hover: none) {
    .portfolio-card:hover {
        transform: none;
        box-shadow: none;
    }

    .portfolio-card:active {
        transform: scale(0.98);
    }

    .skill-card:hover {
        transform: none;
    }

    .skill-card:active {
        transform: scale(0.98);
    }

    .timeline-content:hover {
        transform: none;
    }

    .contact-card:hover {
        transform: none;
    }

    .contact-card:active {
        transform: scale(0.97);
    }

    .btn--primary:hover,
    .btn--glass:hover {
        transform: none;
    }

    .btn--primary:active,
    .btn--glass:active {
        transform: scale(0.96);
    }

    .cursor-glow {
        display: none;
    }
}

/* ── Landscape phones ── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 32px;
    }

    .hero-visual {
        order: 0;
    }

    .hero-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-float-card {
        display: none;
    }

    .hero-scroll {
        display: none;
    }
}

/* ── Print styles ── */
@media print {
    .nav, .hero-bg, .cursor-glow, .hero-scroll,
    .hero-float-card, .hero-image-ring,
    .video-play-overlay, .nav-toggle, .mobile-menu {
        display: none !important;
    }

    body {
        background: white;
        color: #1a1a1a;
    }

    .section {
        padding: 32px 0;
    }

    .portfolio-card, .skill-card, .timeline-content, .contact-card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 16px 28px;
    background: rgba(18, 18, 26, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-base);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.3);
}

.toast-success::before {
    content: '✓ ';
    color: #22c55e;
    font-weight: 700;
}
