/* =============================================================================
   styles.css — AKIB Portfolio
   2026 Edition: Clean, modern, dark-first design
   Uses Inter font. CSS custom properties for theming.
   ============================================================================= */

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

img, svg, canvas {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
}

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
    /* Palette */
    --cyan:    #00d4ff;
    --pink:    #ff006e;
    --purple:  #8338ec;

    /* Dark-mode surfaces */
    --bg-900:  #0a0e27;
    --bg-800:  #111428;
    --bg-700:  #1a1f3a;
    --bg-600:  #242840;

    /* Glass */
    --glass-bg:    rgba(255,255,255,0.05);
    --glass-bd:    rgba(255,255,255,0.10);

    /* Text */
    --text-primary: #f0f2ff;
    --text-muted:   rgba(240,242,255,0.65);

    /* Accents (used in gradients) */
    --grad-main:  linear-gradient(135deg, var(--cyan), var(--pink));
    --grad-hero:  linear-gradient(135deg, var(--bg-900), #1a1f3a);

    /* Spacing / radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --section-pad: 120px 0;
    --container:  1300px;

    /* Transitions */
    --trans: 0.3s ease;
}

/* ── Light-mode overrides ──────────────────────────────────────────────────── */
body.light-mode {
    --bg-900: #f0f2f8;
    --bg-800: #e4e6f0;
    --bg-700: #ffffff;
    --bg-600: #f9fafb;
    --glass-bg:  rgba(255,255,255,0.7);
    --glass-bd:  rgba(0,0,0,0.08);
    --text-primary: #0f1535;
    --text-muted:   rgba(15,21,53,0.65);
}

/* ── Body ──────────────────────────────────────────────────────────────────── */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-900);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background var(--trans), color var(--trans);
    line-height: 1.6;
}

/* Ambient radial glow fixed behind everything */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 40%, rgba(0,212,255,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(131,56,236,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Layout helpers ──────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 48px;
}

/* ── Custom cursor ──────────────────────────────────────────────────────────── */
.cursor {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, border-color 0.15s, background 0.15s;
    mix-blend-mode: difference;
}

.cursor.cursor--active {
    width: 48px;
    height: 48px;
    border-color: var(--pink);
    background: rgba(255, 0, 110, 0.1);
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: none;
}

/* ── Scroll progress bar ───────────────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-main);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px var(--cyan);
}

/* ── Loading screen ─────────────────────────────────────────────────────────── */
#loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-900), var(--bg-700), #2d1b69);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
}

/* Particle dots wrapper */
.loading-particles {
    position: absolute;
    inset: -200px;
    pointer-events: none;
}

.loading-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 5s ease-in-out infinite;
}

@keyframes particle-float {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    30%  { opacity: 0.8; }
    70%  { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-120px) scale(0.5); }
}

/* Spinning orbital rings */
.loading-orb {
    width: 140px;
    height: 140px;
    position: relative;
    animation: orb-pulse 2s ease-in-out infinite;
}

.loading-orb::before,
.loading-orb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.loading-orb::before {
    border-top-color: var(--cyan);
    border-right-color: var(--cyan);
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 30px var(--cyan), inset 0 0 30px rgba(0,212,255,0.1);
}

.loading-orb::after {
    inset: 20px;
    border-bottom-color: var(--pink);
    border-left-color: var(--pink);
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

/* Letter-by-letter "WELCOME" */
.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.loading-text span {
    display: inline-block;
    opacity: 0;
    animation: letter-pop 0.5s ease forwards;
}

@keyframes letter-pop {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.progress-bar {
    width: 240px;
    height: 4px;
    background: rgba(0,212,255,0.1);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--grad-main);
    border-radius: 99px;
    animation: progress-fill 2.4s ease forwards;
    box-shadow: 0 0 12px var(--cyan);
}

@keyframes progress-fill {
    to { width: 100%; }
}

/* ── Intro / splash page ─────────────────────────────────────────────────────── */
#intro-page {
    position: fixed;
    inset: 0;
    background: var(--grad-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#intro-page.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#intro-page.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.intro-title {
    font-size: 6rem;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    text-transform: uppercase;
    animation: float-y 4s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(0,212,255,0.4));
}

.intro-subtitle {
    font-size: 1.4rem;
    color: var(--cyan);
    margin: 16px 0 48px;
    font-weight: 300;
    opacity: 0;
    animation: fade-up 1s ease 0.4s forwards;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

.explore-btn {
    padding: 18px 56px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--grad-main);
    color: #fff;
    border: none;
    border-radius: 99px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: btn-glow 2s ease-in-out infinite;
    transition: transform var(--trans);
    position: relative;
    overflow: hidden;
}

.explore-btn:hover {
    transform: scale(1.08);
}

@keyframes btn-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(0,212,255,0.4); }
    50%       { box-shadow: 0 0 60px rgba(0,212,255,0.7); }
}

/* ── Main content (hidden until "Explore" clicked) ─────────────────────────── */
#main-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    position: relative;
    z-index: 1;
}

#main-content.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
#site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 72px;
    background: rgba(10,14,39,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-bd);
    transition: background var(--trans), border-color var(--trans);
}

body.light-mode #site-header {
    background: rgba(255,255,255,0.75);
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: filter var(--trans), transform var(--trans);
}

.logo:hover {
    filter: drop-shadow(0 0 12px var(--cyan));
    transform: scale(1.05);
}

/* Desktop nav */
.nav-desktop {
    display: flex;
    gap: 44px;
    align-items: center;
}

.nav-desktop a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: color var(--trans);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-main);
    border-radius: 99px;
    transition: width var(--trans);
}

.nav-desktop a:hover {
    color: var(--cyan);
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* Header controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme toggle button */
.theme-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color var(--trans), box-shadow var(--trans), transform var(--trans);
}

.theme-toggle:hover {
    color: var(--cyan);
    transform: rotate(20deg);
    box-shadow: 0 0 16px rgba(0,212,255,0.3);
}

/* Hamburger button (mobile only) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 99px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg-800);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-nav-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color var(--trans);
}

.mobile-nav-link:hover {
    color: var(--cyan);
}

/* ── Section defaults ─────────────────────────────────────────────────────── */
section {
    padding: var(--section-pad);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 64px;
}

body.light-mode .section-title {
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
    background: none;
}

.section-title.text-left {
    text-align: left;
}

/* Scroll-reveal base state */
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero section ────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-hero);
    overflow: hidden;
    padding: 0 24px;
    position: relative;
}

/* Decorative blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blob-pulse 8s ease-in-out infinite;
}

.hero::before {
    width: 500px;
    height: 500px;
    background: rgba(0,212,255,0.12);
    top: 10%;
    right: 5%;
}

.hero::after {
    width: 400px;
    height: 400px;
    background: rgba(131,56,236,0.12);
    bottom: 10%;
    left: 5%;
    animation-delay: 3s;
}

@keyframes blob-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
}

.hero-name {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.1;
    animation: hero-in 1s ease forwards;
    opacity: 0;
}

.hero-name .highlight {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0,212,255,0.4));
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--cyan);
    font-weight: 300;
    margin: 20px 0 40px;
    min-height: 2em;
    animation: hero-in 1s ease 0.3s forwards;
    opacity: 0;
}

/* Blinking typed cursor */
.typed-cursor {
    display: inline-block;
    animation: blink 0.8s step-end infinite;
    color: var(--pink);
    font-weight: 100;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    animation: hero-in 1s ease 0.6s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 44px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 99px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: transform var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans);
}

.btn-primary {
    background: var(--grad-main);
    color: #fff;
    box-shadow: 0 0 28px rgba(0,212,255,0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 50px rgba(0,212,255,0.65);
}

.btn-secondary {
    background: transparent;
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-secondary:hover {
    background: var(--cyan);
    color: var(--bg-900);
    transform: translateY(-4px);
}

/* Social links in hero */
.hero-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    animation: hero-in 1s ease 0.9s forwards;
    opacity: 0;
}

.hero-social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--glass-bd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-decoration: none;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    transition: color var(--trans), border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}

.hero-social-link:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 0 16px rgba(0,212,255,0.4);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2.5s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    stroke: var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan));
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-10px); }
}

/* ── About section ──────────────────────────────────────────────────────────── */
.about {
    background: var(--bg-900);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about h2 {
    font-size: 3rem;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body.light-mode .about h2 {
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
    background: none;
}

.about-para {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Stats row */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Decorative image box */
.about-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-700), var(--bg-600));
    border: 1px solid var(--glass-bd);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: float-y 4s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0,212,255,0.12);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-main);
    opacity: 0.06;
}

.about-icon {
    font-size: 6rem;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: float-y 3s ease-in-out infinite;
}

/* ── Education section ─────────────────────────────────────────────────────── */
.education {
    background: var(--bg-800);
}

.timeline {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    align-items: start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-md);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.timeline-item:hover {
    transform: translateX(8px);
    border-color: var(--cyan);
    box-shadow: 0 12px 40px rgba(0,212,255,0.12);
}

/* Icon circle */
.timeline-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

.timeline-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 4px;
}

.timeline-institution {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 8px;
}

.timeline-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 99px;
    padding: 3px 12px;
    margin-bottom: 12px;
}

.timeline-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ── Skills section ──────────────────────────────────────────────────────────── */
.skills {
    background: var(--bg-900);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-md);
    padding: 36px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
    cursor: default;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--trans);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-12px);
    border-color: var(--cyan);
    box-shadow: 0 20px 50px rgba(0,212,255,0.18);
}

.skill-icon {
    font-size: 3rem;
    color: var(--cyan);
    margin-bottom: 16px;
    transition: transform 0.5s ease, color var(--trans);
    position: relative;
    z-index: 1;
    display: block;
}

.skill-card:hover .skill-icon {
    transform: rotateY(360deg) scale(1.2);
    color: var(--pink);
}

.skill-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.skill-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Progress bar */
.skill-progress {
    width: 100%;
    height: 6px;
    background: rgba(0,212,255,0.08);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.skill-progress-fill {
    height: 100%;
    width: 0;                         /* starts at 0, animated by JS */
    background: var(--grad-main);
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 8px var(--cyan);
}

.skill-percent {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ── Projects section ────────────────────────────────────────────────────────── */
.projects {
    background: var(--bg-800);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow  0.4s ease,
                border-color var(--trans);
    transform-style: preserve-3d;
    cursor: default;
}

.project-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 24px 60px rgba(0,212,255,0.18);
}

/* Project image area */
.project-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-700), var(--bg-600));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-emoji {
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

/* Project content */
.project-content {
    padding: 28px;
}

.project-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 10px;
}

.project-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 14px;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 99px;
    font-size: 0.78rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background var(--trans), color var(--trans);
}

.tag:hover {
    background: var(--cyan);
    color: var(--bg-900);
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--trans);
}

.project-link:hover {
    color: var(--cyan);
}

/* ── Testimonials / Recommendations ─────────────────────────────────────────── */
.recommendations {
    background: var(--bg-900);
}

.testimonial-carousel {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(12px);
    transition: transform var(--trans), box-shadow var(--trans);
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0,212,255,0.1);
}

.quote-icon {
    font-size: 2rem;
    color: var(--cyan);
    opacity: 0.4;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--pink);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Dot indicators */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-bd);
    border: none;
    cursor: pointer;
    transition: background var(--trans), transform var(--trans);
    padding: 0;
}

.dot.active {
    background: var(--cyan);
    transform: scale(1.3);
}

/* Carousel nav buttons */
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--trans), color var(--trans), box-shadow var(--trans), transform var(--trans);
}

.carousel-btn:hover {
    background: var(--cyan);
    color: var(--bg-900);
    transform: scale(1.1);
    box-shadow: 0 0 24px rgba(0,212,255,0.4);
}

/* ── Contact section ─────────────────────────────────────────────────────────── */
.contact {
    background: var(--bg-800);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.contact-item:hover {
    transform: translateX(6px);
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0,212,255,0.1);
}

.contact-item-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(0,212,255,0.25);
}

.contact-item h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--trans);
}

.contact-item a:hover {
    color: var(--cyan);
}

/* Contact form */
.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    background: var(--bg-700);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color var(--trans), box-shadow var(--trans);
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}

.contact-form .btn {
    align-self: flex-start;
}

/* Form response message */
.form-response {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-response.success {
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.3);
    color: var(--cyan);
}

.form-response.error {
    background: rgba(255,0,110,0.1);
    border: 1px solid rgba(255,0,110,0.3);
    color: var(--pink);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
    background: var(--bg-900);
    border-top: 1px solid var(--glass-bd);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--glass-bd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    background: var(--glass-bg);
    transition: color var(--trans), border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}

.social-icon:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(-6px) rotate(8deg);
    box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.heart {
    color: var(--pink);
}

/* ── Scroll-to-top button ────────────────────────────────────────────────────── */
.scroll-to-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 52px;
    height: 52px;
    background: var(--grad-main);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
    z-index: 200;
    box-shadow: 0 0 24px rgba(0,212,255,0.35);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(0,212,255,0.6);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-content,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-name {
        font-size: 3.8rem;
    }

    .section-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 80px 0;
    }

    .container {
        padding: 0 24px;
    }

    /* Show hamburger, hide desktop nav */
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    #site-header {
        padding: 0 24px;
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1.15rem;
    }

    .intro-title {
        font-size: 3.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 28px;
    }

    .timeline-item {
        grid-template-columns: 44px 1fr;
        gap: 16px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .intro-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        gap: 20px;
    }

    .btn {
        padding: 13px 28px;
        font-size: 0.9rem;
    }

    .explore-btn {
        padding: 14px 36px;
    }

    .contact-form {
        padding: 24px;
    }
}
