/* Index page specific styles */

/* Fix body and html for proper layout */
html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}

/* Floating SVG Animation Styles */
.wrap {
    perspective-origin: 50% 50%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
}

.page {
    margin: 3%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    border-radius: 3px;
    text-align: center;
    font-size: 1.4vw;
}

.page h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 6.5vw;
    font-style: italic;
    color: rgba(26, 26, 26, 0.1);
}

/* Hero Logo Image */
.hero-logo {
    max-width: 1000px;
    width: 120%;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.svg-shape {
    position: absolute;
    bottom: -100vh;
    transform-style: preserve-3d;
    pointer-events: none;
    width: 150px;
    height: auto;
    opacity: 0.15;
    /* Filter to create a subtle accent color effect */
    filter: brightness(0) saturate(100%) invert(82%) sepia(25%) saturate(900%) hue-rotate(211deg) brightness(95%) contrast(98%);
}

/* Animation for each SVG shape */
.svg-shape:nth-child(1) { 
    left: 80%; 
    animation: raise1 21s linear infinite; 
    animation-delay: -1s; 
    transform: scale(0.4) rotate(327deg); 
    z-index: -6; 
}
@keyframes raise1 { 
    to { 
        bottom: 150vh; 
        transform: scale(0.4) rotate(327deg); 
    } 
}

.svg-shape:nth-child(2) { 
    left: 60%; 
    animation: raise2 18s linear infinite; 
    animation-delay: -2s; 
    transform: scale(0.5) rotate(117deg); 
    z-index: -5; 
}
@keyframes raise2 { 
    to { 
        bottom: 150vh; 
        transform: scale(0.5) rotate(117deg); 
    } 
}

.svg-shape:nth-child(3) { 
    left: 100%; 
    animation: raise3 12s linear infinite; 
    animation-delay: -5s; 
    transform: scale(0.6) rotate(201deg); 
    z-index: -4; 
}
@keyframes raise3 { 
    to { 
        bottom: 150vh; 
        transform: scale(0.6) rotate(201deg); 
    } 
}

.svg-shape:nth-child(4) { 
    left: 20%; 
    animation: raise4 19s linear infinite; 
    animation-delay: -1s; 
    transform: scale(0.7) rotate(285deg); 
    z-index: -3; 
}
@keyframes raise4 { 
    to { 
        bottom: 150vh; 
        transform: scale(0.7) rotate(285deg); 
    } 
}

.svg-shape:nth-child(5) { 
    left: 40%; 
    animation: raise5 15s linear infinite; 
    animation-delay: 0s; 
    transform: scale(0.8) rotate(9deg); 
    z-index: -2; 
}
@keyframes raise5 { 
    to { 
        bottom: 150vh; 
        transform: scale(0.8) rotate(9deg); 
    } 
}

.svg-shape:nth-child(6) { 
    left: 0%; 
    animation: raise6 17s linear infinite; 
    animation-delay: -3s; 
    transform: scale(0.9) rotate(93deg); 
    z-index: -1; 
}
@keyframes raise6 { 
    to { 
        bottom: 150vh; 
        transform: scale(0.9) rotate(93deg); 
    } 
}

.svg-shape:nth-child(7) { 
    left: 80%; 
    animation: raise7 14s linear infinite; 
    animation-delay: -2s; 
    transform: scale(1.0) rotate(177deg); 
    z-index: 0; 
}
@keyframes raise7 { 
    to { 
        bottom: 150vh; 
        transform: scale(1.0) rotate(177deg); 
    } 
}

.svg-shape:nth-child(8) { 
    left: 60%; 
    animation: raise8 16s linear infinite; 
    animation-delay: -4s; 
    transform: scale(1.1) rotate(261deg); 
    z-index: 1; 
}
@keyframes raise8 { 
    to { 
        bottom: 150vh; 
        transform: scale(1.1) rotate(261deg); 
    } 
}

.svg-shape:nth-child(9) { 
    left: 40%; 
    animation: raise9 13s linear infinite; 
    animation-delay: 0s; 
    transform: scale(1.2) rotate(345deg); 
    z-index: 2; 
}
@keyframes raise9 { 
    to { 
        bottom: 150vh; 
        transform: scale(1.2) rotate(345deg); 
    } 
}

.svg-shape:nth-child(10) { 
    left: 20%; 
    animation: raise10 20s linear infinite; 
    animation-delay: -1s; 
    transform: scale(1.3) rotate(69deg); 
    z-index: 3; 
}
@keyframes raise10 { 
    to { 
        bottom: 150vh; 
        transform: scale(1.3) rotate(69deg); 
    } 
}

/* Countdown styling for index page */
.page .countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: nowrap;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1.4s ease-out;
}

.page .countdown-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: 20px;
    min-width: 110px;
    flex-shrink: 0;
    border: 2px solid #1a1a1a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.page .countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.page .countdown-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(217, 177, 255, 0.4);
    border-color: var(--accent-color);
}

.page .countdown-item:hover::before {
    opacity: 0.2;
}

.page .countdown-item span {
    display: block;
    position: relative;
    z-index: 1;
}

.page .countdown-item span:first-child {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.page .countdown-item span:last-child {
    color: #666;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.05em;
}

.page h1, .page .date {
    position: relative;
    z-index: 10;
}

/* Instagram showcase */
.instagram-showcase {
    max-width: 780px;
    text-align: center;
}

.info-block .container.instagram-showcase {
    padding: 3rem 2.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.92));
    border: 2px solid #e2e2e2;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.1);
}

.instagram-showcase-header {
    margin-bottom: 1.75rem;
}

.instagram-showcase-header h2 {
    margin-bottom: 0.5rem;
    font-size: 2.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.instagram-showcase-header p {
    max-width: 520px;
    margin: 0 auto;
    color: #555;
    font-size: 1.05rem;
}

.instagram-embed-shell {
    position: relative;
    border-radius: 24px;
    padding: 0.85rem;
    background: linear-gradient(145deg, rgba(201, 160, 255, 0.22), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(201, 160, 255, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
    overflow: hidden;
}

.instagram-embed-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
}

.instagram-embed-shell .instagram-media {
    margin: 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 640px !important;
    border: 1px solid #ececec !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
}

.instagram-embed-shell .instagram-media > a {
    display: inline-block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
}

.instagram-embed-shell + .instagram-embed-shell {
    margin-top: 1.25rem;
}

.instagram-follow-link {
    margin-top: 1.75rem !important;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .info-block .container.instagram-showcase {
        padding: 2rem 1.25rem;
        border-radius: 24px;
    }

    .instagram-showcase-header h2 {
        font-size: 1.65rem;
    }

    .instagram-showcase-header p {
        font-size: 1rem;
    }

    .instagram-embed-shell {
        padding: 0.5rem;
        border-radius: 18px;
    }

    .instagram-embed-shell .instagram-media {
        border-radius: 12px !important;
    }

    .page .countdown {
        gap: 0.75rem;
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }

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

    .page .countdown-item span:first-child {
        font-size: 1.75rem;
        margin-bottom: 0.2rem;
    }

    .page .countdown-item span:last-child {
        font-size: 0.6rem;
        letter-spacing: 0.02em;
    }

    .page h1 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-logo {
        max-width: 600px;
        width: 95%;
    }

    .page .date {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .svg-shape {
        width: 60px;
        opacity: 0.15;
    }

    .wrap {
        display: block;
    }
}

@media (max-width: 480px) {
    .instagram-showcase-header h2 {
        font-size: 1.35rem;
        letter-spacing: 0.03em;
    }

    .instagram-showcase-header p {
        font-size: 0.95rem;
    }

    .instagram-follow-link {
        width: 100%;
    }

    .hero-logo {
        max-width: 450px;
        width: 98%;
    }

    .page .countdown {
        gap: 0.5rem;
        padding: 0 0.25rem;
    }

    .page .countdown-item {
        padding: 0.75rem 0.4rem;
        min-width: 60px;
    }

    .page .countdown-item span:first-child {
        font-size: 1.5rem;
    }

    .page .countdown-item span:last-child {
        font-size: 0.55rem;
    }

    /* Make floating arrows even more subtle on very small screens */
    .svg-shape {
        width: 45px;
        opacity: 0.15;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .wrap {
        display: none;
    }
    
    .svg-shape {
        animation: none;
    }
}
