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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
}

.logo-section img {
    height: 70px;
    width: auto;
}

.logo-section h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.logo-section .subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s, transform 0.3s;
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* 3D Showcase Section */
.showcase {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, #e0f2fe 100%);
    text-align: center;
}

.showcase h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.showcase > .container > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.model-viewer-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

#model-viewer {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    cursor: grab;
    position: relative;
}

#model-viewer:active {
    cursor: grabbing;
}

.viewer-instructions {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
}

.viewer-instructions p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.95;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    color: var(--text-light);
}

.inline-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.inline-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    border-color: var(--accent-color);
}

.stat-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.stat-item p {
    color: var(--text-light);
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-left: 4px solid transparent;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-8px);
    border-left-color: var(--secondary-color);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
}

/* Eligibility Section */
.eligibility {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: center;
}

.eligibility h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.eligibility p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3,
.contact-form-placeholder h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--accent-color);
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-form-placeholder {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.contact-form-placeholder:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.contact-form-placeholder p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-form-placeholder strong {
    color: var(--secondary-color);
}

.email-highlight {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--background-light) 0%, #e0f2fe 100%);
    border-radius: 8px;
    border: 2px solid var(--accent-color);
}

.email-highlight a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.email-highlight a:hover {
    color: var(--primary-color);
}

/* Learn More Section */
.learn-more {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.learn-more h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.learn-more-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.learn-more-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.learn-more-content > p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.learn-more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 1.5rem;
}

.learn-more-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.learn-more-button svg {
    transition: transform 0.3s ease;
}

.learn-more-button:hover svg {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    #model-viewer {
        height: 400px;
    }
}

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .about h2,
    .services h2,
    .eligibility h2,
    .contact h2,
    .showcase h2 {
        font-size: 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    #model-viewer {
        height: 300px;
    }
}
