/* ===== CSS Reset & Base ===== */
:root {
    /* Color Palette (Diplomat & Engineer) */
    --bg-dark: #0A192F;
    --bg-card: #112240;
    /* --bg-light: #E6F1FF; */
    /* --text-main: #E6F1FF; */
    --bg-light: #FAF9F6;
    --text-main: #FAF9F6;
    --bg-light-profile: #E2E2E2;
    --text-inverse: #0A192F;
    /* --accent: #64FFDA; */
    --accent: #F08B7D;
    --white: #FFFFFF;

    --bg-dark-alt: #112240;
    /* Lighter navy for alternating sections */

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky nav */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
    font-weight: 700;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

p {
    margin-bottom: 1rem;
}

/* ===== Container ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.9);
    /* Primary BG with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    height: 70px;
    display: flex;
    align-items: center;
}

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

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* ===== Hero Section (The Split) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    padding-top: 70px;
    /* Offset for fixed nav */
}

.hero-content {
    display: flex;
    width: 100%;
    margin: 0;
    /* Full width for the split effect */
    max-width: none;
}

/* Left Side (Visual/Profile) - Light Background */
.hero-visual {
    flex: 1;
    background-color: var(--bg-light-profile);
    /* Slightly darker to contrast with white card */
    display: flex;
    justify-content: flex-end;
    /* Align card to the right side of this half */
    align-items: center;
    padding: 60px;
    color: var(--text-inverse);
    /* Navy text on light bg */
    position: relative;
    z-index: 10;
}

/* Right Side (Text/Intro) - Dark Background */
.hero-text {
    flex: 1;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 60px 60px 80px;
    /* Extra padding left to separate from visual */
    color: var(--text-main);
    /* Light text on dark bg */
}

/* Profile Card Styling within Hero Visual */
.profile-card {
    /* Ensure content inside uses inverse text color */
    color: var(--text-inverse);
    text-align: center;
    max-width: 380px;
    width: 100%;
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    margin-right: -100px;
    /* Overlap the right section */
    position: relative;
    z-index: 20;
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-photo img {
    display: block;
}

.card-name {
    color: var(--text-inverse);
    font-size: 32px;
    margin-bottom: 8px;
}

.card-title {
    color: var(--text-inverse);
    opacity: 0.8;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.card-divider {
    height: 3px;
    width: 40px;
    background-color: var(--text-inverse);
    margin: 0 auto 24px;
    opacity: 0.3;
}

.card-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    /* More space above icons */
    padding-top: 16px;
    /* Add padding */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle divider line */
}

.social-icon {
    color: var(--text-inverse);
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent);
    /* Teal accent on hover */
    opacity: 1;
    transform: translateY(-2px);
}

/* Hero Text Styling */
.intro-hello {
    font-size: clamp(48px, 5vw, 80px);
    /* Responsive font size */
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.intro-subtitle {
    color: var(--accent);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 32px;
}

.intro-bio {
    max-width: 500px;
    margin-bottom: 40px;
    font-size: 18px;
    color: var(--text-main);
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 32px;
    /* Increase space below buttons */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border-radius: 12px;
    /* Match profile card */
}

/* Primary Button: Accent Border & Text */
.btn-primary,
.hero-cta .btn-primary {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    /* border-radius: 4px;  Inherited from .btn */
}

.btn-primary:hover,
.hero-cta .btn-primary:hover {
    /* background: rgba(100, 255, 218, 0.1); */
    /* Subtle teal tint */
    background: rgba(240, 139, 125, 0.1);
    /* Subtle coral tint matching #F08B7D */
    transform: translateY(-2px);
}

/* Secondary Button: No Border, Underline on Hover */
/* Secondary Button: White Border & Text */
.btn-secondary,
.hero-cta .btn-secondary {
    padding: 12px 28px;
    /* Match primary padding */
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover,
.hero-cta .btn-secondary:hover {
    background: rgba(250, 249, 246, 0.1);
    /* Subtle white/off-white tint */
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ===== Sections (Content) ===== */
.section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    /* Ensure dark bg */
}

.section-alt {
    background-color: var(--bg-dark-alt);
}

.section-title {
    font-size: 32px;
    margin-bottom: 48px;
    color: var(--white);
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background: #233554;
    /* Subtle line */
    margin-left: 20px;
}

/* ===== Cards (Projects & Career) ===== */
.project,
.career-item {
    background-color: var(--bg-card);
    /* Light Navy */
    padding: 32px;
    border-radius: 6px;
    /* Slightly rounded */
    margin-bottom: 24px;
    transition: var(--transition);
    border: none;
    /* No borders requested */
}

/* .project:hover,
.career-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
} */

/* Ensure cards stand out on alternate backgrounds */
.section-alt .project,
.section-alt .career-item {
    background-color: #172a45;
    /* Slightly lighter than the section bg to maintain contrast */
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.project-title,
.career-title {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 12px;
}

/* Engineering/Mono Font for tags/dates */
.project-tag,
.career-years {
    font-family: 'Courier New', Courier, monospace;
    /* Fallback stack */
    color: var(--accent);
    font-size: 16px;
    display: inline-block;
    margin-bottom: 16px;
}

.project-description p,
.career-item p {
    color: var(--text-main);
    opacity: 0.9;
}

.project-insight {
    margin-top: 20px !important;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
    font-style: italic;
    color: var(--text-main) !important;
}

.project-links {
    margin-top: 24px;
    display: flex;
    gap: 20px;
}

.project-link {
    font-size: 14px;
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-main);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
    /* Ensure vertical alignment */
}

/* Override button styles for contact text links with high specificity */
.contact-links .btn,
.contact-links .btn.btn-primary,
.contact-links .btn.btn-secondary {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    text-decoration: none;
    box-shadow: none;
    /* Remove any shadows */
}

.contact-links .btn:hover,
.contact-links .btn.btn-primary:hover,
.contact-links .btn.btn-secondary:hover {
    background: transparent;
    /* Ensure no bg on hover */
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transform: none;
}

/* Icon styling within contact links */
.contact-links .icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    /* Make icons accent color */
    /* Remove fill:none so icons that use fill (like LinkedIn/GitHub brands) work */
    /* If icons use stroke, they usually have stroke defined inline or via another class */
}


/* ===== Footer ===== */
.footer {
    padding: 30px 0;
    text-align: center;
    color: #8892b0;
    font-size: 13px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-visual,
    .hero-text {
        flex: auto;
        width: 100%;
        padding: 60px 24px;
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        padding-top: 40px;
        align-items: center;
    }

    .profile-card {
        max-width: 100%;
        margin-right: 0;
        /* Reset overlap for mobile */
        margin-bottom: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .intro-bio {
        text-align: center;
    }

    /* Adjust contact links for tablet/smaller screens */
    .contact-links {
        gap: 30px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {

    /* Stack Navigation on Mobile */
    .nav {
        height: auto;
        padding: 16px 0;
    }

    .nav-content {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 13px;
    }

    .intro-hello {
        font-size: 42px;
    }

    .project,
    .career-item {
        padding: 24px;
    }

    /* Tighter contact links for mobile */
    .contact-links {
        gap: 20px;
    }
}

/* ===== Press Page Styles ===== */
.press-section {
    min-height: 80vh;
    padding-top: 100px;
    /* Offset for nav */
}

.small-container {
    max-width: 800px;
}

.press-item {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: 6px;
    margin-bottom: 32px;
}

.press-subtitle {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.press-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bio-length {
    font-size: 14px;
    color: var(--text-main);
    opacity: 0.6;
    font-weight: 400;
}

.press-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.press-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.press-download-btn {
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
}

.bio-box {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bio-box p {
    margin-bottom: 16px;
    color: var(--text-main);
    line-height: 1.7;
}

.bio-box p:last-child {
    margin-bottom: 0;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    opacity: 0.8;
}

.copy-btn:hover {
    opacity: 1;
    border-color: var(--accent);
    color: var(--accent);
}

.copy-btn.copied {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

.copy-btn .icon {
    width: 14px;
    height: 14px;
}

/* Press Link in Hero */
.press-link-container {
    margin-top: 12px;
    text-align: center;
}

.press-link {
    color: var(--text-inverse);
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.press-link:hover {
    color: var(--accent);
    opacity: 1;
    border-bottom-color: var(--accent);
    text-decoration: none;
}