/* ═══════════════════════════════════════════════
   CSS Variables
═══════════════════════════════════════════════ */
:root {
    --neon-green: #517aec;
    --dark-bg: #0a0a0a;
    --dark-secondary: #111112;
    --dark-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-glow: rgba(133, 163, 247, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@font-face {
    font-family: 'Dream Avenue';
    src:url('files/Dream-Avenue.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Dream Avenue', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--neon-green);
    color: var(--dark-bg);
}

/* ═══════════════════════════════════════════════
   Animated Background
═══════════════════════════════════════════════ */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

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

.orb-1 { width: 500px; height: 500px; background: var(--neon-green); top: -200px; left: -200px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--neon-green); bottom: -150px; right: -150px; animation-delay: 7s; }
.orb-3 { width: 350px; height: 350px; background: var(--neon-green); top: 50%; left: 50%; animation-delay: 14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(60px, -60px) scale(1.05); }
    66%       { transform: translate(-60px, 60px) scale(0.95); }
}

/* ═══════════════════════════════════════════════
   Navigation
═══════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(81, 122, 236, 0.1);
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    padding: 0 1.5rem;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-text   { color: var(--text-primary); }
.logo-accent { color: var(--neon-green); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--neon-green); }

.nav-link:hover::before,
.nav-link.active::before { width: 100%; }

/* Hamburger */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--neon-green);
    transition: var(--transition);
    display: block;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   Container & Sections
═══════════════════════════════════════════════ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
    display: block;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
    flex-wrap: wrap;
}

.section-number {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--neon-green);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: clamp(-1px, -0.3vw, -2px);
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════
   Hero Section
═══════════════════════════════════════════════ */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: clamp(-1px, -0.3vw, -3px);
}

.title-line { display: block; animation: slideUp 0.8s ease backwards; }
.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.title-line.highlight {
    color: var(--neon-green);
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-primary {
    background: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--accent-glow); }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.btn-secondary:hover { border-color: var(--neon-green); color: var(--neon-green); transform: translateY(-3px); }

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    border-color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: clamp(200px, 35vw, 450px);
    height: clamp(200px, 35vw, 450px);
}

.image-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.image-container img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--neon-green);
    box-shadow: 0 0 60px var(--accent-glow);
}

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

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--neon-green), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%   { opacity: 0; transform: translateY(-15px); }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(15px); }
}

/* ═══════════════════════════════════════════════
   About Section
═══════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.about-text p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.personal-info-card {
    background: var(--dark-card);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 2rem;
}

.personal-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--neon-green);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.info-item  { display: flex; flex-direction: column; gap: 0.3rem; }

.info-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.info-value.highlight { color: var(--neon-green); }

/* Skills */
.skills-container h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--neon-green);
}

.skill-categories { display: flex; flex-direction: column; gap: 1.5rem; }

.skill-category {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(81,122,236,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.skill-category-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category-label i { color: var(--neon-green); }

.skill-tags  { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(81,122,236,0.08);
    border: 1px solid rgba(81,122,236,0.2);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(81,122,236,0.2);
    border-color: var(--neon-green);
    color: var(--neon-green);
    transform: translateY(-2px);
}

.skill-tag i { color: var(--neon-green); font-size: 0.85rem; }

/* ═══════════════════════════════════════════════
   Timeline (Experience) — always left-aligned
═══════════════════════════════════════════════ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(81,122,236,0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 60px;
    /* override any old alternating layout */
    justify-content: unset !important;
    padding-right: 0 !important;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--neon-green);
    border: 3px solid var(--dark-bg);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--accent-glow);
    z-index: 2;
    /* reset old centering */
    transform: none !important;
}

.timeline-content {
    background: var(--dark-card);
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    /* reset old margins */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.timeline-content:hover {
    border-color: var(--neon-green);
    transform: translateX(6px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.timeline-date {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(81,122,236,0.1);
    border-radius: 20px;
    color: var(--neon-green);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.timeline-content h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 0.4rem; }
.timeline-content h4 { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.8rem; }
.timeline-content p  { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }

/* ═══════════════════════════════════════════════
   Services Section
═══════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    padding: clamp(1.8rem, 3vw, 3rem);
    background: var(--dark-card);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.service-number {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: rgba(81,122,236,0.08);
    line-height: 1;
}

.service-card .service-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(81,122,236,0.1);
    border-radius: 14px;
    color: var(--neon-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); margin-bottom: 0.8rem; }
.service-card p  { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; }

/* ═══════════════════════════════════════════════
   Portfolio Section
═══════════════════════════════════════════════ */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.65rem 1.4rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--neon-green);
    color: var(--dark-bg);
    border-color: var(--neon-green);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--dark-card);
}

.portfolio-image {
    position: relative;
    width: 100%;
    padding-bottom: 70%;
    overflow: hidden;
}

.portfolio-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-image img { transform: scale(1.08); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

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

/* Touch devices — always show overlay */
@media (hover: none) {
    .portfolio-overlay { opacity: 1; }
}

.portfolio-overlay h3 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 0.3rem;
    color: var(--neon-green);
}

.portfolio-overlay p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.88rem; }

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--neon-green);
    color: var(--dark-bg);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    width: fit-content;
    cursor: pointer;
}

.portfolio-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }

/* ═══════════════════════════════════════════════
   Contact Section
═══════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-info h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0.8rem;
    color: var(--neon-green);
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item { display: flex; align-items: center; gap: 1.2rem; }

.contact-item .contact-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(81,122,236,0.1);
    border-radius: 14px;
    color: var(--neon-green);
    font-size: 1.3rem;
}

.contact-item h4 {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-item p { font-size: 1rem; color: var(--text-primary); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px var(--accent-glow);
}

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

/* ═══════════════════════════════════════════════
   Footer
═══════════════════════════════════════════════ */
.footer {
    background: var(--dark-secondary);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-brand p { color: var(--text-secondary); margin-top: 0.8rem; font-size: 0.9rem; }

.footer-social { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.footer-social a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-social a:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    border-color: var(--neon-green);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p { color: var(--text-secondary); font-size: 0.85rem; }

/* ═══════════════════════════════════════════════
   Modals
═══════════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--dark-card);
    padding: clamp(1.8rem, 4vw, 3rem);
    border-radius: 20px;
    border: 1px solid var(--neon-green);
    text-align: center;
    width: 100%;
    max-width: 460px;
    animation: modalIn 0.4s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon { font-size: 3.5rem; color: var(--neon-green); margin-bottom: 1.2rem; }
.modal-content h3 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.modal-content p  { color: var(--text-secondary); margin-bottom: 1.8rem; font-size: 0.95rem; }

/* ═══════════════════════════════════════════════
   Portfolio Lightbox
═══════════════════════════════════════════════ */
.portfolio-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 1rem);
}

.portfolio-lightbox.active { display: flex; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(6px);
}

.lightbox-window {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    height: clamp(70vh, 85vh, 92vh);
    background: #111112;
    border-radius: clamp(12px, 2vw, 20px);
    border: 1px solid rgba(81,122,236,0.25);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lightboxIn 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    flex-shrink: 0;
    gap: 0.8rem;
}

.lightbox-title-group { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.lightbox-title {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-desc { font-size: 0.78rem; color: var(--text-secondary); margin: 0; }

.lightbox-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.lightbox-open-btn,
.lightbox-close-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.lightbox-open-btn:hover { background: rgba(81,122,236,0.15); border-color: var(--neon-green); color: var(--neon-green); }
.lightbox-close-btn:hover { background: rgba(231,76,60,0.15); border-color: #e74c3c; color: #e74c3c; }

.lightbox-body  { flex: 1; overflow: hidden; }
.lightbox-iframe { width: 100%; height: 100%; border: none; background: #fff; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet ≤ 992px
═══════════════════════════════════════════════ */
@media (max-width: 992px) {
    .mobile-menu-btn { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100dvh - var(--nav-height));
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: left 0.4s ease;
    }

    .nav-links.active { left: 0; }
    .nav-link { font-size: 1.2rem; }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-grid .hero-image { order: -1; justify-content: center; }

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

    .hero-description { max-width: 100%; text-align: center; }
    .hero-cta         { justify-content: center; }
    .social-links     { justify-content: center; }

    /* About */
    .about-grid { grid-template-columns: 1fr; }

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

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 640px
═══════════════════════════════════════════════ */
@media (max-width: 640px) {
    .section { min-height: auto; padding: 90px 0 60px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 2rem; }

    .hero-section { min-height: 100dvh; }
    .scroll-indicator { display: none; }

    .hero-cta { flex-direction: column; width: 100%; }
    .btn      { width: 100%; justify-content: center; }

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

    .portfolio-filters { gap: 0.4rem; }
    .filter-btn { font-size: 0.75rem; padding: 0.55rem 1rem; }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-social  { justify-content: center; }

    .modal { padding: 0.8rem; }

    /* Lightbox goes full-screen */
    .portfolio-lightbox { padding: 0; }
    .lightbox-window { height: 100dvh; border-radius: 0; border: none; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Small phones ≤ 400px
═══════════════════════════════════════════════ */
@media (max-width: 400px) {
    .nav-container    { padding: 0 1rem; }
    .container        { padding: 0 0.9rem; }
    .social-links     { gap: 0.7rem; }
    .skill-tag        { font-size: 0.78rem; padding: 0.35rem 0.75rem; }
    .personal-info-card { padding: 1.2rem; }
    .timeline-content { padding: 1rem; }
}
