/* Custom Fonts */
@font-face {
    font-family: 'Concourse';
    src: url('fonts/Concourse 4 Caps Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Concourse';
    src: url('fonts/Concourse 4 Caps Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Hermes Maia';
    src: url('fonts/Hermes Maia 2 Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Hermes Maia';
    src: url('fonts/Hermes Maia 2 Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Hermes Maia';
    src: url('fonts/Hermes Maia 2 Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

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

:root {
    --nila-green: #1f641b;
    --venkat-red: #d73a49;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --pl-olive: #6b732f;
    --pl-saffron: 217, 166, 13;
    --pl-tumeric: 242, 159, 5;
    --pl-custard: 242, 221, 182;
    --pl-cayenne: 217, 88, 13;
    --pl-jaggery: 115, 23, 2;
    --pl-chili: 242, 48, 5;
}

body {
    font-family: 'Hermes Maia', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Headings with Concourse small caps */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Concourse', sans-serif;
    font-variant: small-caps;
    text-transform: uppercase;
}

.hidden {
    display: none !important;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background-color: var(--pl-olive);
    opacity: 0.9;
    top: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2rem;
}

.nav-logo {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    font-family: 'Concourse', sans-serif;
    font-variant: small-caps;
    text-transform: uppercase;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 1px;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    border-bottom-color: var(--text-light);
}

.nav-link.active {
    border-bottom-color: var(--text-light);
}

/* Hero Section - Landing Page Only */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 1s ease-in-out;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right top;
    opacity: 1;
    transition: background-position 1s ease-in-out, filter 1s ease-in-out;
    filter: blur(0px);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: transform 0.8s ease-in-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* Password Form */
.password-form {
    margin-top: 2rem;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.password-form.hidden-form {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.password-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 0.375rem 0.375rem 0.375rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    margin: 0 auto;
}

#password-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    font-family: 'Hermes Maia', sans-serif;
    border: none;
    background: transparent;
    color: var(--text-dark);
}

#password-input::placeholder {
    color: #999;
}

#password-input:focus {
    outline: none;
}

#password-submit {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    background: var(--nila-green);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    flex-shrink: 0;
}

#password-submit:hover {
    background: #164a13;
    transform: scale(1.05);
}

#password-submit:active {
    transform: scale(0.95);
}

.error-message {
    color: var(--venkat-red);
    font-size: 0.875rem;
    min-height: 1.25rem;
    margin-top: 0.75rem;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Main Content */
.main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-in-out 0.3s, transform 0.8s ease-in-out 0.3s;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.section-title {  
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--nila-green);
}

/* Parallax Section */
.parallax-section {
    position: relative;
    height: 90vh;
    min-height: 400px;
    overflow: hidden;
    padding-top:100px;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    
      /* Create the parallax scrolling effect */
      background-attachment: fixed;
      background-position: top right;
      background-repeat: no-repeat;
      background-size: cover;
}

.parallax-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 3rem;
}

/* About Section */
.about-section {
    background: var(--bg-light);
    position: relative;
    z-index: 3;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Photos Section */
.photos-section {
    background: #fff;
    overflow: hidden;
    padding-top:10rem;
}

.photo-gallery {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.photo-gallery::-webkit-scrollbar {
    height: 8px;
}

.photo-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.photo-gallery::-webkit-scrollbar-thumb {
    background: var(--pl-olive);
    border-radius: 4px;
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--nila-green);
}

.gallery-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: scroll 90s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    position: relative;
    flex-shrink: 0;
    max-width: min(400px, 70vw);
    border-radius: 2px;
    overflow: hidden;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: var(--text-light);
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400px * 10 - 20rem));
    }
}

/* Events Section */
.events-section {
    background: var(--bg-light);
    padding-top:5rem;
}

.event-card {
    background: #fff;
    /* border-radius: 6px; */
    padding: 2.5rem;
    /* margin-bottom: 2rem; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* border-left: 4px solid var(--nila-green); */
    position: relative;
    /* opacity:0.5; */
    /* z-value:-1; */
}

.event-card:last-child {
    border-left-color: var(--venkat-red);
}

.event-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.event-info p {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.pdf-invite-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--nila-green);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Hermes Maia', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-invite-button:hover {
    background: #164a13;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdf-invite-button:active {
    transform: translateY(0);
}

.event-rsvp h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.luma-button-placeholder {
    /* background: #f5f5f5; */
    /* padding: 1.5rem; */
    /* border-radius: 8px; */
    /* border: 2px dashed #ddd; */
}

/* .luma-placeholder-link {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--nila-green);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.3s;
}

.luma-placeholder-link:hover {
    background: #164a13;
} */

.placeholder-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

/* Duotone Event Card */
.duotone-card {
    display: flex;
    padding: 0;
    overflow: hidden;
    border-left: none;
}

.duotone-half {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px;
}

.duotone-left {
    background: var(--nila-green);
}

.duotone-right {
    background: var(--venkat-red);
}

.duotone-title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.duotone-info {
    color: var(--text-light);
}

.duotone-info p {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

/* Countdown Circle */
.countdown-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.event-details + .countdown-circle {
    position: absolute;
    top: 25%;
    right: 5%;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nila-green);
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--pl-olive);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    

    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-section.authenticated {
        height: 20vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .parallax-section {
        height: 60vh;
        min-height: 400px;
        padding-top: 5rem;
    }

    .password-input-wrapper {
        max-width: 90%;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-item {
        max-width: min(300px, 70vw);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-300px * 10 - 20rem));
        }
    }

    .gallery-overlay {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .event-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-card {
        padding: 1.5rem;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .event-info p {
        font-size: 1rem;
    }

    .pdf-invite-button {
        font-size: 0.9rem;
        padding: 0.625rem 1.25rem;
    }

    .duotone-card {
        flex-direction: column;
    }

    .duotone-half {
        padding: 2rem;
        min-height: 200px;
    }

    .duotone-title {
        font-size: 1.5rem;
    }

    .duotone-info p {
        font-size: 1rem;
    }

    .countdown-circle {
        width: 100px;
        height: 100px;
    }

    .event-details + .countdown-circle {
        top: 1.5rem;
        right: 1.5rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
   

    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-section.authenticated {
        height: 18vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .parallax-section {
        height: 50vh;
        min-height: 350px;
        padding-top: 5rem;
    }

    .password-input-wrapper {
        padding: 0.25rem 0.25rem 0.25rem 1rem;
    }

    #password-input {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    #password-submit {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .pdf-invite-button {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .gallery-item {
        max-width: min(250px, 70vw);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-250px * 10 - 20rem));
        }
    }

    .gallery-overlay {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .countdown-circle {
        width: 80px;
        height: 80px;
    }

    .event-details + .countdown-circle {
        top: 1rem;
        right: 1rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.625rem;
    }
}
