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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: ##fff;
    --light-text: #f8fafc;
    --gray-text: #94a3b8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    height: 200vh;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
    background-image: url('images/herobg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, #ddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
    opacity: 0.5;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    margin-top: 10vh;
}

.main-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--gray-text);
    margin-bottom: 3rem;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--gray-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arrow-down {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.3; }
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.element-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: 10%;
    left: -10%;
    background-image: url(/images/2.png);
}

.element-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 10%;
    right: -10%;
}

.element-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Cloud Animations */
.cloud {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cloud::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
}

.cloud1 {
    width: 120vw;
    height: 160vh;
    background-image: url('images/cloud1.png');
    top: 25%;
    left: 0%;
    animation: floatCloud1 25s infinite ease-in-out;
    opacity: 0.85;
    background-position: center;
    background-size: cover;
    transform: scale(1);
    z-index: 10;
}

.cloud2 {
    width: 120vw;
    height: 160vh;
    background-image: url('images/cloud2.png');
    top: 40%;
    right: 0%;
    animation: floatCloud2 30s infinite ease-in-out;
    opacity: 0.8;
    background-position: center;
    background-size: cover;
    transform: scale(1);
    z-index: 10;
}

.cloud3 {
    width: 120vw;
    height: 160vh;
    background-image: url('images/cloud3.png');
    top: 0%;
    left: 0%;
    animation: floatCloud3 35s infinite ease-in-out;
    opacity: 0.75;
    background-position: center;
    background-size: cover;
    transform: scale(1);
    z-index: 10;
}

.cloud4 {
    width: 120vw;
    height: 180vh;
    background-image: url('images/cloud4.png');
    top: 15%;
    right: 0%;
    animation: floatCloud4 28s infinite ease-in-out;
    opacity: 1;
    background-position: center;
    background-size: cover;
    transform: scale(1);
    z-index: 10;
}

.cloud5 {
    width: 120vw;
    height: 200vh;
    background-image: url('images/cloud5.png');
    top: 20%;
    left: 0%;
    animation: floatCloud5 32s infinite ease-in-out;
    opacity: 1;
    background-position: center;
    background-size: cover;
    transform: scale(1);
    z-index: 10;
}

.cloud6 {
   width: 120vw;
height: 60vh;
background-image: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
bottom: 0%;
left: 0%;
  /*  animation: floatCloud5 32s infinite ease-in-out;*/
    opacity: 1;
    background-position: center;
    background-size: cover;
    transform: scale(1);
    z-index: 10;
}

@keyframes floatCloud1 {
    0%, 100% {
        transform: scale(1) translate(0, 0) rotate(0deg);
        opacity: 0.85;
    }
    25% {
        transform: scale(1) translate(30px, -15px) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1) translate(60px, -25px) rotate(0deg);
        opacity: 0.95;
    }
    75% {
        transform: scale(1) translate(30px, -15px) rotate(0deg);
        opacity: 0.9;
    }
}

@keyframes floatCloud2 {
    0%, 100% {
        transform: scale(1) translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: scale(1) translate(-40px, 20px) rotate(0deg);
        opacity: 0.85;
    }
    50% {
        transform: scale(1) translate(-70px, 35px) rotate(0deg);
        opacity: 0.9;
    }
    75% {
        transform: scale(1) translate(-40px, 20px) rotate(0deg);
        opacity: 0.85;
    }
}

@keyframes floatCloud3 {
    0%, 100% {
        transform: scale(1) translate(0, 0) rotate(0deg);
        opacity: 0.75;
    }
    25% {
        transform: scale(1) translate(-25px, -18px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1) translate(-50px, -30px) rotate(0deg);
        opacity: 0.85;
    }
    75% {
        transform: scale(1) translate(-25px, -18px) rotate(0deg);
        opacity: 0.8;
    }
}

@keyframes floatCloud4 {
    0%, 100% {
        transform: scale(1) translate(0, 0) rotate(0deg);
        opacity: 0.9;
    }
    33% {
        transform: scale(1) translate(40px, 25px) rotate(0deg);
        opacity: 0.9;
    }
    66% {
        transform: scale(1) translate(20px, 12px) rotate(0deg);
        opacity: 0.9;
    }
}

@keyframes floatCloud5 {
    0%, 100% {
        transform: scale(1) translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    33% {
        transform: scale(1) translate(-35px, -20px) rotate(0deg);
        opacity: 1;
    }
    66% {
        transform: scale(1) translate(-18px, -10px) rotate(0deg);
        opacity: 1;
    }
}

/* Center Image */
.center-image {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('images/ap.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Apline Section */
.apline {
    padding: 4rem 2rem;
    background: transparent;
    position: relative;
    z-index: 100;
}

.ap-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ap-item {
    flex: 1;
    opacity: 0;
}

.item-left {
    animation: slideInLeft 1.5s ease-out 0.3s forwards;
}

.item-center {
    animation: slideInCenter 1.5s ease-out 0.6s forwards;
}

.item-right {
    animation: slideInRight 1.5s ease-out 0.9s forwards;
}

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

.ap-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: #1f2464; /*linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));*/
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInCenter {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive for apline */
@media (max-width: 768px) {
    .ap-container {
        flex-direction: column;
        gap: 3rem;
    }
}

/* Event Details Section */
.event-details {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1a1a3e 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.detail-card {
    background: rgba(56, 89, 191, 0.58);
    border: 1px solid rgba(56, 89, 191, 0.8);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-subtext {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Parallax Section */
.parallax-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.layer-1 {
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.2), transparent);
}

.layer-2 {
    background: radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.2), transparent);
}

.layer-3 {
    background: radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.2), transparent);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--gray-text);
    line-height: 1.8;
}

/* Timeline Section */
.timeline {
    padding: 8rem 2rem;
    background: var(--dark-bg);
}

.timeline-title {
    text-align: center;
    margin-bottom: 5rem;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.item-left .timeline-content {
    grid-column: 1;
    text-align: right;
}

.item-right .timeline-content {
    grid-column: 3;
    text-align: left;
}

.timeline-dot {
    grid-column: 2;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 30px var(--primary-color);
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray-text);
}

/* Gallery Section */
.gallery {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1a1a3e 100%);
    overflow: hidden;
}

.gallery .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: flex;
    gap: 2rem;
    animation: marquee 20s linear infinite;
    width: max-content;
}

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05), transparent);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay p {
    font-size: 1.5rem;
    font-weight: 600;
}

.item-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.item-2 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.item-3 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.item-4 { background: linear-gradient(135deg, #f59e0b, #6366f1); }

/* RSVP Section */
.rsvp {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    background: var(--dark-bg);
}

.rsvp-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.rsvp .section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.rsvp-text {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

.submit-btn {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
}

.rsvp-circles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-contact {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }
    
    .item-left .timeline-content,
    .item-right .timeline-content {
        grid-column: 2;
        text-align: left;
    }
    
    .timeline-dot {
        grid-column: 1;
    }
}
