/* Navbar styling */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 10px 0;
    background: transparent;
}

:root {
    --bg-color: #000;
    --accent: #ffcc00;
    --muted-white: rgba(255,255,255,0.95);
    --max-width: 1200px;
}

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

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;

}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar-link {
    font-family: "span", serif;
    color: white;
    text-decoration: none;
    font-size: clamp(1rem, 1.6vw, 1.6rem);
    padding: 6px 12px;
}

.navbar-link:hover {
    background-color: #ffcc00;
    color: black;
    border-radius: 5px;
}


/* Body and Background */
/* Enable scroll snapping */
html, body {
    height: 100%;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "antipoda-variable", sans-serif;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--muted-white);
    overflow-x: hidden;
    background-color: var(--bg-color);
    position: relative;
}

/* Fullscreen Particles Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: cover;
    pointer-events: none; /* allow clicks through particles */
}

/* Header and Hero Section Styling */
header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-snap-align: start;
    padding: 8vh 5vw; /* keep content away from edges */
}

.hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 5%;
}

/* Name Container */
.name-container {
    position: relative;
    margin: 0;
    text-align: left;
}

.name-text {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 400;
    font-style: italic;
    background: transparent;
    line-height: 0.95;
}

.name-text .intro {
    
    color: #FFFFFF;
    font-family: "antipoda-variable", sans-serif;
    font-variation-settings: "wdth" 90, "wght" 300;
    font-style: normal;
    
}

.name-text .highlight {
    
    font-family: "span", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 7rem;
    
}

.subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

/* Section Styling */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    scroll-snap-align: start;
    padding: 6vh 4vw;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}
.container {
    max-width: 800px;
    margin: 0 auto;
}

.about-me,
.aboutme,
#about-me {
    
    width: 100%;
    min-height: 100vh;
    display: block;
    padding: 8vh 5vw;
    background-color: transparent;
    color: var(--muted-white);
    position: relative;
}

.about-title {
    
    margin-top: 0;
    font-family: "span", serif;
    text-align: left;
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: bold;
    position: relative;

}

.about-textbox {
    margin-top: 20px;
    max-width: 900px;
    padding: 8px 0;
    background-color: transparent;
    text-align: left;
    position: relative;
}

.about-text {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    line-height: 1.8;
    font-style: normal;
}

.resume-preview {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 8px auto 0 auto;
    /* increase preview height so more of the PDF is visible */
    height: 92vh; /* desktop: taller */
    max-height: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.resume-preview .resume-iframe {
    width: 100%;
    height: 92vh;
    max-height: none; /* match container */
    border: 1px solid #ccc;
    border-radius: 8px;
}

#contactme .container {
    position: absolute;
    top: 10%;
    left: 10%;
    text-align: left;
}

#contactme h2 {
    
    font-family: "span", serif;
    font-size: 4rem;
    font-weight: bold;
    font-style: italic;
    background: #FFFFFF;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

#contactme p {
    font-size: 1.4rem; /* Match the subtitle size */
    font-weight: bold;
    margin-top: 10px;
}

#contact-page h2 {
    
    font-family: "span", serif;
    font-size: 4rem;
    font-weight: bold;
    font-style: italic;
    background: #FFFFFF;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Contact Info */
.contact-info {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.contact-info li {
    margin: 10px 0;
}

.contact-info a {
    color: #ff0066;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Scroll Down Indicator Styling */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    color: #fff;
    font-family: 'utopia-std', serif;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    visibility: visible; 
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    transition: none; /* Ensure this delay is here to allow the opacity to fade before hiding */
}

/* Arrow Style */
.scroll-indicator .arrow {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(45deg);
    animation: bounce 1s infinite;
    color: #FFFFFF
}

/* Fade in/out effect */
@keyframes fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Arrow bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(10px) rotate(45deg);
    }
}

/* Resume Section Styling - make responsive and avoid absolute positioning */
#resume {
    position: relative;
    min-height: 100vh;
    display: block;
    padding: 6vh 5vw;
    z-index: 1;
    scroll-snap-align: start;
}

/* layout container specific to resume; use flex to position text + preview */
.resume-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.resume-text {
    width: 100%;
    max-width: 640px;
    padding-right: 0;
}

/* Resume heading — controlled by #resume h2 (original styling restored below) */

/* Put heading and download thumbnail side-by-side */
.resume-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.resume-text h2 { margin: 0; }

/* Restoring original #resume heading style from initial file */
#resume h2 {
    font-family: "span", serif;
    font-size: 4rem;
    font-weight: bold;
    font-style: italic;
    background: #FFFFFF;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
#resume p {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

.resume-link {
    display: flex; 
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 10px;
    border-radius: 5px;
    margin-top: 60px;
}

.resume-link img {
    width: auto; /* let max-width control size */
    max-width: 150px; /* desktop cap */
    height: auto; /* Maintain aspect ratio */
    display: block;
}

/* Resume actions (download thumbnail + view button) */
.resume-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.resume-download {
    display: inline-block;
    background-color: #fff;
    padding: 6px;
    border-radius: 6px;
}
.resume-download img { display: block; max-width: 70px; height: auto; border-radius: 6px; }
.resume-download { padding: 4px; }

.resume-link:hover {
    background-color: #ffcc00;
    color: aliceblue;
}


.resume-preview {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 8px auto 0 auto;
    /* increase preview height so more of the PDF is visible */
    max-height: 1000px; /* desktop: taller */
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.resume-preview .resume-iframe {
    width: 100%;
    height: 100%;
    max-height: 1000px; /* match container */
    border: 1px solid #ccc;
    border-radius: 8px;
}
/* duplicate old iframe rules removed (now using responsive rules above) */

/* Ensure sections are visible on small devices even if JS visibility toggles don't run */
@media (max-width: 600px) {
    .section {
        opacity: 1;
        transform: none;
        padding: 4vh 4vw;
    }
    .resume-container { flex-direction: column; }
    .resume-text, .resume-preview { width: 100%; max-width: 100%; }
    .resume-preview { display: flex; height: 82vh; max-height: none; }
    .resume-preview .resume-iframe { height: 300px; max-height: none; }
    /* make download button smaller and reduce padding on small screens */
    .resume-link { padding: 6px 10px; margin-top: 18px; }
    .resume-link img { max-width: 90px; }
    .resume-download img { max-width: 90px; }
    .resume-view { padding: 6px 10px; }

    /* Stack heading and thumbnail on small screens */
    .resume-text { flex-direction: column; align-items: flex-start; }
    .resume-actions { margin-top: 8px; }
}

@media (min-width: 601px) {
    /* keep stacked layout but allow a slightly larger thumbnail */
    .resume-text { width: 100%; }
    .resume-preview { height: 88vh; max-height: none; }
    .resume-preview .resume-iframe { height: 325px; max-height: none; }
    .resume-link img { max-width: 130px; }
}

/* Resume Link Styling */
.resume-link, .contact-info a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #FFFFFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.resume-link:hover, .contact-info a:hover {
    background-color: #ffcc00;
    color: #000;
}

.linkedin img {
    width: 150px;
    height: 130px;
}

.email img {
    width: 150px;
    height: 130px;
}

.contact-buttons {
    display: flex;
    flex-direction: row;  
    justify-content: left;  
    align-items: center;  
    gap: 50px;
}

.contact-link {
    background-color: #ff0066;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.contact-link:hover {
    background-color: #ffcc00;
}

.contact-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.main-heading {
    font-family: "span", serif;
    font-size: clamp(2rem, 8vw, 6rem);
    color: var(--muted-white);
    margin-bottom: 20px;
}

.intro-text {
    font-family: "span", serif;
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    color: var(--muted-white);
    margin-bottom: 60px;
}

.section-divider {
    border: none; 
    height: 2px;
    background-color: #FFFFFF;
    margin: 20px 0;
    width: 100%;
}

.contact-section {
    
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.contact-section h2, .contact-section p {
    margin: 0; 
    padding: 10px;
}

.contact-section h2 {
    font-family: "span", serif;
    font-size: 36px;
    color: #FFFFFF;
    display: inline-block;
    margin-bottom: 10px;
}

.email-link, .social-link {
    font-family: "span", serif;
    font-size: 20px;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-block;
    margin: 10px 0;
}

footer {
    font-family: "span", serif;
    font-size: 16px;
    color: #FFFFFF;
    margin-top: 40px;
}

/* Global mobile optimizations */
@media only screen and (max-width: 393px) and (orientation: portrait)
 {
    
    /* General body and container adjustments */
    body {
        font-size: 14px; /* Smaller base font size */
        padding: 0 10px; /* Prevent content from touching edges */
    }

    .container {
        width: 100%;
        padding: 0 10px; /* Breathing space for mobile */
    }

    /* Navbar adjustments */
    .navbar .container {
        flex-direction: row;
        align-items: center; /* Center navbar links */
    }

    .navbar-menu {
        flex-direction: row;
        gap: 10px; /* Stack links vertically with space */
    }

    .navbar-link {
        font-size: 1rem; /* Smaller font size for mobile */
        padding: 10px 20px; /* Increase tap area for links */
    }

    /* Hero section (main name and intro text) */
    .name-container {
        top: 30%;
    }

    .name-text {
        font-size: 3rem; /* Reduce main heading size */
    }

    .name-text .highlight {
        font-size: 4rem; /* Adjust highlighted text size */
    }

    .intro {
        font-size: 1.2rem; /* Adjust subtitle size */
    }
    

    /* Scroll indicator adjustments */
    .scroll-indicator {
        font-size: 1rem;
    }

    .scroll-indicator .arrow {
        width: 15px;
        height: 15px;
    }

    /* Footer adjustments */
    footer {
        font-size: 0.9rem;
        margin-top: 20px;
    }
}

/* iPhone-specific heading scale: apply larger heading only on small screens */
@media only screen and (max-width: 480px) {
    .resume-text h2,
    #resume h2 {
        font-size: clamp(3rem, 7.5vw, 6rem);
        line-height: 1.02;
    }
}
