/* CSS Variables */
:root {
    --primary-color: #FA6D10;
    --dark-bg: #1a1a1a;
    --darker-bg: #0a0a0a;
    --light-bg: #f4f4f4;
    --white: #fff;
    --text-dark: #333;
    --text-light: #ddd;
    --text-grey: #666;
    --max-width: 1200px;
    --spacing: 80px;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: var(--dark-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo .tagline {
    color: var(--white);
    font-size: 0.7rem;
    margin-top: -5px;
    letter-spacing: 1px;
}

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

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#home {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d2d2d 100%);
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        linear-gradient(135deg, var(--dark-bg) 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(250, 109, 16, 0.03) 10px,
            rgba(250, 109, 16, 0.03) 20px
        );
    pointer-events: none;
}

#home > div {
    position: relative;
    z-index: 1;
}

#home h2 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#home p {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* Buttons */
a[href^="#"] {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d45a0a;
    border-color: #d45a0a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 109, 16, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: var(--spacing) 20px;
}

#about {
    background-color: var(--light-bg);
}

#classes {
    background-color: var(--white);
}

#timetable {
    background-color: var(--light-bg);
}

#contact {
    background-color: var(--dark-bg);
    color: var(--white);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#contact h2 {
    color: var(--white);
}

section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-grey);
    line-height: 1.8;
}

/* Grid Layouts */
section > .container > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Cards */
section > .container > div > div {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

section > .container > div > div:hover {
    transform: translateY(-5px);
}

section > .container > div > div > div:first-child {
    font-size: 3rem;
    margin-bottom: 1rem;
}

section h3 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

section > .container > div > div > p {
    color: var(--text-grey);
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* Classes Specific */
#classes > .container > div {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#classes > .container > div > div {
    background: linear-gradient(135deg, #2d2d2d 0%, var(--dark-bg) 100%);
    color: var(--white);
    border-left: 4px solid var(--primary-color);
}

#classes > .container > div > div:hover {
    box-shadow: 0 10px 25px rgba(250, 109, 16, 0.3);
    border-left-width: 8px;
}

#classes h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#classes p {
    color: var(--text-light);
}

/* Timetable Specific */
#timetable > .container > p:first-of-type {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

#timetable > .container > div {
    max-width: 800px;
    margin: 0 auto 2rem;
}

#timetable h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

#timetable ul {
    list-style: none;
}

#timetable li {
    padding: 0.5rem 0;
    color: var(--text-grey);
}

#timetable > .container > p:last-child {
    font-style: italic;
    margin-top: 2rem;
}

/* Contact Specific */
#contact > .container > div {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

#contact h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

#contact h3:first-child {
    margin-top: 0;
}

#contact p {
    line-height: 1.8;
    color: var(--text-light);
    text-align: left;
}

#contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

#contact a:hover {
    color: var(--white);
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact input,
#contact textarea {
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    background-color: #2d2d2d;
    color: var(--white);
    font-size: 1rem;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #999;
}

#contact button {
    cursor: pointer;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    color: #888;
    text-align: center;
    padding: 2rem 20px;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.8rem;
    }
    
    #home h2 {
        font-size: 2.5rem;
    }
    
    #home p {
        font-size: 1.2rem;
    }
    
    a[href^="#"] {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    section > .container > div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #home h2 {
        font-size: 2rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}