:root {
    /* Tetrad Color Scheme */
    --primary: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    --secondary: #e74c3c;
    --secondary-dark: #c0392b;
    --secondary-light: #ec7063;
    --accent1: #2ecc71;
    --accent1-dark: #27ae60;
    --accent1-light: #58d68d;
    --accent2: #f39c12;
    --accent2-dark: #d35400;
    --accent2-light: #f5b041;
    
    /* Neutral Colors */
    --dark: #2c3e50;
    --dark-80: rgba(44, 62, 80, 0.8);
    --dark-50: rgba(44, 62, 80, 0.5);
    --light: #ecf0f1;
    --light-80: rgba(236, 240, 241, 0.8);
    --light-50: rgba(236, 240, 241, 0.5);
    --white: #ffffff;
    --black: #000000;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --blur-effect: 8px;
    
    /* Typography */
    --heading-font: 'Inter', sans-serif;
    --body-font: 'IBM Plex Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --content-margin: 30px 0;
    
    /* Borders */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: var(--dark-80);
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* Glassmorphism Effect */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-effect));
    -webkit-backdrop-filter: blur(var(--blur-effect));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.glassmorphism:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

/* Buttons */
.btn {
    font-family: var(--heading-font);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-outline-light {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Header/Navbar */
header {
    padding: 15px 0;
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar {
    padding: 0;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
}

.navbar-nav .nav-link {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark);
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: -1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Card Styles */
.card {
    height: 100%;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    flex: 1;
    width: 100%;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.badge {
    font-family: var(--body-font);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}

/* Projects/Courses Section */
.project-card {
    overflow: hidden;
}

.project-card .card-image {
    height: 300px;
}

/* Statistics Section */
.stat-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.stat-description {
    color: var(--dark-80);
}

/* Resources Section */
.resource-card {
    height: 100%;
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    margin-bottom: 1rem;
}

.resource-list a {
    color: var(--primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.resource-list a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* News Section */
.news-card {
    overflow: hidden;
}

.news-card .card-image {
    height: 250px;
}

.news-date {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-50);
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.news-card p {
    color: var(--dark-80);
}

/* Testimonials Section */
.testimonial-card {
    position: relative;
    height: 100%;
}

.testimonial-quote {
    font-style: italic;
    position: relative;
    padding: 0 0 0 2rem;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -15px;
    font-size: 4rem;
    color: var(--primary-light);
    font-family: serif;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--dark-50);
    margin-bottom: 0;
}

/* FAQ Section */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
}

.accordion-button {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem;
    background-color: transparent;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-light);
}

.accordion-button::after {
    background-size: 1.2rem;
    transition: all var(--transition-fast);
}

.accordion-body {
    padding: 1rem 1.2rem 1.5rem;
}

/* Contact Section */
.contact-info {
    height: 100%;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info ul li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-info ul li span:first-child {
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    color: var(--primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--light);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-select {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--light);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1rem;
    height: auto;
    transition: all var(--transition-fast);
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-check-input {
    border-color: var(--primary-light);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Footer Section */
.footer-section {
    background-color: var(--dark);
    color: var(--light);
    border-radius: 0;
}

.footer-section h3, .footer-section h4, .footer-section h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: var(--light-80);
}

.footer-links ul {
    padding: 0;
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--light);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-newsletter input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

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

.footer-newsletter .social-links a {
    color: var(--light);
    margin-right: 1.5rem;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.footer-newsletter .social-links a:hover {
    color: var(--primary-light);
}

.copyright-section {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--light-80);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius-md);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.course-category h4, .course-meta p, .project-meta p {
    margin-bottom: 1rem;
}

.course-meta, .project-meta {
    margin-top: 1.5rem;
}

/* Particle Animation */
.particle-animation {
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    padding: 15px 0;
    z-index: 9999;
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cookie-content p {
    color: var(--white);
    margin-bottom: 0;
    margin-right: 20px;
}

/* Success Page */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    text-align: center;
}

.success-card {
    max-width: 600px;
    width: 100%;
    padding: 3rem;
}

.success-icon {
    font-size: 5rem;
    color: var(--accent1);
    margin-bottom: 2rem;
}

.success-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.success-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.page-content {
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul, .page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-section p {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-section .btn {
        margin: 0 auto;
    }
    
    .card-image {
        height: 200px;
    }
    
    .project-card .card-image {
        height: 220px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem;
    }
}