:root {
    --navy:       #0d1b2a;
    --navy-mid:   #1b2d42;
    --gold:       #c9a84c;
    --gold-light: #e8c97a;
    --cream:      #f5f0e8;
    --text-dark:  #1a1a2e;
    --text-muted: #6c757d;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    font-weight: 300;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
    background-color: var(--navy);
    padding: 1.1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid var(--gold);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold) !important;
    letter-spacing: 0.04em;
}

.nav-link {
    color: #cdd5e0 !important;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-left: 1.2rem;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--gold) !important; }

/* ── HERO ────────────────────────────────────────── */
#hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #243b55 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeUp 0.7s ease both;
}

.hero-name {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    animation: fadeUp 0.7s 0.15s ease both;
}

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

.hero-title {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #a8b8cc;
    font-weight: 300;
    margin-top: 1rem;
    letter-spacing: 0.06em;
    animation: fadeUp 0.7s 0.3s ease both;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1.8rem 0;
    animation: fadeUp 0.7s 0.45s ease both;
}

.hero-tagline {
    color: #c0ccd8;
    font-size: 1rem;
    max-width: 480px;
    line-height: 1.75;
    animation: fadeUp 0.7s 0.55s ease both;
}

.hero-cta {
    margin-top: 2.2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.7s ease both;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 0;
    transition: background 0.2s, transform 0.2s;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    padding: 0.75rem 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 0;
    transition: all 0.2s;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

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

/* ── SECTION SHARED ──────────────────────────────── */
section { padding: 6rem 0; }

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-rule {
    width: 50px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 3rem;
}

/* ── ABOUT ───────────────────────────────────────── */
#about { background: #fff; }

.about-text {
    font-family:'JetBrains Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #3a3a4a;
}

.about-stat {
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.about-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.terminal-box {
    position: relative;
    border: 1px solid var(--navy);
    border-radius: 4px;
    padding: 2rem;
    margin-top: 1rem;
}

.terminal-label {
    position: absolute;
    top: -0.6rem;
    left: 1rem;
    background: #fff;
    padding: 0 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ── SKILLS ──────────────────────────────────────── */
#skills { background: var(--cream); }

.skill-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--navy);
    color: var(--navy);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0.35rem;
    transition: all 0.2s;
}

.skill-badge:hover {
    background: var(--navy);
    color: var(--gold);
}

.skill-category-title {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ── PROJECTS ────────────────────────────────────── */
#projects { background: #fff; }

.project-card {
    border: none;
    border-radius: 0;
    border-top: 3px solid var(--gold);
    box-shadow: 0 4px 24px rgba(13,27,42,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    background: #fff;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(13,27,42,0.14);
}

.project-card .card-body { padding: 1.8rem; }

.project-card .card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.project-card .card-text {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tech-tag {
    display: inline-block;
    background: var(--cream);
    color: var(--navy-mid);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    margin: 0.2rem 0.2rem 0.2rem 0;
}

.project-links { margin-top: 1.2rem; }

.project-links a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    margin-right: 1.2rem;
    transition: color 0.2s;
}

.project-links a:hover { color: var(--gold); }

.project-links i { margin-right: 0.3rem; }

/* ── EXPERIENCE ──────────────────────────────────── */
#experience { background: var(--cream); }

.timeline { position: relative; padding-left: 2rem; }

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

.timeline-duration {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin: 0.4rem 0 0.75rem;
}

.timeline-description {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.75;
}

/* ── CONTACT ─────────────────────────────────────── */
#contact {
    background: var(--navy);
    color: #fff;
}

#contact .section-title { color: #fff; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #a8b8cc;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.2s;
}

.contact-link:hover { color: var(--gold); }

.contact-link .bi-linkedin {
    color: #ffffff;
    background: #0077b5;
    padding: 5px;
    border-radius: 4px;
}

.contact-link .bi-github {
    color: #ffffff;
    background: #333333;
    padding: 5px;
    border-radius: 50%;
}

.contact-link .bi-envelope-fill {
    color: #ffffff;
    background: #EA4335;
    padding: 5px;
    border-radius: 4px;
}

.contact-field {
    margin-bottom: 2rem;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #a8b8cc;
    margin-bottom: 0.75rem;
}

.contact-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.contact-input:focus {
    border-bottom: 1px solid var(--gold);
}

.contact-input::placeholder {
    color: rgba(255,255,255,0.25);
}

.contact-textarea {
    height: 120px;
    resize: none;
}

.connect-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 2rem;
}

.connect-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #a8b8cc;
    margin-bottom: 1.5rem;
}

.connect-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.connect-label {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.connect-value {
    color: #a8b8cc;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.connect-value:hover {
    color: var(--gold);
}

.connect-value .bi-envelope-fill { color: #EA4335; }
.connect-value .bi-github { color: #ffffff; background: #333; padding: 2px; border-radius: 50%; }
.connect-value .bi-linkedin { color: #ffffff; background: #0077b5; padding: 2px; border-radius: 3px; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
    background: #080f18;
    color: #4a5568;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card {
    border: none;
    border-radius: 0;
    border-top: 3px solid var(--navy);
    box-shadow: 0 4px 24px rgba(13,27,42,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    min-height: 500px;
    min-width: 450px;
    background: #fff;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(13,27,42,0.14);
}

.project-number {
    font-family: 'Bebas Neue', serif;
    font-size: 2.00rem;
    font-weight: 1000;
    color: var(--navy-mid);
    letter-spacing: 0.15em;
    padding: 1rem 1.5rem 0;
}

.project-card .card-title {
    font-size: 2.1rem !important;
    font-weight: 700 !important;
    color: var(--navy);
}

* { cursor: url('/images/cursor.svg') 2 2, auto !important; }


#cursor-ring {
    width: 35px;
    height: 35px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.12s ease-out;
}
.photo-frame {
    position: relative;
    width: 100%;
}

.photo-frame-border {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 100%;
    height: 100%;
    border: 16px solid var(--gold);
    z-index: 0;
}

.photo-frame img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
}