:root {
    /* Colors */
    --primary-color: #2A4D9B;
    --accent-color: #FF6F61;
    --light-accent: #FFE6E3;
    --background-color: #FDF9F6;
    --dark-color: #333333;
    --light-color: #FFFFFF;

    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Raleway', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    background-color: var(--background-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5efe9 0%, #f2e8db 100%);
}

.canvas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-xl);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

h2:hover::after {
    transform: scaleX(1.5);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-md);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover:before {
    width: 300%;
    height: 300%;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.primary-btn:hover {
    background-color: #1c3978;
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header Styles */
.header {
    background-color: transparent;
    padding: var(--space-md) 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
    position: fixed;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    z-index: 101;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.6rem;
    font-family: var(--heading-font);
}

.logo-text {
    position: relative;
    overflow: hidden;
}

.logo-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.logo a:hover .logo-text::before {
    transform: translateX(0);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.main-nav a {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding: var(--space-xs) 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 102;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition-normal);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    animation: fadeInLeft 1s ease-out;
}

.hero-image {
    flex: 1;
    position: relative;
    min-width: 300px;
    animation: fadeInRight 1s ease-out;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transform: rotate(2deg);
    transition: all var(--transition-normal);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: var(--radius-lg);
    z-index: -1;
    transform: rotate(-2deg);
    transition: all var(--transition-normal);
}

.hero-image:hover img {
    transform: rotate(0);
}

.hero-image:hover::before {
    transform: rotate(0);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .hero-content,
    .hero-image {
        min-width: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(2deg);
    }
}

/* About Section */
.about-us {
    padding: var(--space-xl) 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-image img {
    transition: transform 1.2s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Courses Section */
.featured-courses {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, rgba(42, 77, 155, 0.05) 0%, rgba(255, 111, 97, 0.05) 100%);
    margin: var(--space-xl) 0;
    border-radius: var(--radius-lg);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.course-card {
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    transform: translateY(0);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    overflow: hidden;
    height: 200px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: var(--space-lg);
}

.course-link {
    display: inline-block;
    margin-top: var(--space-md);
    font-weight: 600;
    color: var(--accent-color);
    transition: all var(--transition-normal);
}

.course-link i {
    margin-left: var(--space-xs);
    transition: transform var(--transition-normal);
}

.course-link:hover i {
    transform: translateX(5px);
}

.courses-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

[data-aos] {
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-xl) 0;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.testimonial-content {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--light-color);
    transform-origin: center;
    transform: translateX(-50%) rotate(45deg);
}

.testimonial-author {
    margin-top: var(--space-lg);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-lg);
}

.testimonial-prev,
.testimonial-next {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: var(--space-xs);
    transition: color var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    color: var(--accent-color);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
    margin: 0 var(--space-md);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact-preview {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, rgba(42, 77, 155, 0.05) 0%, rgba(255, 111, 97, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-map {
    flex: 2;
    min-width: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.contact-map:hover iframe {
    transform: scale(1.02);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-accent);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.contact-item:hover i {
    background-color: var(--accent-color);
    color: var(--light-color);
    transform: scale(1.1);
}

.contact-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light-color);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    animation: slideUp 0.5s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Contact Page */
.contact-page {
    padding: 120px 0 var(--space-xl);
}

.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-form-container {
    flex: 2;
    min-width: 300px;
}

.contact-form {
    background-color: var(--light-color);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid #e1e1e1;
    border-radius: var(--radius-md);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 77, 155, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.checkbox-group input {
    margin-top: 5px;
}

.form-submit {
    text-align: center;
}

/* Courses Page */
.courses-page {
    padding: 120px 0 var(--space-xl);
}

.course-filters {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-btn {
    padding: var(--space-sm) var(--space-md);
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.course-detail {
    padding: var(--space-lg);
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.course-meta-item {
    display: flex;
    align-items: center;
}

.course-meta-item i {
    color: var(--accent-color);
    margin-right: var(--space-xs);
}

/* Instructors Page */
.instructors-page {
    padding: 120px 0 var(--space-xl);
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.instructor-card {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.instructor-image {
    height: 250px;
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.1);
}

.instructor-info {
    padding: var(--space-lg);
}

.instructor-name {
    margin-bottom: var(--space-xs);
}

.instructor-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

/* Thank You Page */
.thank-you-page {
    padding: 120px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.thank-you-content::before,
.thank-you-content::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.thank-you-content::before {
    top: -20px;
    left: -20px;
    animation: float 6s ease-in-out infinite;
}

.thank-you-content::after {
    bottom: -20px;
    right: -20px;
    animation: float 8s ease-in-out infinite;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: var(--space-lg);
}

.thank-you-message {
    margin-bottom: var(--space-lg);
}

.thank-you-cta {
    margin-top: var(--space-lg);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(15px, -15px);
    }
}

/* 404 Page */
.error-page {
    padding: 120px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

.error-code::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.error-message {
    margin-bottom: var(--space-lg);
}

.error-cta {
    margin-top: var(--space-lg);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .hero {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-image::before {
        display: none;
    }

    .hero-buttons{
        justify-content: center;
    }

}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--light-color);
        padding: 120px var(--space-lg) var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        z-index: 101;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .contact-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .footer-links {
        justify-content: center;
    }

    .contact-form-container {
        order: -1;
    }
}

@media (max-width: 576px) {
    h1{
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .course-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-content {
        padding: var(--space-md);
    }
}