/*
================================================
  1. CSS Variables & Root Styles
================================================
*/
:root {
    /* Color Scheme - Neutral / Neumorphism */
    --bg-color: #E0E5EC;
    --text-color-dark: #333a4d;
    --text-color-light: #6a738b;
    --text-color-headings: #2c3344;
    --text-color-white: #FFFFFF;

    /* Primary & Accent Colors */
    --primary-color: #007bff;
    --primary-color-dark: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #536dfe;

    /* Neumorphism Shadows */
    --shadow-distance: 8px;
    --shadow-blur: 16px;
    --shadow-light: calc(var(--shadow-distance) * -1) calc(var(--shadow-distance) * -1) var(--shadow-blur) #ffffff;
    --shadow-dark: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) #a3b1c6;
    --shadow-inset-light: inset calc(var(--shadow-distance) * -0.5) calc(var(--shadow-distance) * -0.5) var(--shadow-blur) #ffffff;
    --shadow-inset-dark: inset calc(var(--shadow-distance) * 0.5) calc(var(--shadow-distance) * 0.5) var(--shadow-blur) #a3b1c6;

    /* Typography */
    --font-header: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Layout */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 30px;
    --header-height: 80px;
    --section-padding: 80px;
}

/*
================================================
  2. Base & Typography
================================================
*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color-dark);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 800;
    color: var(--text-color-headings);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

ul {
    list-style: none;
}

/*
================================================
  3. Layout & Helpers
================================================
*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color-headings);
    font-size: 2.8rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-color-light);
    font-size: 1.1rem;
}

/*
================================================
  4. Global Components (Buttons, Cards, Forms)
================================================
*/
/* --- Buttons --- */
.btn, button, input[type='submit'] {
    display: inline-block;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 35px;
    border-radius: var(--border-radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: var(--bg-color);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    color: var(--primary-color);
    outline: none;
}

.btn:hover, button:hover, input[type='submit']:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn:active, button:active, input[type='submit']:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
    color: var(--primary-color-dark);
}

.btn.btn-primary {
    background: var(--primary-color);
    color: var(--text-color-white);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn.btn-primary:hover {
    background: var(--primary-color-dark);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
}

.btn.btn-secondary {
    color: var(--secondary-color);
}

/* --- Cards --- */
.card {
    background: var(--bg-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-light), var(--shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
}

.card .card-image {
    margin-bottom: 1.5rem;
    border-radius: 50%; /* For circular instructor images */
    overflow: hidden;
    width: 150px;
    height: 150px;
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card.case-study-card .card-image, .card.resource-card .card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.card .card-content h3 {
    margin-bottom: 0.5rem;
}

/* --- Forms --- */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
    color: var(--text-color-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark), 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-color-light);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -25px;
    left: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
}


/*
================================================
  5. Header & Navigation
================================================
*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(224, 229, 236, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color-headings);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color-dark);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.burger-menu, .mobile-nav {
    display: none;
}

/*
================================================
  6. Section-Specific Styles
================================================
*/
/* --- Particle BG --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    color: var(--text-color-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-color-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
    color: var(--text-color-white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* --- About Us Section --- */
.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-us-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}

/* --- Statistics Section --- */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}

.stat-icon-wrapper .animated-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-header);
    color: var(--text-color-headings);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color-light);
}

/* --- Case Studies (Courses) --- */
.slider-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.case-study-card .card-image {
    height: 220px;
}

/* --- Innovation Section --- */
.innovation-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color-white);
}

.innovation-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(44, 51, 68, 0.8);
    z-index: 1;
}

.innovation-section .container {
    position: relative;
    z-index: 2;
}

.innovation-section .section-title, .innovation-section h3, .innovation-section p {
    color: var(--text-color-white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

.innovation-gallery img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- Instructors Section --- */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.instructor-card .card-image {
    width: 200px;
    height: 200px;
}

/* --- Careers Section --- */
.careers-section {
    text-align: center;
}
.careers-list {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: left;
}
.career-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}
.career-item h4 {
    color: var(--primary-color);
}

/* --- External Resources Section --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.resource-card h4 {
    color: var(--text-color-headings);
    margin-bottom: 1rem;
}
.resource-link {
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 1.5rem;
    display: inline-block;
}
.resource-link::after {
    content: ' →';
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}
.contact-info ul li {
    margin-bottom: 0.5rem;
}
.contact-info strong {
    color: var(--text-color-dark);
}

/*
================================================
  7. Footer
================================================
*/
.site-footer {
    background: #d1d9e6;
    padding: 4rem 0 2rem 0;
    color: var(--text-color-light);
}

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

.footer-col h4 {
    color: var(--text-color-headings);
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-color-light);
}

.footer-col a:hover {
    color: var(--primary-color);
}

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

/*
================================================
  8. Special Pages (Success, Privacy)
================================================
*/
.success-page,
.static-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.success-content,
.static-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-box {
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}
.success-box h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.static-page .static-content {
    padding: calc(var(--header-height) + 40px) 0 40px 0;
    align-items: flex-start;
    justify-content: flex-start;
}
.static-page .container {
    max-width: 800px;
}
.static-page h1 {
    margin-bottom: 2rem;
}

/*
================================================
  9. Responsive Design & Media Queries
================================================
*/
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 3rem; }
    h2, .section-title { font-size: 2.2rem; }

    .about-us-grid, .innovation-content, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-us-image {
        margin: 0 auto 2rem auto;
    }
    .contact-form-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .main-nav { display: none; }
    
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }
    
    .burger-menu span {
        width: 30px;
        height: 3px;
        background: var(--text-color-dark);
        border-radius: 5px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    .burger-menu.open span:nth-child(1) {
        transform: rotate(45deg);
    }
    .burger-menu.open span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    .burger-menu.open span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .mobile-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    .mobile-nav.open {
        display: block;
    }
    .mobile-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .mobile-nav li {
        width: 100%;
        text-align: center;
    }
    .mobile-nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    
    .statistics-grid, .instructors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .stat-number { font-size: 2rem; }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    h1 { font-size: 2rem; }
    h2, .section-title { font-size: 1.8rem; }
    
    .slider-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

[data-aos^="fade"][data-aos^="fade"].aos-animate {
  opacity: 1;
  transform: none !important;
}