/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #00f5ff;
    --secondary: #7b2fff;
    --accent: #ff006e;
    --bg: #050a14;
    --bg2: #0a1628;
    --bg3: #0f1f3d;
    --text: #e0e6f0;
    --text-muted: #7a8ba0;
    --border: rgba(0,245,255,0.15);
    --glow: 0 0 20px rgba(0,245,255,0.3);
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --radius: 12px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: rgba(5,10,20,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled { padding: 10px 0; background: rgba(5,10,20,0.95); }
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 32px;
}
.nav-logo {
    font-family: var(--font-head);
    font-size: 1.4rem; font-weight: 900;
    color: var(--text); letter-spacing: 2px;
}
.logo-bracket { color: var(--primary); }
.logo-text { color: var(--text); }
.nav-links {
    display: flex; list-style: none; gap: 8px; margin-left: auto;
}
.nav-link {
    color: var(--text-muted); padding: 8px 16px;
    font-size: 0.95rem; font-weight: 600; letter-spacing: 1px;
    border-radius: 6px; transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
    height: 2px; background: var(--primary);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link:hover::after, .nav-link.active::after { left: 16px; right: 16px; }

.btn-cv {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg) !important;
    padding: 10px 20px; border-radius: 8px;
    font-weight: 700; font-size: 0.85rem; letter-spacing: 1px;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: var(--glow);
}
.btn-cv:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,245,255,0.5); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--primary); border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    height: 100vh; min-height: 640px;
    position: relative; display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,245,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,245,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove { to { transform: translateY(60px); } }
.particles { position: absolute; inset: 0; }
.hero-glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.orb1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,245,255,0.1), transparent 70%); top: -100px; right: -100px; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(123,47,255,0.08), transparent 70%); bottom: -80px; left: -80px; }

/* Slider */
.hero-slider { position: relative; z-index: 1; width: 100%; height: 100vh; min-height: 640px; }

.slide {
    display: none;
    position: absolute; inset: 0;
    align-items: center;
    max-width: 1200px; width: 100%;
    margin: 0 auto; left: 50%; transform: translateX(-50%);
    padding: 0 clamp(20px, 4vw, 48px);
    gap: clamp(40px, 6vw, 80px);
}
.slide.active {
    display: flex;
    animation: slideIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(calc(-50% + 40px)); }
    to   { opacity: 1; transform: translateX(-50%); }
}

/* Slide content (left) */
.slide-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,245,255,0.08); border: 1px solid rgba(0,245,255,0.25);
    border-radius: 100px; padding: 6px 16px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
    color: var(--primary); margin-bottom: 20px; width: fit-content;
}
.badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 8px var(--primary);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.6); }
}

.slide-tag {
    color: var(--primary); font-family: var(--font-head);
    font-size: 0.78rem; letter-spacing: 3px;
    display: block; margin-bottom: 16px;
}
.slide-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 700; margin-bottom: 16px; line-height: 1.15;
}
.highlight { color: var(--primary); }

.glitch-wrapper { margin-bottom: 12px; }
.glitch {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    font-weight: 900; color: var(--text);
    position: relative; display: inline-block; line-height: 1.1;
    text-shadow: 0 0 40px rgba(0,245,255,0.2);
}
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch::before { color: var(--primary); animation: glitch1 4s infinite; clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
.glitch::after  { color: var(--accent);  animation: glitch2 4s infinite; clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }
@keyframes glitch1 { 0%,90%,100%{transform:translate(0)} 92%{transform:translate(-3px,1px)} 94%{transform:translate(3px,-1px)} 96%{transform:translate(-2px,2px)} }
@keyframes glitch2 { 0%,90%,100%{transform:translate(0)} 92%{transform:translate(3px,-1px)} 94%{transform:translate(-3px,1px)} 96%{transform:translate(2px,-2px)} }

.hero-subtitle {
    font-family: var(--font-head);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--primary); letter-spacing: 2px;
    margin-bottom: 16px; min-height: 1.6em;
}
.hero-desc {
    color: var(--text-muted); font-size: 1.05rem;
    max-width: 480px; line-height: 1.8; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg); padding: 14px 28px; border-radius: 8px;
    font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px;
    transition: var(--transition); box-shadow: var(--glow);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,245,255,0.4); color: var(--bg); }

.btn-outline {
    border: 1.5px solid rgba(0,245,255,0.4); color: var(--primary);
    padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 0.95rem;
    transition: var(--transition); background: rgba(0,245,255,0.04);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); transform: translateY(-3px); }

.hero-socials { display: flex; gap: 10px; }
.hero-socials .social-btn {
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.05rem; transition: var(--transition);
}
.hero-socials .social-btn:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-3px); }

/* Slide visual (right) */
.slide-visual { flex: 1; display: flex; justify-content: center; align-items: center; }

/* Hex grid */
.hex-grid { display: grid; grid-template-columns: repeat(3, 80px); gap: 12px; }
.hex {
    width: 80px; height: 90px; background: var(--bg3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid var(--border);
    animation: hexPulse 3s ease-in-out infinite;
}
.hex:nth-child(2n) { animation-delay: 0.5s; }
.hex:nth-child(3n) { animation-delay: 1s; }
.hex.active-hex { background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: var(--glow); }
@keyframes hexPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* Code block */
.code-block {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 0 40px rgba(0,245,255,0.1), 0 20px 60px rgba(0,0,0,0.4);
    width: 100%; max-width: 400px;
}
.code-header {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px; background: var(--bg3);
    border-bottom: 1px solid var(--border);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }
.code-filename { margin-left: 8px; font-size: 0.78rem; color: var(--text-muted); font-family: 'Courier New', monospace; }
.code-body { padding: 24px 28px; }
.code-line { font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.9; color: var(--text); }
.c-keyword { color: #c792ea; }
.c-var     { color: var(--primary); }
.c-key     { color: #ff9d00; }
.c-str     { color: #a8ff78; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-box {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 20px;
    text-align: center; transition: var(--transition);
}
.stat-box:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-4px); }
.stat-num { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 0.82rem; letter-spacing: 1px; margin-top: 6px; display: block; text-transform: uppercase; }

/* Slider controls */
.slider-controls {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 20px; z-index: 10;
}
.slider-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(10,22,40,0.8); border: 1px solid var(--border);
    color: var(--primary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); backdrop-filter: blur(10px);
}
.slider-btn:hover { background: var(--primary); color: var(--bg); box-shadow: var(--glow); }
.slider-dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--primary); width: 28px; border-radius: 4px; box-shadow: var(--glow); }

/* Progress bar */
.slide-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(0,245,255,0.08); z-index: 10; }
.slide-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); box-shadow: 0 0 8px rgba(0,245,255,0.5); transition: width linear; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute; right: 40px; bottom: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 0.7rem; letter-spacing: 2px;
    text-transform: uppercase; z-index: 10;
}
.scroll-line {
    width: 1px; height: 56px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim { 0%,100%{transform:scaleY(1);opacity:1} 50%{transform:scaleY(0.5);opacity:0.4} }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    color: var(--primary); font-family: var(--font-head);
    font-size: 0.8rem; letter-spacing: 3px;
    display: block; margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
}
.section-cta { text-align: center; margin-top: 48px; }
.highlight { color: var(--primary); }
.stat-num { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 1px; }

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 160px 0 80px;
    position: relative; overflow: hidden;
    text-align: center;
}
.page-hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,245,255,0.08) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; margin: 12px 0;
}
.page-hero p { color: var(--text-muted); font-size: 1.1rem; }

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.project-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition);
}
.project-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--glow); }

.project-img { position: relative; height: 220px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-placeholder {
    width: 100%; height: 100%;
    background: var(--bg3);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--primary);
}
.project-overlay {
    position: absolute; inset: 0;
    background: rgba(5,10,20,0.8);
    display: flex; align-items: center; justify-content: center; gap: 16px;
    opacity: 0; transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: var(--transition);
}
.overlay-btn:hover { background: var(--secondary); color: white; transform: scale(1.1); }

.featured-badge {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg); padding: 4px 12px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}

.project-info { padding: 24px; }
.project-info h3 {
    font-family: var(--font-head); font-size: 1.1rem;
    margin-bottom: 8px; color: var(--text);
}
.project-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: rgba(0,245,255,0.1); border: 1px solid var(--border);
    color: var(--primary); padding: 4px 12px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}

/* Filter Bar */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
    background: var(--bg2); border: 1px solid var(--border);
    color: var(--text-muted); padding: 8px 20px;
    border-radius: 20px; cursor: pointer; font-family: var(--font-body);
    font-size: 0.9rem; font-weight: 600; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary); color: var(--bg); border-color: var(--primary);
}

/* ===== SKILLS ===== */
.skills-categories {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.skill-category-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    transition: var(--transition);
}
.skill-category-card:hover { border-color: var(--primary); box-shadow: var(--glow); }
.category-title {
    font-family: var(--font-head); font-size: 1rem;
    color: var(--primary); margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}

.skill-section { margin-bottom: 60px; }
.skill-section-header { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.category-heading {
    font-family: var(--font-head); font-size: 1.3rem;
    color: var(--text); display: flex; align-items: center; gap: 12px;
    white-space: nowrap;
}
.cat-icon { color: var(--primary); }
.cat-line { flex: 1; height: 1px; background: var(--border); }

.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.skill-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; align-items: center; gap: 16px;
    transition: var(--transition);
}
.skill-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--glow); }
.skill-icon { font-size: 2rem; color: var(--primary); min-width: 40px; text-align: center; }
.skill-details { flex: 1; }
.skill-name { display: block; font-weight: 700; margin-bottom: 8px; }
.skill-level { font-size: 0.8rem; color: var(--primary); }

.skill-bar-item { margin-bottom: 16px; }
.skill-bar-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px; font-size: 0.9rem;
}
.skill-percent { margin-left: auto; color: var(--primary); font-weight: 700; }
.skill-bar-track {
    height: 6px; background: var(--bg3);
    border-radius: 3px; overflow: hidden;
}
.skill-bar-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0,245,255,0.5);
}

/* ===== CONTACT ===== */
.contact-section { padding: 80px 0; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 60px; margin-bottom: 60px;
}
.contact-info h2 {
    font-family: var(--font-head); font-size: 2rem;
    margin-bottom: 16px;
}
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(0,245,255,0.1); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.contact-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-weight: 600; }

.social-links { display: flex; gap: 12px; }
.social-btn {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--bg2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.1rem;
    transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); box-shadow: var(--glow); }

/* Contact Form */
.contact-form-wrap {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px;
    font-weight: 600; font-size: 0.9rem; color: var(--text-muted);
}
.form-group input, .form-group textarea {
    width: 100%; background: var(--bg3);
    border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 16px; color: var(--text);
    font-family: var(--font-body); font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,245,255,0.1);
}
.form-group textarea { resize: vertical; }
.btn-full { width: 100%; justify-content: center; }

/* Map */
.map-section {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--glow);
}

/* Alert */
.alert {
    padding: 16px 20px; border-radius: 8px;
    margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
    font-weight: 600;
}
.alert-success { background: rgba(0,245,255,0.1); border: 1px solid var(--primary); color: var(--primary); }

/* Empty State */
.empty-state { text-align: center; color: var(--text-muted); padding: 60px; font-size: 1.1rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg2); border-top: 1px solid var(--border);
    padding: 60px 0 0;
}
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
}
.footer-brand .logo-text { font-family: var(--font-head); font-size: 1.4rem; }
.footer-brand p { color: var(--text-muted); margin-top: 8px; font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 8px; }
.footer-social { display: flex; gap: 12px; align-items: flex-start; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--bg3); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border); padding: 20px 24px;
    text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .photo-glitch-wrap { width: 280px; height: 320px; }
    .photo-frame { width: 230px; height: 270px; }
    .ring1 { width: 260px; height: 300px; }
    .ring2 { width: 300px; height: 340px; }
}

@media (max-width: 900px) {
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(5,10,20,0.98); padding: 20px;
        border-bottom: 1px solid var(--border); gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    /* Stack slide vertically: visual on top, content below */
    .slide {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        left: 0; transform: none;
        padding: 80px 20px 110px;
        gap: 20px;
        overflow-y: auto;
        height: 100vh;
    }
    .slide.active { animation: slideInMobile 0.6s ease; }
    @keyframes slideInMobile { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

    /* Visual on top, smaller */
    .slide-visual {
        display: flex;
        order: -1;
        flex-shrink: 0;
    }
    .photo-glitch-wrap { width: 160px; height: 185px; }
    .photo-frame { width: 130px; height: 155px; border-radius: 14px; }
    .ring1 { width: 150px; height: 175px; }
    .ring2 { width: 175px; height: 200px; }
    .photo-dots::before { top: 6px; right: 6px; width: 6px; height: 6px; }
    .photo-dots::after  { bottom: 6px; left: 6px; width: 6px; height: 6px; }

    /* Hide code block and hex on mobile — photo is enough */
    .code-block, .hex-grid { display: none; }

    /* Stats grid smaller on mobile */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-box { padding: 16px 10px; }
    .stat-num { font-size: 1.6rem; }

    /* Content centered */
    .slide-content { align-items: center; width: 100%; }
    .hero-badge { margin: 0 auto 12px; }
    .hero-desc { max-width: 100%; font-size: 0.95rem; margin-bottom: 20px; }
    .hero-cta { justify-content: center; gap: 10px; margin-bottom: 16px; }
    .hero-socials { justify-content: center; }

    /* Buttons only — hide dots on mobile */
    .slider-dots { display: none; }
    .slider-controls {
        bottom: 20px; gap: 32px;
    }
    .slider-btn { width: 48px; height: 48px; font-size: 1rem; }

    .scroll-indicator { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero { min-height: 100svh; }
    .glitch { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .slide-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .hero-subtitle { font-size: 0.82rem; letter-spacing: 1px; }
    .btn-primary, .btn-outline { padding: 11px 18px; font-size: 0.85rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .hero-cta { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
    .slide { padding: 70px 16px 100px; }
}

/* ===== HERO PHOTO GLITCH ===== */
.photo-glitch-wrap {
    position: relative;
    width: 340px; height: 380px;
    display: flex; align-items: center; justify-content: center;
}

.photo-frame {
    position: relative;
    width: 280px; height: 320px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(0,245,255,0.3), inset 0 0 30px rgba(0,245,255,0.05);
    z-index: 2;
}

.hero-photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    display: block;
    filter: contrast(1.05) saturate(1.1);
}

/* Glitch layers over photo */
.photo-glitch-layer {
    position: absolute; inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: top;
    pointer-events: none;
}

.layer1 {
    background: rgba(0,245,255,0.15);
    mix-blend-mode: screen;
    animation: photoGlitch1 4s infinite;
    clip-path: polygon(0 20%, 100% 20%, 100% 35%, 0 35%);
}

.layer2 {
    background: rgba(255,0,110,0.12);
    mix-blend-mode: screen;
    animation: photoGlitch2 4s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
}

@keyframes photoGlitch1 {
    0%, 85%, 100% { transform: translate(0); opacity: 0; }
    87% { transform: translate(-6px, 2px); opacity: 1; clip-path: polygon(0 15%, 100% 15%, 100% 30%, 0 30%); }
    89% { transform: translate(6px, -2px); opacity: 0.8; clip-path: polygon(0 40%, 100% 40%, 100% 55%, 0 55%); }
    91% { transform: translate(-4px, 0); opacity: 1; }
    93% { transform: translate(0); opacity: 0; }
}

@keyframes photoGlitch2 {
    0%, 88%, 100% { transform: translate(0); opacity: 0; }
    90% { transform: translate(8px, -3px); opacity: 1; clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%); }
    92% { transform: translate(-5px, 3px); opacity: 0.7; clip-path: polygon(0 25%, 100% 25%, 100% 40%, 0 40%); }
    94% { transform: translate(0); opacity: 0; }
}

/* Scan line effect on photo */
.photo-frame::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,245,255,0.03) 2px,
        rgba(0,245,255,0.03) 4px
    );
    pointer-events: none;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Rotating rings */
.photo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,245,255,0.3);
    pointer-events: none;
}
.ring1 {
    width: 320px; height: 360px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 8s linear infinite;
    border-style: dashed;
}
.ring2 {
    width: 360px; height: 400px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 12s linear infinite reverse;
    border-color: rgba(123,47,255,0.2);
}
@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Corner dots decoration */
.photo-dots {
    position: absolute; inset: 0; pointer-events: none;
}
.photo-dots::before, .photo-dots::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow);
}
.photo-dots::before { top: 10px; right: 10px; animation: dotBlink 2s ease-in-out infinite; }
.photo-dots::after  { bottom: 10px; left: 10px; animation: dotBlink 2s ease-in-out infinite 1s; }
@keyframes dotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.6); }
}

/* Hero social icons */
.hero-socials {
    display: flex; gap: 12px; margin-top: 24px;
}
.hero-socials .social-btn {
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(0,245,255,0.08);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.1rem;
    transition: var(--transition);
}
.hero-socials .social-btn:hover {
    background: var(--primary); color: var(--bg);
    border-color: var(--primary); box-shadow: var(--glow);
    transform: translateY(-3px);
}

/* Nav logo image */
.nav-logo-img {
    height: 40px; width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0,245,255,0.4));
}
.footer-logo-img {
    height: 36px; width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0,245,255,0.3));
    margin-bottom: 8px;
}

/* ===== ADMIN SETTINGS EXTRAS ===== */
.upload-preview {
    display: flex; align-items: center; gap: 12px;
    margin-top: 10px;
}
.img-preview-lg {
    width: 100px; height: 100px;
    object-fit: cover; border-radius: 10px;
    border: 2px solid var(--border);
}
.logo-preview {
    object-fit: contain; background: var(--bg3); padding: 6px;
}
.upload-current {
    font-size: 0.82rem; color: var(--primary);
}
.upload-hint {
    display: block; margin-top: 6px;
    font-size: 0.82rem; color: var(--text-muted);
}
.cv-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600;
    padding: 6px 14px; border-radius: 6px;
    background: rgba(0,245,255,0.08);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.cv-link:hover { background: var(--primary); color: var(--bg); }
.field-hint {
    display: block; margin-top: 6px;
    font-size: 0.8rem; color: var(--text-muted);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; margin-top: 8px; }

/* Upload actions row */
.upload-actions {
    display: flex; flex-direction: column; gap: 8px;
}
.btn-delete-file {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,0,110,0.1); color: #ff006e;
    border: 1px solid rgba(255,0,110,0.3);
    padding: 6px 14px; border-radius: 6px;
    font-size: 0.82rem; font-weight: 700;
    transition: 0.3s; cursor: pointer;
    width: fit-content;
}
.btn-delete-file:hover {
    background: #ff006e; color: white;
    border-color: #ff006e;
}

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.blog-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.blog-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--glow); }
.blog-card-link { display: block; color: inherit; text-decoration: none; }
.blog-img { height: 200px; overflow: hidden; position: relative; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-placeholder { width: 100%; height: 100%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); }
.blog-category { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--bg); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.blog-info { padding: 24px; }
.blog-meta { display: flex; gap: 16px; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 10px; }
.blog-meta i { color: var(--primary); margin-right: 4px; }
.blog-info h2 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.blog-info p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.read-more { color: var(--primary); font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.blog-card:hover .read-more i { transform: translateX(4px); }
.read-more i { transition: var(--transition); }

/* Blog Post */
.post-meta-bar { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; }
.post-meta-bar i { color: var(--primary); margin-right: 4px; }
.post-section { padding: 60px 0; }
.post-container { max-width: 800px; }
.post-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; border: 1px solid var(--border); }
.post-featured-img img { width: 100%; max-height: 450px; object-fit: cover; }
.post-body { color: var(--text); line-height: 1.9; font-size: 1.05rem; }
.post-body h2, .post-body h3 { font-family: var(--font-head); color: var(--primary); margin: 28px 0 12px; }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 16px; }
.post-body blockquote { border-left: 3px solid var(--primary); padding: 12px 20px; background: var(--bg2); border-radius: 0 8px 8px 0; margin: 20px 0; color: var(--text-muted); }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ===== GALLERY ===== */
.gallery-grid { columns: 3; gap: 16px; }
.gallery-item { break-inside: avoid; margin-bottom: 16px; }
.gallery-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid var(--border); }
.gallery-img-wrap img { width: 100%; display: block; transition: var(--transition); }
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.04); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(5,10,20,0.85); opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-content { padding: 20px; width: 100%; }
.gallery-overlay-content h3 { font-family: var(--font-head); font-size: 0.95rem; color: var(--primary); margin-bottom: 4px; }
.gallery-overlay-content p { color: var(--text-muted); font-size: 0.82rem; }
.gallery-zoom { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; background: var(--primary); color: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,10,20,0.95); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: var(--transition); }
.lightbox-close:hover { color: var(--primary); }
.lightbox-content { max-width: 900px; width: 100%; }
.lightbox-content img { width: 100%; max-height: 75vh; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--border); }
.lightbox-info { padding: 16px 0; }
.lightbox-info h3 { font-family: var(--font-head); color: var(--primary); margin-bottom: 4px; }
.lightbox-info p { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 768px) {
    .gallery-grid { columns: 2; }
    .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .gallery-grid { columns: 1; }
}

/* ===== 404 PAGE ===== */
.error-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; text-align: center;
}
.error-bg { position: absolute; inset: 0; z-index: 0; }
.error-content { position: relative; z-index: 1; padding: 24px; }
.error-code {
    font-family: var(--font-head); font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 900; line-height: 1; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error-title { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 12px; }
.error-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.error-links { display: flex; gap: 24px; justify-content: center; }
.error-links a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.error-links a:hover { color: var(--primary); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 500;
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; box-shadow: var(--glow);
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(0,245,255,0.5); }

/* ===== BLOG SEARCH ===== */
.blog-search-form { margin-bottom: 40px; }
.search-wrap {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 12px; padding: 8px 16px;
    max-width: 560px; transition: var(--transition);
}
.search-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,245,255,0.1); }
.search-wrap i { color: var(--text-muted); }
.search-wrap input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-family: var(--font-body); font-size: 1rem;
}
.search-wrap input::placeholder { color: var(--text-muted); }
.search-clear { color: var(--text-muted); transition: var(--transition); }
.search-clear:hover { color: var(--accent); }
.search-wrap button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg); border: none; padding: 8px 20px;
    border-radius: 8px; cursor: pointer; font-family: var(--font-body);
    font-weight: 700; font-size: 0.85rem; transition: var(--transition);
}
.search-wrap button:hover { opacity: 0.9; }
.search-result-info { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }
.search-result-info strong { color: var(--primary); }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ===== FOOTER UPDATES ===== */
.footer-container { grid-template-columns: 1.5fr 1fr 1.5fr; }
.footer-links h4, .footer-right h4 {
    font-family: var(--font-head); font-size: 0.75rem;
    letter-spacing: 2px; color: var(--primary); margin-bottom: 16px;
}
.footer-location { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.footer-location i { color: var(--primary); margin-right: 4px; }
.footer-right { display: flex; flex-direction: column; gap: 16px; }
.footer-email {
    color: var(--text-muted); font-size: 0.85rem;
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.footer-email:hover { color: var(--primary); }
.footer-email i { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-credit { color: var(--text-muted); font-size: 0.82rem; }

/* Alert error */
.alert-error { background: rgba(255,0,110,0.08); border: 1px solid rgba(255,0,110,0.3); color: var(--accent); }

@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .back-to-top { bottom: 20px; right: 20px; }
}
@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== READING PROGRESS ===== */
.reading-progress-wrap {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    height: 3px; background: rgba(0,245,255,0.1);
}
.reading-progress-bar {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(0,245,255,0.6);
}
