/* =====================
   Intro Animation Overlay
   ===================== */
#intro-overlay {
    position: fixed;
    inset: 0;
    background: #15100b;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#intro-overlay.hidden {
    display: none;
}

#intro-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#intro-text-holder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#intro-typing {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #ede8df;
    white-space: nowrap;
}

#intro-skip {
    position: fixed;
    top: 20px;
    right: 40px;
    z-index: 9100;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--nav-border);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

#intro-skip:hover {
    transform: scale(1.05);
}

#intro-skip::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: transparent;
    transition: background 0.3s ease;
    pointer-events: none;
}

#intro-skip:hover::after {
    background: var(--nav-border);
}

/* Blinking cursor */
#intro-typing::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    animation: cursorBlink 0.7s step-end infinite;
    opacity: 1;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Page wipe-in: main content slides up via clip-path */
body.intro-active .container,
body.intro-active .navbar {
    visibility: hidden;
}

body:not(.intro-active) .container,
body:not(.intro-active) .navbar {
    animation: pageFadeIn 0.6s ease forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Noise overlay */
#noise-overlay {
    position: fixed;
    inset: -10rem;
    width: calc(100% + 20rem);
    height: calc(100% + 20rem);
    z-index: 9500;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: noiseAnim 2.1s steps(2) infinite;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #15100b;
    --text-color: #ede8df;
    --text-secondary: #c8b99a;
    --text-gray: #968d85;
    --border-color: #ede8df;
    --nav-bg: rgba(21, 16, 11, 0.6);
    --nav-border: rgba(237, 232, 223, 0.1);
    --shadow-color: rgba(237, 232, 223, 0.12);
    --accent-color: #c44743;
}


body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 40px 60px;
    padding-top: 100px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glass Navigation Bar */
.navbar {
    position: fixed;
    top: 20px;
    right: 40px;
    left: auto;
    transform: none;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--nav-border);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* CV Button */
.cv-button {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    letter-spacing: 0.5px;
}

.cv-button:hover {
    background: var(--nav-border);
    transform: scale(1.05);
}


/* Star field canvas */
#stars-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Force lowercase everywhere on the page */
.container,
.navbar {
    text-transform: lowercase;
}

/* Container */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Header with Name at Top */
.header {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Name - Thin Times New Roman Italicized with Double Layer Effect */
.name {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-color);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 3px 3px 0px var(--text-gray);
}

.name::before {
    content: none;
}

/* Tagline - Light gray subtitle */
.tagline {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Content Section Centered */
.content-section {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* About Section */
.about {
    text-align: center;
}

.about-link {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.about-link:hover {
    opacity: 0.7;
}

.about p {
    font-size: 1.12rem;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

/* Section Divider - Modern Minimal */
.section-divider {
    width: 60px;
    height: 2px;
    background: var(--text-color);
    margin: 3rem auto;
    opacity: 0.3;
}

/* Featured In Section - Full Width Centered */
.featured-section {
    margin-top: 0;
    padding: 3rem 0;
    text-align: center;
}


.featured-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 2px;
    text-transform: lowercase;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.featured-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    text-decoration: none;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
}

.news-preview {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-info {
    padding: 1.5rem;
    text-align: left;
}

.news-outlet {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.news-description {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-gray);
    margin: 0;
    font-style: italic;
}

.news-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

/* Projects Section - Same Design as Featured */
.projects-section {
    margin-top: 0;
    padding: 3rem 0;
    text-align: center;
}

.projects-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 2px;
    text-transform: lowercase;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    text-decoration: none;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
}

.project-preview {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.project-info {
    padding: 1.5rem;
    text-align: left;
}

.project-name {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.project-description {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-gray);
    margin: 0;
    font-style: italic;
}

.project-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.many-more {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 2rem;
    letter-spacing: 1px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.icon-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    position: relative;
}

.icon {
    width: 100%;
    height: 100%;
    fill: var(--text-color);
    transition: filter 0.3s ease, fill 0.3s ease;
}

/* Icon Hover Animations */
.icon-link:hover .icon {
    fill: var(--accent-color);
}


/* Keyframe Animations */
@keyframes noiseAnim {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    body {
        padding: 30px 40px;
        padding-top: 100px;
    }

    .navbar {
        top: 15px;
        padding: 0.5rem 1.2rem;
    }

}


@media (max-width: 768px) {
    body {
        padding: 20px 30px;
        padding-top: 90px;
    }

    .navbar {
        top: 15px;
        padding: 0.5rem 1rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .about p {
        font-size: 1rem;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .icon-link {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px;
        padding-top: 80px;
    }

    .navbar {
        top: 10px;
        padding: 0.4rem 0.8rem;
    }

    .nav-content {
        gap: 1rem;
    }

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .header {
        margin-bottom: 2rem;
    }

    .about p {
        font-size: 0.95rem;
    }

    .content-section {
        gap: 2rem;
    }
}
