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

:root {
    --bg: #0e0e0e;
    --bg-2: #161616;
    --bg-3: #1e1e1e;
    --surface: #242424;
    --border: #2e2e2e;
    --gold: #f0a500;
    --gold-dim: #c8890a;
    --text: #f0ece4;
    --text-muted: #888;
    --text-dim: #555;
    --white: #ffffff;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background var(--transition), padding var(--transition);
}

.navbar.scrolled {
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.logo-dot {
    color: var(--gold);
}

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

.nav-links li a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color var(--transition);
    letter-spacing: 0.02em;
}

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

.nav-cv {
    background: var(--gold) !important;
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 500 !important;
    transition: background var(--transition) !important;
}

.nav-cv:hover {
    background: var(--white) !important;
}

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

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===========================
   HERO
=========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 32px 80px;
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;
}

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
}

.hero-content {
    flex: 1;
    max-width: 560px;
    animation: fadeUp 0.8s ease both;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.tag-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-name span {
    color: var(--gold);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    min-height: 1.6em;
}

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

.hero-image {
    flex-shrink: 0;
    animation: fadeUp 0.8s 0.2s ease both;
}

.image-frame {
    width: 380px;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,14,14,0.4) 0%, transparent 50%);
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--text-dim);
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.btn-primary.full-width {
    width: 100%;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text);
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 400;
    border: 1px solid var(--border);
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===========================
   SECTION COMMON
=========================== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 32px;
    display: flex;
    gap: 80px;
    align-items: center;
}

.section-container.col {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.section-label.center { text-align: center; width: 100%; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--white);
    margin-bottom: 24px;
}

.section-title.center { text-align: center; width: 100%; }

/* ===========================
   ABOUT
=========================== */
.about {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-image {
    flex-shrink: 0;
    position: relative;
}

.profile-frame {
    width: 320px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gold);
    color: #000;
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    font-family: var(--font-display);
}

.badge-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
}

.about-content {
    flex: 1;
}

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

.about-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.skill-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color var(--transition), transform var(--transition);
}

.skill-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.skill-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.skill-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===========================
   PROJECTS
=========================== */
.projects {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.project-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--transition), transform var(--transition);
}

.project-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.project-card.featured {
    border-color: var(--gold-dim);
    background: linear-gradient(135deg, var(--bg-3), #1a1500);
}

.project-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold);
    background: rgba(240, 165, 0, 0.1);
    border: 1px solid rgba(240, 165, 0, 0.2);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    width: fit-content;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

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

.project-tech span {
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
}

.project-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    transition: color var(--transition);
    width: fit-content;
}

.project-link:hover {
    color: var(--white);
}

/* ===========================
   CONTACT
=========================== */
.contact {
    background: var(--bg);
}

.contact-info {
    flex: 1;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 36px;
    max-width: 380px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.contact-item:hover {
    color: var(--text);
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), transform var(--transition);
    overflow: hidden;
    padding: 8px;
}

.social-btn:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.social-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Contact Form */
.contact-form {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    transition: border-color var(--transition);
    outline: none;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

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

/* ===========================
   FOOTER
=========================== */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 32px;
}

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

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

.footer-quote {
    font-style: italic;
    color: var(--gold-dim) !important;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 70px 24px 40px;
        gap: 24px;
        min-height: auto;
        justify-content: center;
        margin-top: -60px;
    }
    
    .hero-sub {
    min-height: 2.5em;
    }

    .hero-bg {
        display: none;
    }

    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-tag { margin: 0 auto 24px; }
    .hero-scroll { display: none; }

    .image-frame {
        width: 240px;
        height: 280px;
    }

    .section-container {
        flex-direction: column;
        padding: 70px 24px;
        gap: 50px;
    }

    .about-image { width: 100%; display: flex; justify-content: center; }
    .profile-frame { width: 260px; height: 320px; }
    .about-badge { right: 0; }

    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }

    .about-stats { gap: 20px; }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14,14,14,0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px 32px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }
    .hamburger { display: flex; }

    .navbar { position: relative; }
    .navbar.scrolled { position: fixed; }

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

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .contact-form { padding: 24px; }
}
