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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: url('./assets/hero-bg.png') center/cover no-repeat,
                linear-gradient(180deg, #fafafa 0%, #e0e7ff 30%, #c7d2fe 70%, #a5b4fc 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ensure modal is hidden even if component CSS hasn't loaded yet */
.modal-overlay { display: none; }

/* Background decorative elements */
body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: 
        radial-gradient(ellipse 400px 200px at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 300px 150px at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 500px 250px at 50% 90%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}


/* Hero Section */
.hero-section {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-radius: 25px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .certificate-preview { height: 200px; }
    .certificate-preview img {
        max-height: 280px;
        border-radius: 16px 16px 0 0;
        width: calc(100vw - 32px);
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .certificate-preview { height: 150px; }
    .certificate-preview img {
        max-height: 200px;
        border-radius: 16px 16px 0 0;
        width: calc(100vw - 32px);
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* Animation for smooth loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.nav-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Certificate Preview Section */
.certificate-preview {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: auto;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.certificate-preview img {
    max-width: 500px;
    max-height: 350px;
    width: auto;
    height: auto;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    margin-bottom: 0;
}

.certificate-preview img:hover {
    transform: scale(1.05);
}

@keyframes peekUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adjust hero section to accommodate certificate preview */
.hero-section {
    min-height: calc(100vh - 200px);
    padding-bottom: 250px;
}

