:root {
    --primary-blue: #1C75BC;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --light-gray: #f9f9f9;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utils */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-blue { color: var(--primary-blue); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.opacity-8 { opacity: 0.8; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; }
.section-title { font-size: 2.5rem; margin-bottom: 2rem; position: relative; }

/* Loader */
.loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loader-logo { width: 250px; height: auto; filter: brightness(0) invert(1); }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}
.header.scrolled {
    background-color: var(--white);
    padding: 1rem 5%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.logo-img { height: 90px; transition: 0.3s; }
.header.scrolled .logo-img { height: 70px; }
.header:not(.scrolled) .logo-img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; }
.nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.header.scrolled .nav a { color: var(--black); }
.nav a:hover { color: var(--primary-blue); }

.btn-nav { padding: 0.6rem 1.5rem; border-radius: 4px; border: 1px solid var(--white); }
.header.scrolled .btn-nav { border-color: #ddd; }
.btn-primary-nav { background: var(--primary-blue); border: none !important; color: var(--white) !important; }

/* Hero */
.hero { position: relative; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s infinite alternate;
}
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.hero-content { position: relative; z-index: 10; color: var(--white); }
.hero-title { font-size: 4.5rem; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 3rem; max-width: 600px; opacity: 0.9; }
.hero-btns { display: flex; gap: 1.5rem; }

.btn { display: inline-block; padding: 1rem 2.5rem; text-decoration: none; font-weight: 700; transition: 0.3s; border-radius: 4px; }
.btn-primary { background: var(--primary-blue); color: var(--white); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-primary:hover { background: #15609e; }
.btn-outline:hover { background: var(--white); color: var(--black); }

/* Sections */
.about, .services, .contact { padding: 10rem 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image { border-radius: 8px; overflow: hidden; height: 450px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Vision V2 */
.vision-v2 { padding: 10rem 0; background-color: var(--light-gray); }
.vision-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; align-items: center; }
.vision-text { font-size: 1.3rem; margin-bottom: 3rem; color: #444; font-weight: 300; }
.vision-stats { display: flex; gap: 4rem; }
.v-stat { border-left: 3px solid var(--primary-blue); padding-left: 1.5rem; }
.v-num { display: block; font-size: 2rem; font-weight: 900; color: var(--primary-blue); }
.v-stat p { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: #888; }
.vision-image { height: 500px; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.vision-image img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.service-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.4s; }
.service-card:hover { transform: translateY(-10px); }
.card-img { height: 300px; background-size: cover; background-position: center; }
.card-content { padding: 3rem; }
.btn-text { background: none; border: none; color: var(--primary-blue); font-weight: 700; cursor: pointer; margin-top: 1.5rem; display: block; }

/* Portfolio Pro */
.portfolio-pro { padding: 10rem 0; background-color: var(--white); }
.portfolio-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-card { position: relative; height: 350px; border-radius: 8px; overflow: hidden; cursor: pointer; }
.p-card-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.5s; }
.p-card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: var(--white); transform: translateY(10px); opacity: 0; transition: 0.3s; }
.portfolio-card:hover .p-card-img { transform: scale(1.1); }
.portfolio-card:hover .p-card-overlay { transform: translateY(0); opacity: 1; }
.p-card-overlay span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-blue); font-weight: 700; }

/* Moodle CTA */
.moodle-cta { padding: 8rem 0; background-color: var(--black); color: var(--white); }
.moodle-cta h2 { margin-bottom: 1rem; }
.moodle-cta p { margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.detail-item { margin-bottom: 2rem; }
.detail-item strong { color: var(--primary-blue); display: block; margin-bottom: 0.5rem; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; border: 1px solid #eee; border-radius: 4px; font-family: var(--font-main); }
.form-success { padding: 1rem; background: #e7f9ee; border: 1px solid #25d366; color: #25d366; margin-top: 1rem; display: none; border-radius: 4px; }

/* Standards */
.standards { padding: 10rem 0; background-color: var(--light-gray); }
.section-tag { font-size: 0.8rem; font-weight: 700; color: var(--primary-blue); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1rem; }
.standards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; }
.standard-item { background: var(--white); padding: 3rem; text-align: center; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border: 1px solid #eee; }
.standard-code { display: block; font-size: 1.5rem; font-weight: 900; color: var(--primary-blue); margin-bottom: 0.5rem; }
.standard-item p { font-size: 0.8rem; color: #888; font-weight: 600; }

/* Team */
.team { padding: 10rem 0; background-color: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 4rem; }
.team-card { text-align: left; }
.team-img { height: 400px; background-size: cover; background-position: center; border-radius: 4px; margin-bottom: 1.5rem; filter: grayscale(1); transition: 0.4s; }
.team-card:hover .team-img { filter: grayscale(0); }
.team-info h4 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.team-info p { font-size: 0.9rem; color: var(--primary-blue); font-weight: 500; }

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none; border-radius: 4px;
    font-size: 1.5rem; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    z-index: 999; opacity: 0; visibility: hidden;
    transition: 0.3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--black); }

/* Footer Pro */
.footer-pro { padding: 8rem 0 3rem; background: #050505; color: var(--white); }
.footer-grid-pro { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 5rem; padding-bottom: 5rem; border-bottom: 1px solid #111; }
.footer-logo-pro { height: 50px; filter: brightness(0) invert(1); margin-bottom: 2rem; }
.footer-col h4 { margin-bottom: 2rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-blue); }
.footer-col a { display: block; color: #666; text-decoration: none; margin-bottom: 1rem; font-size: 0.9rem; transition: 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom-pro { padding-top: 3rem; text-align: center; color: #444; font-size: 0.8rem; }

/* Modals */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 10000; display: none; justify-content: center; align-items: center; }
.modal-content { background: var(--white); padding: 4rem; border-radius: 8px; max-width: 600px; width: 90%; position: relative; }
.close-modal { position: absolute; top: 1.5rem; right: 2rem; font-size: 2rem; cursor: pointer; color: #ccc; }

/* Mobile */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 30px; height: 2px; background: var(--white); transition: 0.3s; }
.header.scrolled .menu-toggle span { background: var(--black); }

.mobile-nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 99; transition: 0.5s; }
.mobile-nav.active { right: 0; }
.mobile-nav a { font-size: 2rem; font-weight: 700; color: var(--black); text-decoration: none; margin: 1rem 0; }

@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .footer-grid-pro { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .menu-toggle { display: flex; }
    .about-grid, .vision-container, .services-grid, .portfolio-grid-v2, .contact-grid, .footer-grid-pro { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}