/* ========== GLOBAL RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Use border-box for predictable sizing */
    font-family: 'Poppins', sans-serif;
}

body {
    background: #080808;
    color: #ffffff;
    overflow-x: hidden;
    opacity: 0; /* Start invisible, fade-in with JS + animation */
}

/* When the page is fully loaded, JS adds this class to trigger fade-in */
body.page-loaded {
    animation: fadeInPage 0.5s ease forwards;
}

/* When navigating away, JS adds this class to fade out the page */
body.page-fade-out {
    animation: fadeOutPage 0.4s ease forwards;
}

/* ========== PAGE TRANSITION ANIMATIONS ========== */
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========== LAYOUT HELPERS ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10%;
}

/* Reusable section padding */
.section {
    padding: 80px 0;
}

/* Big section title */
.subtitle {
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 40px;
}

/* Highlighted text (used in Contact) */
.highlight {
    color: #ff004f;
    font-weight: 600;
}

/* ========== NAVBAR ========== */
nav {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

/* Nav list */
nav ul {
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding-bottom: 3px;
}

/* Underline hover effect */
nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Active page link */
nav ul li a.active {
    color: #ff004f;
}

nav ul li a.active::after {
    width: 100%;
}

/* ========== HEADER (HOME PAGE) ========== */
#header {
    width: 100%;
    height: 100vh;
    background-image: url(images/golden-sky-ucsd-saahtrg8va924c3q.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay for better text contrast */
#header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

#header .container {
    position: relative;
    z-index: 2;
}

.header-text {
    margin-top: 18%;
}

.header-text h1 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    font-size: 60px;
    margin-bottom: 10px;
}

.header-text p {
    font-size: 18px;
    max-width: 500px;
    line-height: 1.5;
}

/* Call-to-action button */
.btn-primary {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 24px;
    border-radius: 25px;
    border: 1px solid #ff004f;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: #ff004f;
    transform: translateY(-2px);
}

/* ========== SUB-HEADER (INNER PAGES) ========== */
.sub-header {
    width: 100%;
    height: 40vh;
    background-image: url(images/golden-sky-ucsd-saahtrg8va924c3q.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.sub-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.sub-header .container {
    position: relative;
    z-index: 2;
}

.sub-header-title {
    margin-top: 60px;
    font-size: 40px;
    font-family: 'Georgia', serif;
}

/* ========== ABOUT PAGE ========== */
.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Image column */
.about-col-1 {
    flex-basis: 35%;
    text-align: center;
}

.about-col-1 img {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    object-fit: cover;
}

/* Text column */
.about-col-2 {
    flex-basis: 60%;
}

.about-col-2 p {
    line-height: 1.7;
    font-size: 16px;
}

/* ========== PROJECTS PAGE ========== */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-gap: 30px;
}

.project-card {
    background: #111111;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.project-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 14px;
    line-height: 1.6;
}

.project-card:hover {
    transform: translateY(-6px);
    background: #181818;
}

/* ========== SKILLS PAGE ========== */
.skills-box {
    background: #111111;
    padding: 30px;
    border-radius: 12px;
}

.skills-box ul {
    list-style: none;
}

.skills-box ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

/* ========== EXPERIENCE PAGE ========== */
.experience-card {
    background: #111111;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.experience-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.experience-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* ========== CONTACT PAGE ========== */
.contact-info p {
    font-size: 15px;
    margin-bottom: 10px;
}

/* Simple footer for bottom spacing / branding */
footer {
    text-align: center;
    font-size: 13px;
    color: #aaaaaa;
    padding: 20px 0 30px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 6%;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 10px 0 0;
    }

    .header-text {
        margin-top: 40%;
    }

    .header-text h1 {
        font-size: 40px;
    }

    .sub-header-title {
        font-size: 30px;
        margin-top: 40px;
    }

    .row {
        flex-direction: column;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 20px;
    }
}

/* ===== CONTACT FORM STYLING ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

.contact-form label {
    margin-bottom: 6px;
    font-size: 14px;
    color: #ff004f;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
    background: #111;
    color: #fff;
    font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #ff004f;
}

.contact-form button {
    align-self: flex-start;
}

/* ===== GITHUB BUTTON ON PROJECT CARDS ===== */
.github-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #ff004f;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.3s ease;
}

.github-btn:hover {
    background: #ff336d;
    transform: translateY(-2px);
}


/* =========================
   PASSWORD OVERLAY STYLES
   ========================= */

   #password-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #111, #080808);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .password-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(255, 0, 79, 0.25);
    animation: fadeIn 0.6s ease;
  }
  
  .password-box h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
  }
  
  /* Input + show button */
  .password-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .password-input-wrapper input {
    width: 260px;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #111;
    color: white;
    outline: none;
  }
  
  .password-input-wrapper input:focus {
    border-color: #ff004f;
    box-shadow: 0 0 8px rgba(255, 0, 79, 0.6);
  }
  
  /* Show / Hide button */
  .toggle-password {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .toggle-password:hover {
    border-color: #ff004f;
    color: #ff004f;
  }
  
  /* Enter button */
  .enter-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 30px;
    border: none;
    background: #ff004f;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 79, 0.4);
  }
  
  #error-msg {
    margin-top: 12px;
    color: #ff4d4d;
  }
  
  /* Subtle fade animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


  /* =========================
   RESUME PAGE STYLES
   ========================= */

.resume-actions {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .resume-viewer {
    width: 100%;
    height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 0, 79, 0.15);
  }
  
  .resume-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #111;
  }
  