﻿

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

:root {
    --header-height: 150px; /* Match your .logo-img max-height */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    margin-left: 1rem;
}
.hamburger span {
    height: 4px;
    width: 100%;
    background: #20b2aa;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.4s;
    display: block;
}





/* Header & Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #20b2aa;
}




@media (max-width: 992px) {
    :root { --header-height: 80px; }

}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
}
@media (max-width: 480px) {
    :root { --header-height: 50px; }
}

.logo-img {
    max-height: calc(var(--header-height) - 20px); /* leave some padding */
    width: auto;
    height: auto;
    display: block;
	object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-links a {
        text-decoration: none;
        color: #64748b;
        font-weight: 500;
        transition: color 0.3s;
    }

        .nav-links a:hover {
            color: #20b2aa;
        }

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Show hamburger on mobile, hide nav-links by default */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height, 60px);
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        z-index: 2000;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #e2e8f0;
    }
    .cta-buttons {
        display: none;
    }
}

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

.btn-primary {
    background: #20b2aa;
    color: white;
}

    .btn-primary:hover {
        background: #1a9b94;
        transform: translateY(-2px);
    }

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

    .btn-secondary:hover {
        background: #20b2aa;
        color: white;
    }

/* Hero Section */
.hero {
    background: linear-gradient(-45deg, #20b2aa, #1e40af, #0f172a, #64748b);
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite;
    color: white;
    padding-top: var(--header-height);
    padding: 8rem 0 4rem;
    text-align: center;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

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

.service-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Training Section */
.training {
    padding: 6rem 0;
    background: #f8fafc;
}

.training-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.training-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.training-features {
    list-style: none;
    margin: 2rem 0;
}

    .training-features li {
        padding: 0.5rem 0;
        position: relative;
        padding-left: 2rem;
    }

        .training-features li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #10b981;
            font-weight: bold;
        }

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

.course-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

    .course-card h4 {
        color: #20b2aa;
        margin-bottom: 0.5rem;
    }

.course-price {
    font-weight: bold;
    color: #10b981;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #20b2aa;
}

.stat-label {
    color: #64748b;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #1e293b;
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 1rem;
    }

    .form-group textarea {
        height: 120px;
        resize: vertical;
    }

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #20b2aa;
}

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

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

        .footer-section ul li a {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.3s;
        }

            .footer-section ul li a:hover {
                color: white;
            }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    overflow-y: auto;
    max-height: 100vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    max-height: 90vh;   /* Prevent content from exceeding viewport */
    overflow-y: auto;   /* Enable scrolling inside modal */
    box-sizing: border-box;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover {
        color: black;
    }

