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

:root {
    --bg: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #e4e4e7;
    --text-muted: #71717a;
    --text-dim: #52525b;
    --white: #fafafa;
    --accent-1: #8b5cf6;
    --accent-2: #6366f1;
    --accent-3: #a78bfa;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --glow: 0 0 80px rgba(139, 92, 246, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--gradient) !important;
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500 !important;
    transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.9; }

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

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

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

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 3px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    margin-top: 3rem;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.08);
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

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

/* === Sections === */
.section {
    padding: 5rem 0;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* === Glass Cards === */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all 0.3s ease;
}

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

/* === About Grid === */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-card { text-align: center; }

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Timeline / Experience === */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
}

.timeline-item { position: relative; }

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.75rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient);
    border: 3px solid var(--bg);
    z-index: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.timeline-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.timeline-company {
    color: var(--accent-3);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--white);
    font-weight: 500;
    white-space: nowrap;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.timeline-details {
    list-style: none;
    margin-bottom: 1rem;
}

.timeline-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-1);
}

.timeline-tags, .mini-tag { display: inline; }

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mini-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--accent-3);
}

/* === Achievements === */
.achievements {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    border-left: 2px solid var(--accent-1);
    background: rgba(139, 92, 246, 0.04);
    border-radius: 0 8px 8px 0;
}

.achievements h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.achievements .timeline-details li strong {
    color: var(--white);
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.15rem;
}

.gallery-overlay p {
    font-size: 0.8rem;
    color: var(--accent-3);
}

.gallery-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    background: rgba(139, 92, 246, 0.4);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.gallery-link:hover {
    background: rgba(139, 92, 246, 0.7);
}

.gallery-link.upcoming {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: default;
}

/* === Skills === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

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

.tag {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}

/* === Certifications === */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cert-card {
    text-align: center;
    padding: 2rem 1.25rem;
}

.cert-badge {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cert-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

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

/* === Education & Languages === */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.edu-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.lang-card { display: flex; flex-direction: column; gap: 1rem; }

.lang-row {
    display: grid;
    grid-template-columns: 90px 1fr 70px;
    align-items: center;
    gap: 1rem;
}

.lang-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.lang-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.lang-bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
}

.lang-level {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

/* === Courses === */
.courses-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.courses-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-tag {
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--accent-3);
    transition: all 0.2s;
}

.course-tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* === Awards === */
.awards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.award-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.award-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.award-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.award-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* === Education extras === */
.edu-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.edu-field {
    font-size: 0.9rem;
    color: var(--accent-3);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.left-align { text-align: left; }
.left-align h2 { margin-bottom: 1rem; }

.placeholder-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 6px;
    border: 1px dashed rgba(139, 92, 246, 0.2);
}

/* === Contact === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

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

/* === Footer === */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--white);
}

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

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }

    .hero { padding: 7rem 1.5rem 3rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }

    .section-container { padding: 0 1.5rem; }
    .section { padding: 3rem 0; }

    .timeline { padding-left: 1.5rem; }
    .timeline-header { flex-direction: column; }

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

    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-card { aspect-ratio: 16 / 9; }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* === Print === */
@media print {
    body { background: white; color: #1a1a1a; }
    .navbar, .hero-glow, .hero-badge, .hero-actions { display: none; }
    .glass-card { background: white; border: 1px solid #ddd; box-shadow: none; }
    .gradient-text { -webkit-text-fill-color: #6366f1; }
    .hero { min-height: auto; padding: 2rem; }
    .section { padding: 1.5rem 0; }
    .tag:hover { background: transparent; color: inherit; }
}
