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

:root {
    --primary: #e63946;
    --primary-dark: #b91d1d;
    --bg-dark: #fbfbfc; /* Light gray background */
    --bg-second: #edf0f2; /* Secondary section background */
    --text-light: #1e293b; /* Dark text for light mode */
    --text-muted: #64748b; /* Muted slate text */
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Sections */
section {
    padding: 100px 10%;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff; /* Solid White for professional look with JPG logo */
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 8px 10%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Base height */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo-img {
    height: 38px; /* Shrunk height on scroll */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* Offset for fixed header */
}

.hero h1 {
    font-size: 3.5rem;
    color: #1a1a1b;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    background: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Formations Section */
.formations-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.formation-item {
    background: var(--bg-second);
    padding: 15px 25px;
    border-radius: 50px;
    border-left: 4px solid var(--primary);
    font-weight: 600;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-form {
    background: var(--glass);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 5px;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.about-gallery {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
}

.about-gallery img {
    width: 100%; 
    height: 300px; 
    object-fit: cover; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }
}

/* Brands Banner */
.brand-banner {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: white;
    padding: 10px;
}

/* Footer */
footer {
    padding: 50px 10%;
    text-align: center;
    background: white;
    border-top: 1px solid var(--glass-border);
}

footer p {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    nav {
        display: none; /* Mobile menu needed logic later */
    }
}
