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

:root {
    --gold: #FFB22C;
    --black: #000000;
    --white: #ffffff;
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--black);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 178, 44, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 178, 44, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFB22C 0%, #000000 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    animation: fadeUp 1s ease-out;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 178, 44, 0.3);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: scale(1.05);
    border-color: var(--gold);
}

.countdown-number {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: var(--white);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta {
    background: var(--black);
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 2rem;
}

.hero-cta:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 178, 44, 0.4);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--black);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--gold);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.3s forwards;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--gold);
    box-shadow: 0 10px 30px rgba(255, 178, 44, 0.3);
    display: block;
}

.about-text {
    color: var(--white);
}

.about-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 1.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 178, 44, 0.4);
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: var(--dark-gray);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold);
    border: 2px solid var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 178, 44, 0.3);
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--gold);
    transform: scale(1.2);
}

.gallery-cta {
    display: block;
    margin: 3rem auto 0;
}

/* Messages Section */
.messages {
    padding: 6rem 0;
    background: var(--black);
}

.message-board {
    max-width: 800px;
    margin: 0 auto;
}

.message-form {
    margin-bottom: 3rem;
}

.message-input-row {
    margin-bottom: 1rem;
}

.name-input {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem 1rem;
    background: var(--dark-gray);
    border: 2px solid rgba(255, 178, 44, 0.3);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.name-input:focus {
    outline: none;
    border-color: var(--gold);
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.message-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.message-info {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.char-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.message-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    background: var(--dark-gray);
    border: 2px solid rgba(255, 178, 44, 0.3);
    border-radius: 15px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.message-input:focus {
    outline: none;
    border-color: var(--gold);
}

.message-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-button {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 178, 44, 0.4);
}

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

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.send-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--dark-gray);
    border-radius: 15px;
    border: 2px solid rgba(255, 178, 44, 0.2);
}

.messages-list::-webkit-scrollbar {
    width: 8px;
}

.messages-list::-webkit-scrollbar-track {
    background: var(--black);
    border-radius: 10px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.message-bubble {
    background: var(--gold);
    color: var(--black);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    max-width: 75%;
    align-self: flex-start;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 10px rgba(255, 178, 44, 0.2);
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--gold);
}

.message-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.message-text {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.message-timestamp {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

.empty-messages {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--black);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 178, 44, 0.2);
}

.footer-text {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-cta {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-cta:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-item {
        padding: 1rem 1.5rem;
        min-width: 80px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portrait-image {
        width: 250px;
        height: 250px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .message-input-container {
        flex-direction: column;
    }

    .send-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .countdown-item {
        padding: 0.8rem 1rem;
        min-width: 70px;
    }

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

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

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

