/* ============================================
   ANKUSH CHAKRABORTY — PORTFOLIO DESIGN SYSTEM
   Premium dark theme with glassmorphism, 
   gradient lighting, and micro-interactions
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #050510;
    --bg-secondary: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #f0f0f5;
    --text-secondary: #9595b0;
    --text-muted: #5a5a7a;
    --accent-1: #00d4ff;
    --accent-2: #7c3aed;
    --accent-3: #06b6d4;
    --gradient-main: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.4) 0%, rgba(124, 58, 237, 0.4) 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -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.7;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ---------- Particles ---------- */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    transition: var(--transition);
}

.nav-logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

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

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

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.hero-bg-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 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 212, 255, 0.12);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.1);
    bottom: -10%;
    left: -5%;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.08);
    top: 40%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes orbFloat {

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

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ---------- Hero Inner (two-column layout) ---------- */
.hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 620px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-glass);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-1);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-greeting {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.hero-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #c0c0d0 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 24px;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ---------- Hero Visual / Photo ---------- */
.hero-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.hero-photo-wrap {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer pulsing rings */
.photo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    pointer-events: none;
}

.photo-ring-1 {
    width: 340px;
    height: 340px;
    border-color: rgba(0, 212, 255, 0.18);
    animation: ringPulse 4s ease-in-out infinite;
}

.photo-ring-2 {
    width: 300px;
    height: 300px;
    border-color: rgba(124, 58, 237, 0.18);
    animation: ringPulse 4s ease-in-out infinite 1s;
}

@keyframes ringPulse {

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

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Soft glow behind photo */
.photo-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.18) 0%, rgba(124, 58, 237, 0.1) 55%, transparent 75%);
    filter: blur(20px);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

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

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Orbiting accent dots */
.photo-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    animation: orbitSpin 12s linear infinite;
    pointer-events: none;
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-main);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.8);
}

.orbit-dot-1 {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-dot-2 {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* The actual photo frame */
.photo-frame {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-main);
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.25),
        0 0 80px rgba(124, 58, 237, 0.15),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.photo-frame:hover {
    box-shadow:
        0 0 60px rgba(0, 212, 255, 0.45),
        0 0 100px rgba(124, 58, 237, 0.25),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.03);
}

.hero-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

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

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

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

/* ---------- Hero Stats ---------- */
.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 48px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border-glass);
}

.stat-item {
    text-align: center;
}

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

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-1);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.glass-card:hover {
    border-color: rgba(0, 212, 255, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    transform: translateY(-4px);
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
}

.highlight-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.highlight-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.highlight-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Experience / Timeline ---------- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 24px;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 28px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-main);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    flex-shrink: 0;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    margin-top: 8px;
}

.timeline-content {
    flex: 1;
    padding: 28px 32px;
}

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

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.timeline-company {
    color: var(--accent-1);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 2px;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.timeline-date,
.timeline-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-3);
}

/* ---------- Skills Section ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.skill-category {
    padding: 32px;
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-cat-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-1);
}

.skill-cat-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 18px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

/* ---------- Projects ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    padding: 36px;
    position: relative;
}

.project-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    position: absolute;
    top: 20px;
    right: 28px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.project-icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.project-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-details li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.project-tech span {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-1);
    background: rgba(0, 212, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Education ---------- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.edu-card {
    padding: 36px 28px;
    text-align: center;
}

.edu-year {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    background: var(--gradient-subtle);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 20px;
}

.edu-degree {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.edu-institution {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.edu-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Certifications ---------- */
.cert-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
}

.cert-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #22c55e;
}

.cert-icon svg {
    width: 100%;
    height: 100%;
}

.cert-info h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.cert-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---------- Additional Info ---------- */
.additional-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.add-card {
    padding: 32px;
    text-align: center;
}

.add-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--accent-1);
}

.add-icon svg {
    width: 100%;
    height: 100%;
}

.add-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.add-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.add-tags span {
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.12);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.add-tags span:hover {
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    padding: 28px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-1);
    margin-bottom: 4px;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.contact-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.contact-sub {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
}

.phone-gated-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-1) !important;
    font-weight: 500;
}

/* ---------- Phone Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: var(--transition-slow);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.modal-icon svg {
    width: 100%;
    height: 100%;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Visitor Selector Options */
.visitor-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.visitor-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-primary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.visitor-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
}

.form-group {
    text-align: left;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

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

.form-group input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

/* Phone Revealed State */
.phone-revealed {
    padding-top: 12px;
}

.revealed-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
}

.revealed-icon svg {
    width: 100%;
    height: 100%;
}

.revealed-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.revealed-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.revealed-number:hover {
    filter: brightness(1.2);
}

/* ---------- Footer ---------- */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ---------- Ambient Audio Toggle ---------- */
.audio-toggle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.audio-toggle:hover {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(15, 15, 35, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.audio-toggle.playing {
    color: var(--accent-1);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.audio-toggle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .hero-stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 16, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 100px 40px;
        gap: 24px;
        transition: var(--transition-slow);
        border-left: 1px solid var(--border-glass);
    }

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

    .nav-link {
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 20px 80px;
    }

    .hero-inner {
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-stats {
        justify-content: center;
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-photo-wrap {
        width: 260px;
        height: 260px;
    }

    .photo-ring-1 {
        width: 260px;
        height: 260px;
    }

    .photo-ring-2 {
        width: 230px;
        height: 230px;
    }

    .photo-orbit {
        width: 260px;
        height: 260px;
    }

    .photo-frame {
        width: 200px;
        height: 200px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-marker {
        flex-direction: row;
        padding-top: 0;
        gap: 8px;
        margin-bottom: 8px;
    }

    .timeline-line {
        height: 2px;
        width: 40px;
        margin-top: 0;
        background: linear-gradient(to right, var(--accent-1), transparent);
    }

    .timeline-header {
        flex-direction: column;
    }

    .timeline-meta {
        align-items: flex-start;
    }

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

    .cursor-glow {
        display: none;
    }

    .audio-toggle {
        bottom: 20px;
        right: 20px;
        padding: 12px;
    }

    .audio-toggle span {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .project-card {
        padding: 24px;
    }

    .skill-category {
        padding: 24px;
    }
}