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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
}

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

/* Azure Color Palette */
:root {
    --azure-primary: #007fff;
    --azure-light: #87ceeb;
    --azure-lighter: #e0f6ff;
    --azure-dark: #0066cc;
    --ocean-blue: #006994;
    --deep-sea: #003d5c;
    --wave-foam: #ffffff;
    --sand: #f5f5dc;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--azure-lighter) 0%, var(--azure-light) 50%, var(--azure-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.diving-mask {
    font-size: 4rem;
    color: var(--ocean-blue);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--deep-sea);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--ocean-blue);
    margin-bottom: 2rem;
    font-weight: 300;
}

.wedding-date {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 127, 255, 0.2);
    backdrop-filter: blur(10px);
}

.wedding-date i {
    color: var(--azure-primary);
    margin-right: 0.5rem;
}

.wedding-date span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-sea);
}

/* Bubbles Animation */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubbles span {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: bubble 8s infinite linear;
    backdrop-filter: blur(5px);
}

.bubbles span:nth-child(1) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.bubbles span:nth-child(2) {
    left: 20%;
    width: 30px;
    height: 30px;
    animation-delay: 1s;
}

.bubbles span:nth-child(3) {
    left: 30%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
}

.bubbles span:nth-child(4) {
    left: 40%;
    width: 25px;
    height: 25px;
    animation-delay: 3s;
}

.bubbles span:nth-child(5) {
    left: 50%;
    width: 35px;
    height: 35px;
    animation-delay: 4s;
}

.bubbles span:nth-child(6) {
    left: 60%;
    width: 20px;
    height: 20px;
    animation-delay: 5s;
}

.bubbles span:nth-child(7) {
    left: 70%;
    width: 40px;
    height: 40px;
    animation-delay: 6s;
}

.bubbles span:nth-child(8) {
    left: 80%;
    width: 25px;
    height: 25px;
    animation-delay: 7s;
}

.bubbles span:nth-child(9) {
    left: 90%;
    width: 30px;
    height: 30px;
    animation-delay: 8s;
}

.bubbles span:nth-child(10) {
    left: 5%;
    width: 15px;
    height: 15px;
    animation-delay: 9s;
}

@keyframes bubble {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-50vh) scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) scale(0.8);
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--ocean-blue);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--deep-sea);
    margin-bottom: 1rem;
}

.section-header h2 i {
    color: var(--azure-primary);
    margin-right: 0.5rem;
}

.wave-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--azure-light), var(--azure-primary), var(--azure-light));
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.wave-divider::before,
.wave-divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--azure-light);
    border-radius: 50%;
    top: -8px;
}

.wave-divider::before {
    left: -10px;
}

.wave-divider::after {
    right: -10px;
}

/* Details Section */
.details {
    background: var(--azure-lighter);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 127, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 1;
}

.detail-card:hover::before {
    opacity: 1;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 127, 255, 0.2);
}

.card-icon {
    font-size: 3rem;
    color: var(--azure-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.detail-card h3 {
    font-size: 1.5rem;
    color: var(--deep-sea);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.detail-card .time {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--azure-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.detail-card p {
    color: var(--ocean-blue);
    position: relative;
    z-index: 2;
}

/* Location Section */
.location {
    background: linear-gradient(45deg, var(--wave-foam), var(--azure-lighter));
}

.location-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.location-info h3 {
    font-size: 2rem;
    color: var(--deep-sea);
    margin-bottom: 1rem;
}

.location-info p {
    font-size: 1.1rem;
    color: var(--ocean-blue);
    margin-bottom: 1.5rem;
}

.location-link {
    display: inline-block;
    background: var(--azure-primary);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 127, 255, 0.3);
}

.location-link:hover {
    background: var(--azure-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 127, 255, 0.4);
}

.location-link i {
    margin-right: 0.5rem;
}

.fish-swimming {
    display: flex;
    gap: 1rem;
    font-size: 2rem;
    color: var(--azure-light);
}

.fish-swimming i {
    animation: swim 4s ease-in-out infinite;
}

.fish-swimming i:nth-child(2) {
    animation-delay: 1s;
}

.fish-swimming i:nth-child(3) {
    animation-delay: 2s;
}

@keyframes swim {

    0%,
    100% {
        transform: translateX(0) scaleX(1);
    }

    25% {
        transform: translateX(10px) scaleX(-1);
    }

    50% {
        transform: translateX(0) scaleX(-1);
    }

    75% {
        transform: translateX(-10px) scaleX(1);
    }
}

.map-preview {
    flex: 1 1 520px;
    min-width: 300px;
    max-width: 700px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 127, 255, 0.15);
    background: white;
}

.map-preview iframe {
    display: block;
    width: 100%;
    height: 360px;
}

.map-caption {
    font-size: 0.9rem;
    color: var(--ocean-blue);
    padding: 0.5rem 1rem 1rem;
}

/* Practical Info Section */
.practical-info {
    background: var(--azure-lighter);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 127, 255, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--azure-primary);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--deep-sea);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--ocean-blue);
    margin-bottom: 0.5rem;
}

.highlight {
    background: var(--azure-lighter);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--azure-primary);
    font-weight: 500;
}

/* Countdown Section */
.countdown {
    background: linear-gradient(135deg, var(--azure-primary), var(--ocean-blue));
    color: white;
    position: relative;
    z-index: 11;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.time-unit {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-unit .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Dancing Script', cursive;
}

.time-unit .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.countdown-text {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--deep-sea);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

.diving-elements {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--azure-light);
}

.diving-elements i {
    animation: float 3s ease-in-out infinite;
}

.diving-elements i:nth-child(2) {
    animation-delay: 1s;
}

.diving-elements i:nth-child(3) {
    animation-delay: 2s;
}

/* Responsive Design */
/* Medium screens (tablets and large mobile devices) */
@media (max-width: 1024px) {
    .reef-right {
        right: -250px;
        /* Move reef image further right to prevent text overlap */
        opacity: 0.4;
        /* Reduce opacity for better text readability */
    }

    /* Improve text contrast on medium screens */
    .section-header h2 {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    }

    .detail-card p,
    .info-card p {
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    }

    .location-info h3,
    .location-info p {
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.2rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .details-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

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

    .fish-swimming {
        justify-content: center;
    }

    .countdown-timer {
        gap: 1rem;
    }

    .time-unit {
        min-width: 80px;
        padding: 1.5rem 1rem;
    }

    .time-unit .number {
        font-size: 2rem;
    }

    .reef-right {
        right: -300px;
        /* Hide more of the reef image to prevent text overlap */
        opacity: 0.3;
        /* Reduce opacity to improve text readability */
    }

    /* Improve text contrast on mobile */
    .detail-card p,
    .info-card p {
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 20px;
    }

    .main-title {
        font-size: 2.8rem;
        /* Slightly larger for better readability */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .subtitle {
        font-size: 1.3rem;
        /* Increase subtitle size */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    }

    .diving-mask {
        font-size: 3rem;
    }

    .wedding-date {
        padding: 0.8rem 1.5rem;
        box-shadow: 0 8px 25px rgba(0, 127, 255, 0.3);
    }

    .wedding-date span {
        font-size: 1.1rem;
        /* Slightly larger wedding date text */
    }

    .detail-card,
    .info-card {
        padding: 1.5rem;
        box-shadow: 0 8px 25px rgba(0, 127, 255, 0.15);
    }

    .detail-card h3,
    .info-card h3 {
        font-size: 1.3rem;
        /* Increase heading size for better readability */
    }

    .detail-card p,
    .info-card p {
        font-size: 1rem;
        /* Ensure minimum readable font size */
        line-height: 1.6;
    }

    .section-header h2 {
        font-size: 1.8rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .time-unit {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }

    .time-unit .number {
        font-size: 1.8rem;
        /* Ensure countdown numbers are readable */
    }

    .time-unit .label {
        font-size: 0.8rem;
    }

    .countdown-text {
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    /* Hide reef completely on very small screens */
    .reef-right {
        display: none;
    }

    /* Ensure text containers have proper background */
    .hero-content {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 2rem 1rem;
        margin: 1rem;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 360px) {
    .main-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .detail-card,
    .info-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .detail-card h3,
    .info-card h3 {
        font-size: 1.2rem;
    }

    .detail-card p,
    .info-card p {
        font-size: 0.95rem;
    }

    .wedding-date {
        padding: 0.6rem 1rem;
    }

    .wedding-date span {
        font-size: 1rem;
    }

    .time-unit {
        min-width: 60px;
        padding: 0.8rem 0.3rem;
    }

    .time-unit .number {
        font-size: 1.5rem;
    }

    .time-unit .label {
        font-size: 0.7rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images and icons */
i,
.card-icon,
.info-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

i:hover,
.card-icon:hover,
.info-icon:hover {
    transform: scale(1.1);
}

/* Additional underwater effects */
@keyframes wave {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--azure-light), transparent);
    animation: wave 3s ease-in-out infinite;
}

/* Right Reef Background */
.reef-right {
    position: absolute;
    top: 900px;
    right: -120px;
    /* height: 252.2vh; */
    height: 220.2vh;
    width: auto;
    z-index: 0;
    pointer-events: none;
    object-fit: cover;
    object-position: top right;

}

/* .left,
.right {
    position: absolute;
    width: 500px;
    top: 0;
    bottom: 0;
    background: white;
    opacity: 0.1;
}

.right {
    right: 0;
} */