/* ============================================
   ZOHAIB AHMED — Portfolio Stylesheet
   Dark Mode | Animated | Premium
   ============================================ */

/* === RESET & VARIABLES === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-tertiary: #141420;
    --bg-card: rgba(20, 20, 35, 0.6);
    --bg-card-hover: rgba(30, 30, 50, 0.8);
    --bg-glass: rgba(15, 15, 25, 0.7);

    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #6a6a85;

    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #06d6a0;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --accent-glow-strong: rgba(0, 212, 255, 0.3);

    --gradient-primary: linear-gradient(135deg, #00d4ff, #7c3aed);
    --gradient-accent: linear-gradient(135deg, #7c3aed, #00d4ff);
    --gradient-card: linear-gradient(145deg, rgba(20, 20, 35, 0.8), rgba(10, 10, 20, 0.9));

    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 212, 255, 0.2);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --section-padding: 120px 0;
    --container-max: 1200px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

::selection { background: rgba(0, 212, 255, 0.25); color: #fff; }
img { max-width: 100%; display: block; }

/* === CINEMATIC PRELOADER === */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050508;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Exit animation phases */
.preloader.phase-out .preloader-inner {
    animation: preloader-content-out 0.6s ease forwards;
}

.preloader.phase-out .preloader-scanlines {
    animation: scanlines-out 0.4s ease forwards 0.3s;
}

.preloader.phase-out .preloader-bg-particles {
    animation: orbs-out 0.5s ease forwards 0.2s;
}

.preloader.hidden {
    animation: preloader-wipe 0.7s ease forwards;
    pointer-events: none;
}

@keyframes preloader-content-out {
    0% { opacity: 1; transform: scale(1); filter: blur(0); }
    100% { opacity: 0; transform: scale(1.1); filter: blur(8px); }
}

@keyframes scanlines-out {
    to { opacity: 0; }
}

@keyframes orbs-out {
    to { opacity: 0; transform: scale(1.5); }
}

@keyframes preloader-wipe {
    0% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); opacity: 0; visibility: hidden; }
}

/* Background orbs */
.preloader-bg-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.preloader-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.preloader-orb--1 {
    width: 300px; height: 300px;
    background: rgba(0, 212, 255, 0.15);
    top: -10%; left: -5%;
    animation: orb-drift 8s ease-in-out infinite alternate;
}

.preloader-orb--2 {
    width: 200px; height: 200px;
    background: rgba(124, 58, 237, 0.12);
    bottom: -5%; right: -5%;
    animation: orb-drift 6s ease-in-out infinite alternate-reverse;
}

.preloader-orb--3 {
    width: 150px; height: 150px;
    background: rgba(6, 214, 160, 0.08);
    top: 50%; left: 60%;
    animation: orb-drift 10s ease-in-out infinite alternate;
}

@keyframes orb-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.2); }
}

/* CRT Scanlines */
.preloader-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.015) 2px,
        rgba(255, 255, 255, 0.015) 4px
    );
    z-index: 3;
    pointer-events: none;
}

/* Inner content */
.preloader-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.preloader-logo-wrap {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 32px;
}

.preloader-bracket {
    color: var(--accent-primary);
    opacity: 0;
    display: inline-block;
}

.preloader-bracket--left {
    animation: bracket-left-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.preloader-bracket--right {
    animation: bracket-right-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes bracket-left-in {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes bracket-right-in {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

.preloader-initials {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: initials-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    text-shadow: none;
    position: relative;
}

@keyframes initials-in {
    0% { opacity: 0; transform: scale(0.5); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Glowing line under logo */
.preloader-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    margin-bottom: 28px;
    opacity: 0;
    animation: line-expand 0.6s ease 0.8s forwards;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

@keyframes line-expand {
    0% { width: 0; opacity: 0; }
    100% { width: 60px; opacity: 1; }
}

/* Status text + counter */
.preloader-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 240px;
    margin-bottom: 12px;
    opacity: 0;
    animation: fade-in-up 0.5s ease 1s forwards;
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.preloader-scramble {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-primary);
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.preloader-counter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Progress bar */
.preloader-bar {
    width: 240px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: fade-in-up 0.5s ease 1s forwards;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    transition: width 0.15s ease;
}

/* === 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: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

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

/* === PARTICLE CANVAS === */
#particleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === CONTAINER === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

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

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    gap: 2px;
    transition: transform var(--transition-bounce);
}

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

.logo-bracket { color: var(--accent-primary); }

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

.nav-links { display: flex; list-style: none; gap: 4px; }

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

.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all var(--transition-smooth);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

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

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

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

.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); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 212, 255, 0.4);
    color: #fff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before { left: 100%; }

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

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

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

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* === SECTION COMMON === */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 50px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

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

/* === HERO SECTION ===  */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
    z-index: 0;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px 60px 80px;
    position: relative;
    z-index: 2;
}

.hero-content { max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(6, 214, 160, 0.08);
    border: 1px solid rgba(6, 214, 160, 0.2);
    border-radius: 50px;
    color: var(--accent-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(6, 214, 160, 0); }
}

.hero-greeting {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--accent-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    background: linear-gradient(135deg, #fff 0%, #e8e8f0 40%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Reveal Animation */
.text-reveal {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient-primary);
    transform: translateX(-101%);
    animation: text-reveal-anim 1.2s ease forwards;
    animation-delay: inherit;
}

.text-reveal.revealed::after {
    animation: text-reveal-anim 1.2s ease forwards;
}

@keyframes text-reveal-anim {
    0% { transform: translateX(-101%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(101%); }
}

.hero-typewriter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 1.2rem;
}

.typewriter-prefix { color: var(--text-secondary); font-weight: 400; }

.typewriter-text {
    color: var(--accent-primary);
    font-weight: 600;
    font-family: var(--font-mono);
}

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

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

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 32px;
}

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

.hero-stats { display: flex; align-items: center; gap: 30px; }

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

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

.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

/* Right Side — Full-Height Image Background */
.hero-right { position: relative; overflow: hidden; }

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

.hero-right-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-right-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 10, 20, 0.35);
    z-index: 1;
}

.hero-right-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(10, 10, 15, 0.6) 15%, transparent 40%),
                linear-gradient(0deg, var(--bg-primary) 0%, transparent 25%),
                linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, transparent 15%);
    z-index: 2;
}

.hero-right-scanlines {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px);
    z-index: 3;
    pointer-events: none;
}

.hero-right-vignette {
    position: absolute; inset: 0;
    box-shadow: inset 0 0 120px rgba(0,0,0,0.5);
    z-index: 4;
    pointer-events: none;
}

.hero-right-corner {
    position: absolute;
    width: 80px; height: 80px;
    z-index: 5;
    pointer-events: none;
}

.hero-right-corner--tl { top: 40px; left: 40px; border-top: 2px solid rgba(0, 212, 255, 0.4); border-left: 2px solid rgba(0, 212, 255, 0.4); }
.hero-right-corner--br { bottom: 40px; right: 40px; border-bottom: 2px solid rgba(0, 212, 255, 0.4); border-right: 2px solid rgba(0, 212, 255, 0.4); }

.floating-icon {
    position: absolute;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    color: var(--accent-primary);
    font-weight: 700; font-size: 0.85rem;
    font-family: var(--font-mono);
    backdrop-filter: blur(12px);
    z-index: 6;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 15px rgba(0, 212, 255, 0.1);
}

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

.fi-1 { top: 18%; left: 15%; animation-delay: 0s; }
.fi-2 { top: 12%; right: 12%; animation-delay: 1.5s; }
.fi-3 { bottom: 25%; left: 10%; animation-delay: 3s; }
.fi-4 { bottom: 12%; right: 15%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-14px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

@keyframes scroll-anim {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* === MARQUEE BANNER === */
.marquee-banner {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-track span {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    flex-shrink: 0;
    transition: color 0.3s;
}

.marquee-track span:hover {
    color: var(--accent-primary);
}

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

/* === ABOUT SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-card {
    position: relative;
    border-radius: 24px;
    overflow: visible;
}

.about-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-smooth);
}

.about-image-card:hover .about-image { transform: scale(1.03); }

.about-image-decoration {
    position: absolute;
    bottom: -10px; right: -10px;
    width: 120px; height: 120px;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    opacity: 0.3;
    z-index: -1;
}

/* Floating experience badge on about image */
.about-exp-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
    z-index: 5;
    animation: float 5s ease-in-out infinite;
}

.about-exp-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.about-exp-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all var(--transition-smooth);
}

.info-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.info-item i { font-size: 1.3rem; color: var(--accent-primary); flex-shrink: 0; }

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.about-actions { display: flex; gap: 16px; margin-top: 24px; }

/* === SERVICES SECTION === */
.services { background: var(--bg-secondary); }

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

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.service-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.service-card:hover .service-card-bg { opacity: 1; }

.service-icon-wrapper {
    position: relative;
    width: 64px; height: 64px;
    margin-bottom: 24px;
}

.service-icon {
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid var(--border-glow);
    border-radius: 18px;
    color: var(--accent-primary);
    font-size: 1.6rem;
    position: relative;
    z-index: 2;
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--accent-glow-strong);
    transform: scale(1.1) rotate(5deg);
}

.service-icon-glow {
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 1;
}

.service-card:hover .service-icon-glow { opacity: 1; }

.service-number {
    position: absolute;
    top: 20px; right: 24px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    line-height: 1;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-list li i {
    color: var(--accent-tertiary);
    font-size: 1rem;
    flex-shrink: 0;
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.skill-category:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.skill-category-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category-title i { color: var(--accent-primary); font-size: 1.3rem; }

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

.skill-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.skill-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--dot-color);
    flex-shrink: 0;
}

/* === EXPERIENCE & EDUCATION SECTION === */
.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.journey-col-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.journey-col-title i { color: var(--accent-primary); font-size: 1.3rem; }

.timeline { position: relative; }

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

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-dot {
    width: 14px; height: 14px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    flex-shrink: 0;
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.2);
    animation: pulse-dot 2s infinite;
}

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

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    flex: 1;
    transition: all var(--transition-smooth);
    margin-bottom: 24px;
}

.timeline-card:hover {
    border-color: var(--border-glow);
    transform: translateX(6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

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

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.timeline-company a { color: var(--accent-primary); font-weight: 500; }

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

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

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 14px;
    font-style: italic;
    opacity: 0.8;
}

.timeline-tasks { list-style: none; margin-bottom: 18px; }

.timeline-tasks li {
    position: relative;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
}

.timeline-tasks li::before {
    content: '▸';
    position: absolute; left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.timeline-tags span {
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 500;
    font-family: var(--font-mono);
}

/* === PROJECTS SECTION === */
.projects { background: var(--bg-secondary); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.project-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.project-card:hover .project-card-inner {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Image Wrapper */
.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #111;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

/* Status Badges */
.project-status {
    position: absolute;
    top: 16px; left: 16px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-status::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
}

.status-live::before { background: #06d6a0; box-shadow: 0 0 10px #06d6a0; }
.status-internal::before { background: #00d4ff; box-shadow: 0 0 10px #00d4ff; }
.status-dev::before { background: #ffaa00; box-shadow: 0 0 10px #ffaa00; }

/* Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}

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

.overlay-text {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #fff;
    border-radius: 100px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.project-card:hover .overlay-text {
    transform: translateY(0);
}

/* Project Content */
.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-icon-mini {
    color: var(--accent-primary);
    font-size: 1.2rem;
    opacity: 0.8;
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tech span {
    font-size: 0.65rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted);
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.btn-detail {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.btn-detail:hover {
    color: var(--text-primary);
}

/* === PROJECT MODAL === */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

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

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    overflow: hidden;
    z-index: 2;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

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

.modal-content {
    height: 100%;
    overflow-y: auto;
    padding: 48px;
}

/* Scrollbar and other utils... */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }

/* Modal Inner Components */
.modal-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
}

.modal-image-main {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

.modal-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 16px;
    display: block;
}

.modal-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.modal-tech-item {
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.project-card:hover .project-icon {
    background: var(--accent-glow-strong);
    transform: scale(1.1);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

.project-tech span {
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-mono);
}

.project-links { display: flex; gap: 12px; margin-top: auto; }

.project-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.project-link:hover { color: #fff; gap: 10px; }

/* === CTA BANNER === */
.cta-banner {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-glow);
    border-radius: 28px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.cta-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cta-text p { color: var(--text-secondary); font-size: 1.05rem; }

.cta-glow {
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all var(--transition-smooth);
}

.contact-card:hover {
    border-color: var(--border-glow);
    transform: translateX(6px);
}

.contact-card-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-glow);
    border-radius: 12px;
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.contact-card a,
.contact-card span { color: var(--text-secondary); font-size: 0.9rem; }

.contact-socials { display: flex; gap: 12px; margin-top: 24px; }

.social-link {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all var(--transition-smooth);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

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

.form-group { margin-bottom: 20px; }

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

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

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

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

/* === FOOTER === */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-text { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

/* === SCROLL ANIMATIONS === */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }

[data-animate].animate-in {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger children animation */
.stagger-in > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-in.animate-in > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.stagger-in.animate-in > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-in.animate-in > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-in.animate-in > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-in.animate-in > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }
.stagger-in.animate-in > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: none; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto 50vh;
    }

    .hero-left {
        padding: 120px 40px 40px;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description { max-width: 600px; }
    .hero-stats { justify-content: center; }
    .hero-right { min-height: 50vh; }
    .hero-bg-grid { width: 100%; }
    .scroll-indicator { display: none; }

    .about-grid { grid-template-columns: 1fr; text-align: center; }

    .about-image {
        height: 350px; max-width: 350px; margin: 0 auto;
    }

    .about-info-grid { grid-template-columns: 1fr; }
    .about-actions { justify-content: center; }

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

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

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

    .cta-content {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    :root { --section-padding: 80px 0; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        z-index: 999;
    }

    .nav-links.active { display: flex; }
    .nav-link { font-size: 1.2rem; padding: 12px 24px; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .hero { grid-template-rows: auto 45vh; }
    .hero-left { padding: 100px 24px 30px; }

    .floating-icon {
        width: 40px; height: 40px; font-size: 0.7rem; border-radius: 10px;
    }
    .floating-icon svg { width: 18px; height: 18px; }

    .hero-right-corner { width: 50px; height: 50px; }
    .hero-right-corner--tl { top: 20px; left: 20px; }
    .hero-right-corner--br { bottom: 20px; right: 20px; }

    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }

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

    .timeline-header { flex-direction: column; }
    .timeline-meta { align-items: flex-start; }
    .contact-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }

    .about-exp-badge { bottom: -10px; right: -10px; padding: 12px 16px; }
    .about-exp-number { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2.5rem; }
    .hero { grid-template-rows: auto 40vh; }
    .floating-icon { display: none; }
    .about-info-grid { grid-template-columns: 1fr; }
}
