/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --primary-dark: #e85d2c;
    --secondary: #004e89;
    --accent: #00b4d8;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.12);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown.active .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--white);
    min-width: 650px;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    max-height: 500px;
    overflow-y: auto;
}

/* Custom Scrollbar */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.course-category {
    background: var(--light);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    min-width: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
}

.category-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-courses {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.category-courses li a {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--text);
    font-size: 0.85rem;
    transition: all 0.3s;
    border-radius: 6px;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.category-courses li a:hover {
    background: var(--white);
    color: var(--primary);
    padding-left: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-courses li a::after {
    display: none;
}

.enroll-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero Section with Slider */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 6rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
}

.hero-slide {
    display: block;
    animation: fadeInSlide 0.8s ease-out;
}

.hero-slide.active {
    animation: fadeInSlide 0.8s ease-out;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-btn.prev {
    margin-left: 0;
}

.slider-btn.next {
    margin-right: 0;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.slider-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    padding: 0 4rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    animation: slideInLeft 0.8s ease-out;
}

.hero-text .highlight {
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInLeft 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: slideInLeft 1.2s ease-out;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--white);
    color: var(--secondary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary);
}

.hero-image {
    animation: slideInRight 0.8s ease-out;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.3));
}

/* Stats Section */
.stats-section {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    background: var(--light);
    padding: 5rem 3rem;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

/* Section Styles */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.course-header {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.course-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.course-card h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.course-body {
    padding: 0 2.5rem 2.5rem 2.5rem;
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.course-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-curriculum-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.view-curriculum-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Gallery Section */
.gallery-section {
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #e0e0e0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    max-width: 1000px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 25px;
    padding: 3rem;
    position: relative;
    animation: slideUp 0.4s;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-modal:hover {
    background: var(--light);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2.5rem;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 1rem;
}

.modal-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Curriculum (accordion-ready) */
.curriculum-content {
    display: grid;
    gap: 0.6rem; /* reduced global gap between modules */
}

/* Base module card (made compact) */
.curriculum-module {
    background: var(--light);
    /* container padding removed to allow header/content control */
    padding: 0;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 0.55rem;
}

/* if modal version exists keep slightly different look */
.modal .curriculum-module {
    border-left: 4px solid var(--primary);
    border-radius: 15px;
}

/* small header inside each module (created by JS) */
.curriculum-module .module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border-radius: 10px;
    min-height: 36px;
}

/* header title */
.curriculum-module .module-header h3,
.curriculum-module .module-header h4 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.05;
    font-weight: 700;
    color: var(--secondary);
}

/* toggle icon/button */
.curriculum-module .module-toggle {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transform-origin: center;
    transition: transform 0.22s ease;
    background: transparent;
    border: none;
}

/* rotate icon when open */
.curriculum-module.open .module-toggle {
    transform: rotate(180deg);
}

/* module content wrapper (collapsible) */
.curriculum-module .module-content {
    padding: 0.35rem 0.9rem 0.85rem 0.9rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, padding 0.2s ease;
}

/* list inside content */
.curriculum-module .module-content ul {
    margin: 0.25rem 0 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.25rem;
}

/* compact list item */
.curriculum-module .module-content li {
    padding-left: 1.2rem;
    position: relative;
    color: var(--text);
    line-height: 1.4;
    padding-top: 0.18rem;
    padding-bottom: 0.18rem;
    font-size: 0.95rem;
}

/* check icon */
.curriculum-module .module-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* focus style for accessibility */
.curriculum-module .module-header:focus {
    outline: 3px solid rgba(255,107,53,0.12);
    outline-offset: 3px;
}

/* Remove gap between modules (tight stacking) */
.curriculum-module + .curriculum-module {
    margin-top: 0;
}

/* Modal-specific content styling (if curriculum used in modal) */
.modal .curriculum-module .module-content {
    padding: 0.6rem 1rem 1rem 1rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
}

.contact-form h3 {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 2rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Move slider buttons outside content area on tablets */
    .slider-controls {
        padding: 0 0.5rem;
    }
}

/* Tablet specific fixes (760px to 960px) */
@media (max-width: 960px) and (min-width: 760px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
    
    .enroll-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .logo-name {
        font-size: 1.3rem;
    }
    
    .logo-tagline {
        font-size: 0.65rem;
    }
    
    /* Adjust dropdown for tablets */
    .dropdown-menu {
        min-width: 90vw;
        max-width: 90vw;
        left: 50%;
        right: auto;
    }
}

/* For screens between 1024px and 1200px */
@media (max-width: 1200px) and (min-width: 961px) {
    .dropdown-menu {
        min-width: 600px;
        max-width: 700px;
    }
    
    .dropdown-menu-grid {
        gap: 1rem;
    }
    
    .course-category {
        padding: 0.8rem;
    }
    
    .category-courses li a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 1rem;
        gap: 1.5rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Dropdown Styles */
    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0 !important;
        right: 0;
        transform: none !important;
        width: 100%;
        min-width: auto;
        max-width: 100%;
        box-shadow: none;
        margin-top: 0.5rem;
        margin-left: 0;
        margin-right: 0;
        background: var(--light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        border-radius: 10px;
    }

    .dropdown.active .dropdown-menu {
        max-height: 600px;
        padding: 1rem;
        overflow-y: auto;
        transform: none !important;
    }
    
    .dropdown-menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .course-category {
        background: var(--white);
        width: 100%;
        margin: 0;
    }
    
    .category-header {
        font-size: 0.95rem;
        text-align: left;
    }

    .category-courses {
        width: 100%;
    }

    .category-courses li {
        width: 100%;
    }

    .category-courses li a {
        padding: 0.7rem 0.8rem;
        background: var(--light);
        margin-bottom: 0.3rem;
        border-radius: 6px;
        font-size: 0.9rem;
        width: 100%;
        text-align: left;
        display: block;
    }

    .category-courses li a:hover {
        background: var(--primary);
        color: var(--white);
        padding-left: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .hero {
        padding: 4rem 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    /* Hide slider arrows on mobile, show dots only */
    .slider-controls {
        display: none;
    }
    
    /* Make dots more prominent on mobile */
    .slider-dots {
        bottom: 1rem;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dot.active {
        width: 25px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .nav-container {
        padding: 1.2rem 1.5rem;
    }
    
    /* Fix logo on mobile */
    .logo-img {
        height: 40px;
    }
    
    .logo-name {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
}




  .tech-section {
  background-color: #f3f8ff; /* light blue background */
  padding: 2rem 0;
  text-align: center;
}

.tech-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 700;
}

.tech-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 12px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

/* Individual Colors for Each Technology */
.tech-badge.one {
  background: #306998; /* Python blue */
}
.tech-badge.two {
  background: #000000; /* Flask black */
}
.tech-badge.three {
  background: #092e20; /* Django dark green */
}
.tech-badge.four {
  background: #ff6f61; /* REST API coral */
}
.tech-badge.five {
  background: #f7b500; /* Database yellow */
}

/* Hover Effect */
.tech-badge:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
@media (max-width: 480px) {
  .tech-badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .tech-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}




    
            .technologies-learned {
              margin-top: 4rem;
              text-align: center;
              padding: 0 1rem;
            }

            .tech-title {
              font-size: 2.4rem;
              font-weight: 700;
              color: var(--dark);
              margin-bottom: 2rem;
            }

            .tech-cards-container {
              display: grid;
              grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
              gap: 1.5rem;
            }

            /* Individual Card */
            .tech-card {
              background: #fff;
              border-radius: 12px;
              padding: 1.4rem 1rem;
              border: 2px solid rgba(0, 0, 0, 0.08);
              text-decoration: none;
              color: var(--dark);
              font-size: 1rem;
              font-weight: 600;
              transition: all 0.3s ease;
              display: flex;
              align-items: center;
              justify-content: center;
              flex-direction: column;
            }

            .tech-card img {
              width: 55px;
              height: 55px;
              margin-bottom: 0.7rem;
              object-fit: contain;
              transition: transform 0.3s ease;
            }

            /* Hover Animation */
            .tech-card:hover {
              border-color: var(--primary);
              transform: translateY(-6px);
              box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
            }
            .tech-card:hover img {
              transform: scale(1.1);
            }

            /* ===========================
   RESPONSIVE BREAKPOINTS
=========================== */

            /* Tablets */
            @media (max-width: 900px) {
              .tech-title {
                font-size: 2rem;
              }

              .tech-cards-container {
                grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
                gap: 1.2rem;
              }
            }

            /* Large Phones */
            @media (max-width: 600px) {
              .tech-cards-container {
                grid-template-columns: repeat(3, 1fr);
              }
            }

            /* Small Phones */
            @media (max-width: 420px) {
              .tech-cards-container {
                grid-template-columns: repeat(2, 1fr);
              }

              .tech-card {
                padding: 1rem;
              }

              .tech-card img {
                width: 45px;
                height: 45px;
              }
            }

            /* Hover Text Overlay (Hidden by default) */
.tech-card {
  position: relative;
  overflow: hidden;
}

/* Hidden overlay */
.tech-hover-text {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: bottom 0.35s ease;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Show overlay on hover */
.tech-card:hover .tech-hover-text {
  bottom: 0;
}

          

.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.social-icons img:hover {
    transform: scale(1.15);
}


.map-container {
    width: 100%;
    height: 0;
    padding-bottom: 65%; /* Controls aspect ratio */
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Fix Contact Section responsiveness */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* Default (desktop/tablet) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Stack vertically on small screens */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


.contact-info,
.contact-form {
    width: 100%;
    max-width: 100%;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap; /* prevents overflow */
}
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;     /* prevents icons from pushing out */
    margin-top: 10px;
}

.social-icons img {
    width: 30px;
    height: 30px;
}
.map-container {
    width: 100%;
    height: 0;
    padding-bottom: 60%;   /* responsive aspect ratio */
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
