/* Base Styles */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #c0c0c0;
    --text-color: #ffffff;
    --background-color: #000000;
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #3d3d3d 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    --font-heading: 'Playfair Display', serif;
    --font-elegant: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.loading-svg {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
}

.loading-circle {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 75;
    animation: dash 1.5s ease-in-out infinite;
}

.loading-text {
    font-family: var(--font-elegant);
    font-size: 24px;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

.custom-cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.groom-name, .bride-name {
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.ampersand {
    font-family: var(--font-elegant);
    font-size: 3rem;
    color: var(--secondary-color);
    display: block;
    margin: 10px 0;
}

.hero-date {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(45deg);
    margin: 10px auto;
    animation: bounce 2s infinite;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
}

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

/* Couple Section */
.couple-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.couple-card {
    width: 300px;
    perspective: 1000px;
}

.card-3d {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.couple-card:hover .card-3d {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.card-front img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.card-front h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 15px 0 5px;
    color: var(--secondary-color);
}

.card-front p {
    font-family: var(--font-elegant);
    color: var(--accent-color);
}

.card-back h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin: 5px 0;
}

/* Countdown Section */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 120px;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
}

.countdown-label {
    font-family: var(--font-elegant);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Events Section */
.events-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.event-card {
    width: 350px;
    perspective: 1000px;
}

.event-card .card-3d {
    height: auto;
    min-height: 400px;
}

.event-card .card-content {
    padding: 30px;
    text-align: center;
}

.event-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.event-details {
    margin-bottom: 20px;
}

.event-details p {
    margin: 10px 0;
    color: var(--accent-color);
}

.maps-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.maps-link:hover {
    color: var(--accent-color);
}

.maps-icon {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    fill: currentColor;
}

/* Story Section */
.story-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--accent-color);
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-image {
    position: relative;
    padding-bottom: 100%;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-icon {
    color: var(--secondary-color);
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .zoom-icon {
    transform: scale(1);
}

/* RSVP Section */
.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--accent-color);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group select:valid + label,
.form-group textarea:valid + label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.submit-btn {
    background: var(--gradient-gold);
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Gift Section */
.gift-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gift-info,
.gift-message {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--accent-color);
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    padding: 50px 0;
    text-align: center;
}

.footer-text {
    margin-bottom: 20px;
}

.footer-text p {
    font-family: var(--font-elegant);
    color: var(--accent-color);
    margin-bottom: 10px;
}

.footer-text h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.footer-hashtag {
    font-family: var(--font-elegant);
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.music-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-gold);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--secondary-color);
    font-size: 2rem;
    cursor: pointer;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: 283;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .couple-container,
    .events-container {
        gap: 30px;
    }
    
    .countdown-item {
        min-width: 100px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .rsvp-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .couple-card,
    .event-card {
        width: 100%;
    }
    
    .countdown-container {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
} 