:root {
    --navy-dark: #020c1b;
    --navy: #0a192f;
    --navy-light: #112240;
    --navy-lightest: #233554;
    --slate: #8892b0;
    --slate-light: #a8b2d1;
    --slate-lightest: #ccd6f6;
    --white: #e6f1ff;
    --gold: #d4af37;
    --gold-bright: #ffd700;
    --gold-tint: rgba(212, 175, 55, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --nav-bg: rgba(10, 25, 47, 0.95);
}

[data-theme="light"] {
    --navy-dark: #7baedb;
    --navy: rgba(189, 226, 247, 0.986);
    --navy-light: #ffffff;
   
    --slate: #5f6a8e;
    --slate-light: #404b6e;
    --slate-lightest: #112240;
    --white: #0a192f;
    --nav-bg: rgba(203, 228, 242, 0.986);
    --gold: #4b1907;
    --gold-bright: #ffd700;
    --gold-tint: rgba(212, 175, 55, 0.1);
    /* Dark text for light mode */
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--navy);
    color: var(--slate);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 10px 0;
    font-weight: 700;
    color: var(--slate-lightest);
    font-family: var(--font-heading);
    line-height: 1.1;
}

a {
    display: inline-block;
    text-decoration: none;
    text-decoration-skip-ink: auto;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.text-gold {
    color: var(--gold);
}

.btn {
    color: var(--gold);
    background-color: transparent;
    border: 1px solid var(--gold);
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    font-size: 14px;
    font-family: var(--font-heading);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 50px;
    display: inline-block;
}

.btn:hover {
    background-color: var(--gold-tint);
    outline: none;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 11;
    padding: 20px 50px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 30px;
}



.nav-links a {
    color: var(--slate-lightest);
    font-size: 13px;
    font-family: var(--font-heading);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::before {
    /* content: "0" counter(item) "."; removed */
    margin-right: 5px;
    color: var(--gold);
    font-size: 11px;
    text-align: right;
    display: none;
    /* Hide the numbering */
}

/* Dark Mode Toggle */
.theme-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    margin-left: 20px;
    margin-right: 20px;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75vw;
        background-color: var(--navy-light);
        padding: 50px;
        align-items: flex-start;
        justify-content: center;
        box-shadow: -10px 0px 30px -15px rgba(2, 12, 27, 0.7);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        z-index: 12;
    }

    nav {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: clamp(30px, 8vw, 60px);
    }

    .hero-subtitle {
        font-size: clamp(30px, 8vw, 60px);
    }
}

/* Portfolio Section */
.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--slate);
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: var(--navy-light);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: var(--navy-lightest);
    /* Placeholder color */
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 25, 47, 0.2);
    transition: var(--transition);
}

.project-card:hover .project-image::before {
    background-color: transparent;
}

.project-content {
    padding: 25px;
}

.project-title {
    color: var(--slate-lightest);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--gold);
}

/* Testimonials Carousel */
.testimonial-container {
    background-color: var(--navy-light);
    padding: 40px;
    border-radius: 4px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slide {
    display: none;
    animation: fade 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--slate-lightest);
}

.testimonial-author {
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--slate);
    color: var(--slate);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: var(--navy-light);
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--slate-lightest);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--navy-lightest);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--navy-dark);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    font: bold 16px sans-serif;
    padding: 55px 50px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left,
.footer-center,
.footer-right {
    display: inline-block;
    vertical-align: top;
}

/* Footer Left */
.footer-left {
    width: 40%;
}

.footer-left h3 {
    color: var(--slate-lightest);
    font: normal 36px 'Outfit', cursive;
    margin: 0;
}

.footer-left h3 span {
    color: var(--gold);
}

.footer-links {
    color: var(--slate-lightest);
    margin: 20px 0 12px;
    padding: 0;
}

.footer-links a {
    display: inline-block;
    line-height: 1.8;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
    margin: 0 5px;
}

.footer-company-name {
    color: var(--slate);
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}

/* Footer Center */
.footer-center {
    width: 35%;
}

.footer-center div {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-center i {
    background-color: var(--navy-light);
    color: var(--slate-lightest);
    font-size: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    margin-right: 15px;
}

.footer-center p {
    display: inline-block;
    color: var(--slate-lightest);
    font-weight: 400;
    margin: 0;
}

.footer-center p span {
    display: block;
    font-weight: normal;
    font-size: 14px;
    line-height: 2;
}

.footer-center p a {
    color: var(--gold);
    text-decoration: none;
    display: inline;
}

/* Footer Right */
.footer-right {
    width: 20%;
}

.footer-company-about {
    line-height: 20px;
    color: var(--slate);
    font-size: 13px;
    font-weight: normal;
    margin: 0;
}

.footer-company-about span {
    display: block;
    color: var(--slate-lightest);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-icons {
    margin-top: 25px;
}

.footer-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    cursor: pointer;
    background-color: var(--navy-light);
    border-radius: 2px;
    font-size: 20px;
    color: var(--slate-lightest);
    text-align: center;
    line-height: 35px;
    margin-right: 3px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.footer-icons a:hover {
    color: var(--gold);
    transform: translateY(-5px);
}

@media (max-width: 880px) {

    .footer-left,
    .footer-center,
    .footer-right {
        display: block;
        width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }

    .footer-center i {
        margin-left: 0;
    }

    .footer-center div {
        justify-content: center;
    }
}

/* =========================================
   Refactored Styles (Replacing Inline)
   ========================================= */

/* Hero Section */
.hero-container {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('../Images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-intro {
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--slate-lightest);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--slate);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-description {
    max-width: 500px;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-btn {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image-wrapper {
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 300px;
        margin: 0 auto;
    }
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-number {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 5px;
    color: var(--slate);
}

.about-text {
    margin-bottom: 20px;
}

.about-image-wrapper {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.about-image-wrapper:hover .about-image {
    filter: grayscale(0%);
}

.about-image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 4px;
    z-index: 0;
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image-border {
    top: 15px;
    left: 15px;
}


/* Experience Section */
.numbered-heading {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0 40px;
    width: 100%;
    font-size: clamp(26px, 5vw, 32px);
    white-space: nowrap;
}

.jobs-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* max-width: 800px; */
    margin: 0 auto;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.job-title {
    color: var(--slate-lightest);
    font-size: 1.3rem;
}

.job-year {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.job-company {
    color: var(--gold);
    margin-bottom: 10px;
}

.job-list {
    list-style-type: disc;
    margin-left: 20px;
    color: var(--slate);
}

/* Jaycee & Timeline */
.page-title {
    font-size: clamp(40px, 8vw, 60px);
    color: var(--slate-lightest);
    margin-top: 50px;
}

.page-subtitle {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.timeline-list {
    border-left: 2px solid var(--navy-lightest);
    padding-left: 20px;
    margin-left: 10px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-link {
    display: block;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    /* 20px padding + 2px border + 4px to center (10px width / 2) ? No. 
                   Left border is at 0 local. Padding left is 20. 
                   We need to go back 20px + center over border. 
                   Border width is 2px. Marker is 10px. 
                   Center of marker at -1px (center of border).
                   Left of marker = -1 - 5 = -6px relative to border?
                   Actually simpler: margin-left 10px on UL shifts it.
                   Let's stick to the inline value which worked: -26px. 
                   */
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slate);
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--gold);
}

.timeline-marker.active {
    background: var(--gold);
}

.timeline-year {
    color: var(--slate-lightest);
    transition: var(--transition);
}

.timeline-link:hover .timeline-year {
    color: var(--gold);
}

.timeline-role {
    color: var(--gold);
}

.gallery-wrapper {
    height: 300px;
    background-color: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-container {
    padding: 0 !important;
    background: transparent !important;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}