* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0A1628;
    color: #E8EEF5;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
}

:root {
    --gold: #D4A843;
    --orange: #C87010;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    z-index: 999;
}

/* NAV */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2rem;
    background: rgba(10, 22, 40, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.logo {
    color: var(--gold);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}

.nav-links {
    display: flex;
    gap: 1.7rem;
}

.nav-links a {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d7dfeb;
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

.nav-links a:focus-visible {
    outline: 1px solid rgba(212, 168, 67, 0.7);
    outline-offset: 2px;
}

/* Hamburger */
.menu-btn {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #E8EEF5;
    padding: 0.2rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 68px;
    right: 1rem;
    width: min(260px, calc(100% - 2rem));
    background: rgba(10, 22, 40, 0.98);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.mobile-menu a {
    text-decoration: none;
    color: #d7dfeb;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.76rem;
    padding: 0.65rem 0.55rem;
    border-radius: 8px;
    transition: 0.25s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--gold);
    background: rgba(212, 168, 67, 0.12);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #0A1628, #1A3A6A, #C87010);
}

.hero h1 {
    font-size: 3.2rem;
}

.hero span {
    background: linear-gradient(45deg, var(--gold), #f5d27a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin: 1rem 0;
    color: #ccc;
}

.btn {
    border: 1px solid var(--gold);
    padding: 0.7rem 1.8rem;
    color: var(--gold);
    display: inline-block;
    transition: 0.3s;
}

.btns {
    border: 1px solid var(--gold);
    padding: 0.7rem 1.8rem;
    color: var(--gold);
    display: inline-block;
    transition: 0.3s;
    cursor: not-allowed;
}

.btn:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* ABOUT */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.photo {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.tags span {
    border: 1px solid rgba(212, 168, 67, 0.3);
    padding: 6px 12px;
    margin: 5px;
    display: inline-block;
    font-size: 0.7rem;
    transition: 0.3s;
}

.tags span:hover {
    background: var(--gold);
    color: #000;
}

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

.card {
    position: relative;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: 0.3s;
}

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

/* Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

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

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

.skill-card {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: 0.3s;
}

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

/* CONTACT */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

input,
textarea {
    width: 100%;
    padding: 0.6rem;
    background: #111;
    border: 1px solid #333;
    color: white;
    margin: 6px 0;
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    outline: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to top */
.top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: none;
    cursor: pointer;
}

/* Responsive */
@media(max-width:992px) {
    nav {
        padding: 0.85rem 1.2rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media(max-width:768px) {

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

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

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    nav {
        padding: 0.8rem 1rem;
    }

    .mobile-menu {
        top: 62px;
        right: 0.5rem;
        width: calc(100% - 1rem);
    }
}

.info {
    color: #e4a61e;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.25s ease, border-color 0.25s ease;
}

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