/* Home Page Styles */

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

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '⭐';
    position: fixed;
    top: 10%;
    left: 5%;
    font-size: 2rem;
    opacity: 0.3;
    animation: twinkle-star 3s ease-in-out infinite;
    pointer-events: none;
}

body::after {
    content: '🌟';
    position: fixed;
    top: 20%;
    right: 8%;
    font-size: 2.5rem;
    opacity: 0.3;
    animation: twinkle-star 4s ease-in-out infinite;
    animation-delay: 1s;
    pointer-events: none;
}

@keyframes twinkle-star {
    0%, 100% { opacity: 0.2; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(1.2) rotate(180deg); }
}

.home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles - Professional & Modern */
.header {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo h1 {
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    font-family: 'Poppins', sans-serif;
}

.logo p {
    color: #718096;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.25rem;
    font-family: 'Poppins', sans-serif;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.4rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.nav a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.12);
}

.nav a.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.messages-container {
    margin-bottom: 2rem;
}

.messages-container .alert {
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.messages-container .alert-success {
    border-left: 4px solid #48bb78;
}

.messages-container .alert-error {
    border-left: 4px solid #f56565;
}

.messages-container .alert-warning {
    border-left: 4px solid #ed8936;
}

.messages-container .alert-info {
    border-left: 4px solid #4299e1;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content > p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Portal Selection */
.portal-selection h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.portal-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.portal-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    position: relative;
}

.portal-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.portal-card h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.portal-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.portal-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.portal-card li {
    padding: 0.6rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.portal-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
    font-size: 1.1rem;
}

.portal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Child Portal Styling - Super Fun & Colorful! */
.child-portal {
    border-left: 5px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 50%, #fff0f5 100%);
    position: relative;
    overflow: hidden;
    animation: gentle-glow 3s ease-in-out infinite alternate;
}

@keyframes gentle-glow {
    0% { box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3); }
    100% { box-shadow: 0 15px 50px rgba(255, 107, 107, 0.5); }
}

.child-portal::before {
    content: '✨🌟⭐🎈🌈🦄💫';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.child-portal .portal-icon {
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 10px rgba(255, 107, 107, 0.3));
}

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

.child-portal h4 {
    color: #d63447;
    font-size: 1.8rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.child-portal p {
    color: #e63946;
    font-weight: 600;
}

.child-portal li {
    color: #2d3748;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.child-portal li:hover {
    transform: translateX(5px);
}

.child-portal li:before {
    content: "🌟";
    color: #ff6b6b;
    font-size: 1.2rem;
    animation: twinkle 1.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

.child-portal .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ffb3ba 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: pulse-button 2s ease-in-out infinite;
}

@keyframes pulse-button {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.child-portal .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252 0%, #ff7979 50%, #ff9ff3 100%);
}

.child-portal .btn-secondary {
    background: white;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    font-weight: 600;
}

.child-portal .btn-secondary:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Staff Portal Styling */
.staff-portal {
    border-left: 5px solid #667eea;
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 2rem;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2d3748;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-item:nth-child(1) {
    border-top: 3px solid #48bb78;
}

.feature-item:nth-child(2) {
    border-top: 3px solid #ff6b6b;
}

.feature-item:nth-child(3) {
    border-top: 3px solid #667eea;
}

.feature-item:nth-child(4) {
    border-top: 3px solid #ed8936;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.feature-icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature-item p {
    color: #718096;
    line-height: 1.6;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 4rem 2rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.compliance-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.badge:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.badge:nth-child(1) {
    animation: badge-glow 3s ease-in-out infinite;
}

.badge:nth-child(2) {
    animation: badge-glow 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.badge:nth-child(3) {
    animation: badge-glow 3s ease-in-out infinite;
    animation-delay: 1s;
}

.badge:nth-child(4) {
    animation: badge-glow 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }
}

.badge-icon {
    color: #48bb78;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 0;
}

.footer-top {
    padding: 4rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    font-family: 'Poppins', sans-serif;
}

.footer-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.f-badge {
    background: rgba(102, 126, 234, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.65rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #a5b4fc;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #667eea;
}

.footer-contact-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: #a5b4fc;
}

.footer-bottom {
    padding: 1.5rem 2rem;
    background: #080f1e;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-desc { max-width: 100%; }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        gap: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        gap: 1rem;
        text-align: left;
        padding: 1rem 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.7rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        gap: 0;
        z-index: 99;
    }
    
    .nav.active {
        max-height: 400px;
    }
    
    .nav a {
        padding: 1rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.95rem;
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .nav a::before {
        display: none;
    }
    
    .nav a:hover {
        background: rgba(102, 126, 234, 0.1);
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content > p {
        font-size: 1rem;
    }
    
    .portal-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portal-card {
        padding: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header-content {
        padding: 1rem 2rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: 0.25rem;
    }
    
    .nav a {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .portal-cards {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
