/* ==========================================================================
   1. GLOBAL STYLES & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

h1, h2, h3 {
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. NAVIGATION BAR
   ========================================================================== */
header {
    background-color: #1a202c;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

nav h1 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: #ffffff;
}

/* ==========================================================================
   3. HERO BANNER
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-color: #2d3748;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    width: 90%;
    max-width: 800px;
}

.hero-text h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ==========================================================================
   4. CONTENT CONTAINERS & GRID SYSTEM
   ========================================================================== */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.intro-text {
    font-size: 1.2rem;
    color: #4a5568;
}

/* Modern Card Layout Matrix */
.services, .classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card, .class-card, .service-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* ==========================================================================
   5. CONTACT FORM STYLING
   ========================================================================== */
.contact-container {
    max-width: 600px;
    margin: 3rem auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

label {
    font-weight: 600;
    margin-bottom: -0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #4a5568;
}

button {
    background-color: #1a202c;
    color: #ffffff;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2d3748;
}

/* ==========================================================================
   6. FOOTER STYLING
   ========================================================================== */
footer {
    background-color: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    margin-top: 4rem;
}
