/* Kinder Welcome Page Styles */

/* Color Variables */
:root {
    --equator: #e0c766;
    --sorrell-brown: #c5b97f;
    --blue-zodiac: #122355;
    --ronchi: #e9c643;
    --finch: #666145;
    --ebony-clay: #1f2636;
    --gray-chateau: #9ea5b4;
    --shuttle-gray: #596174;
    --white-rock: #e6e7d0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--shuttle-gray);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Animated Background Pattern */
.bg-pattern {
    background-color: #122355 !important;
    background-image: 
        linear-gradient(
            135deg,
            rgba(18, 35, 85, 0.85) 0%,
            rgba(31, 38, 54, 0.8) 50%,
            rgba(18, 35, 85, 0.85) 100%
        ),
        radial-gradient(circle at 20% 30%, rgba(224, 199, 102, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(197, 185, 127, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(233, 198, 67, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px),
        url('../images/welcome/welcome-background.jpeg') !important;
    background-size: auto, auto, auto, auto, auto, cover !important;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, center !important;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    position: relative;
}

/* Remove the ::before overlay since we're using gradient in background-image now */
.bg-pattern::before {
    display: none;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 8s ease-in-out infinite;
}

.animate-pulse-subtle {
    animation: pulse-subtle 4s ease-in-out infinite;
}

/* Book Icon Pattern */
.book-pattern {
    position: fixed;
    width: 90px;
    height: 90px;
    border: 3px solid currentColor;
    border-radius: 4px;
    opacity: 0.25;
    z-index: 2;
}

.book-pattern::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
    transform: translateX(-50%);
}

.book-pattern.top-left {
    color: var(--ronchi);
    top: 5%;
    left: 5%;
}

.book-pattern.top-right {
    color: var(--equator);
    top: 10%;
    right: 8%;
}

.book-pattern.bottom-left {
    color: var(--sorrell-brown);
    bottom: 15%;
    left: 10%;
}

.book-pattern.bottom-right {
    color: var(--ronchi);
    bottom: 20%;
    right: 15%;
}

/* Star Decorations */
.star-decoration {
    position: fixed;
    width: 10px;
    height: 10px;
    background: currentColor;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 2;
    opacity: 0.6;
}

.star-decoration:nth-child(1) {
    color: var(--ronchi);
    top: 20%;
    left: 28%;
}

.star-decoration:nth-child(2) {
    color: var(--equator);
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.star-decoration:nth-child(3) {
    color: var(--ronchi);
    bottom: 25%;
    left: 18%;
    animation-delay: 2s;
}

.star-decoration:nth-child(4) {
    color: var(--sorrell-brown);
    top: 60%;
    right: 25%;
    animation-delay: 1.5s;
}

/* Main Container */
.main-container {
    max-width: 72rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Logo and Welcome Section */
.logo-section {
    text-align: center !important;
    margin-bottom: 3rem;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-image {
    width: 110px;
    height: 110px;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-heading {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-align: center !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.welcome-text {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center !important;
}

.welcome-text p:first-child {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.welcome-text p:last-child {
    font-size: 0.875rem;
    color: var(--equator) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Cards Section */
.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    margin-top: 2.5rem;
}

.card {
    display: block;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 2.5rem 2rem;
    border-top: 5px solid;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(18, 35, 85, 0.15);
}

.card.foundation {
    border-top-color: var(--blue-zodiac);
}

.card.school {
    border-top-color: var(--equator);
}

.card-content {
    text-align: center;
}

/* Card Icon */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card.foundation .card-icon {
    background-color: rgba(18, 35, 85, 0.1);
}

.card.school .card-icon {
    background-color: rgba(224, 199, 102, 0.1);
}

.card-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.card.foundation .card-icon svg {
    color: var(--blue-zodiac);
}

.card.school .card-icon svg {
    color: var(--equator);
}

/* Card Title */
.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card.foundation .card-title {
    color: var(--blue-zodiac);
}

.card.school .card-title {
    color: var(--finch);
}

/* Card Description */
.card-description {
    color: var(--shuttle-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* Card Features */
.card-features {
    margin-bottom: 1.5rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.card.foundation .feature-icon {
    color: var(--equator);
}

.card.school .feature-icon {
    color: var(--blue-zodiac);
}

.feature-text {
    color: var(--shuttle-gray);
}

/* Card CTA */
.card-cta {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.card.foundation .card-cta {
    color: var(--blue-zodiac);
}

.card.school .card-cta {
    color: var(--finch);
}

.card-cta svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (min-width: 768px) {
    .bg-pattern {
        padding: 4rem 2rem;
    }
    
    .logo-section {
        margin-bottom: 3.5rem;
    }
    
    .logo-image {
        width: 130px;
        height: 130px;
        padding: 0.75rem;
    }
    
    .main-heading {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }
    
    .welcome-text p:first-child {
        font-size: 1.0625rem;
    }
    
    .welcome-text p:last-child {
        font-size: 0.9375rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        padding: 0;
        margin-top: 3rem;
    }
    
    .card {
        padding: 3rem 2.5rem;
    }
    
    .card-icon {
        width: 5rem;
        height: 5rem;
    }
    
    .card-icon svg {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .card-title {
        font-size: 1.625rem;
    }
    
    .card-description {
        font-size: 0.9375rem;
    }
    
    .feature-item {
        font-size: 0.875rem;
    }
    
    .card-cta {
        font-size: 0.9375rem;
    }
    
    .footer {
        margin-top: 4rem;
    }
    
    .book-pattern {
        display: block;
    }
}

@media (min-width: 1024px) {
    .main-heading {
        font-size: 3.25rem;
    }
    
    .welcome-text p:first-child {
        font-size: 1.125rem;
    }
    
    .cards-container {
        max-width: 68rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .book-pattern {
        display: none;
    }
    
    .star-decoration {
        display: none;
    }
}

