/* ==========================================
   Bandırma Bilim Akademisi - Premium CSS Theme
   ========================================== */

/* Design Tokens & Variables */
:root {
    --primary-color: #0b1a4a;       /* Bandırma Navy Blue */
    --secondary-color: #ff7600;     /* Vivid Orange */
    --whatsapp-green: #25d366;      /* WA Brand Green */
    --bg-light: #f6f8fc;
    --bg-white: #ffffff;
    --text-dark: #1e2229;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    
    /* Font Families */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout properties */
    --max-width: 1200px;
    --header-height: 80px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Subtle Box Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(11, 26, 74, 0.08), 0 4px 6px -2px rgba(11, 26, 74, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(11, 26, 74, 0.12), 0 10px 10px -5px rgba(11, 26, 74, 0.06);
    --shadow-glow: 0 0 20px rgba(255, 118, 0, 0.2);
}

/* CSS Reset & General Styling */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Reusable Components & Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-orange {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(255, 118, 0, 0.3);
}

.btn-orange:hover {
    background-color: #e56a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 118, 0, 0.4);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-navy {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(11, 26, 74, 0.2);
}

.btn-navy:hover {
    background-color: #050d27;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 26, 74, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Sections Commons */
section {
    padding: 90px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header .title {
    font-family: var(--font-title);
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--bg-white) !important;
}

.text-orange {
    color: var(--secondary-color) !important;
}

/* 1. Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid rgba(11, 26, 74, 0.15);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.08) rotate(5deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 3.5px;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-white .logo-main {
    color: var(--bg-white);
}

.logo-white .logo-sub {
    color: rgba(255, 255, 255, 0.6);
}

/* Nav Menu */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-pre-register {
    padding: 10px 22px;
    font-size: 14px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* 2. Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    background: radial-gradient(circle at top right, rgba(255, 118, 0, 0.04) 0%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at bottom left, rgba(11, 26, 74, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
    overflow: visible;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero Media (Right Column) */
.hero-media {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 36px;
    overflow: visible;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    border-radius: 36px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    background-color: var(--primary-color);
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.floating-badge:hover {
    transform: translate(-5px, -5px) scale(1.03);
    box-shadow: 0 25px 35px -5px rgba(11, 26, 74, 0.25);
}

.badge-text {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.badge-arrow {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition-smooth);
}

.floating-badge:hover .badge-arrow {
    transform: rotate(-45deg);
}

/* Features Bar */
.features-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background-color: var(--bg-white);
    border-radius: 24px;
    padding: 30px 40px;
    margin-top: 80px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.feature-text span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Light Background Accent Colors */
.bg-light-blue { background-color: rgba(11, 26, 74, 0.05); }
.bg-light-purple { background-color: rgba(138, 43, 226, 0.05); }
.bg-light-cyan { background-color: rgba(0, 180, 216, 0.05); }

/* 3. Eğitimlerimiz Section */
.trainings-section {
    background-color: var(--bg-light);
}

.trainings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.training-card {
    background-color: var(--bg-white);
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.training-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.card-title {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* Card Theming Styles (Matching the Mockup Palette) */
/* 1. Robotik Kodlama (Cyan) */
.card-cyan { border-color: rgba(0, 180, 216, 0.1); }
.card-cyan:hover { border-color: rgba(0, 180, 216, 0.3); }
.card-cyan .card-icon { background-color: rgba(0, 180, 216, 0.08); color: #00b4d8; }

/* 2. Resim Atölyesi (Yellow) */
.card-yellow { border-color: rgba(255, 193, 7, 0.1); }
.card-yellow:hover { border-color: rgba(255, 193, 7, 0.3); }
.card-yellow .card-icon { background-color: rgba(255, 193, 7, 0.08); color: #ffb703; }

/* 3. İngilizce (Red) */
.card-red { border-color: rgba(230, 57, 70, 0.1); }
.card-red:hover { border-color: rgba(230, 57, 70, 0.3); }
.card-red .card-icon { background-color: rgba(230, 57, 70, 0.08); color: #e63946; }

/* 4. Hızlı Okuma (Purple) */
.card-purple { border-color: rgba(138, 43, 226, 0.1); }
.card-purple:hover { border-color: rgba(138, 43, 226, 0.3); }
.card-purple .card-icon { background-color: rgba(138, 43, 226, 0.08); color: #8a2be2; }

/* 5. Akıl Oyunları (Orange) */
.card-orange { border-color: rgba(255, 118, 0, 0.1); }
.card-orange:hover { border-color: rgba(255, 118, 0, 0.3); }
.card-orange .card-icon { background-color: rgba(255, 118, 0, 0.08); color: var(--secondary-color); }

/* 6. Okul Öncesi (Green) */
.card-green { border-color: rgba(40, 167, 69, 0.1); }
.card-green:hover { border-color: rgba(40, 167, 69, 0.3); }
.card-green .card-icon { background-color: rgba(40, 167, 69, 0.08); color: #28a745; }

/* 7. Yaz Kursları (Gold) */
.card-yellow2 { border-color: rgba(253, 197, 0, 0.1); }
.card-yellow2:hover { border-color: rgba(253, 197, 0, 0.3); }
.card-yellow2 .card-icon { background-color: rgba(253, 197, 0, 0.08); color: #fdc500; }

/* Flex/Grid adjustments for 7 elements (last element styled beautifully) */
@media (min-width: 1025px) {
    .trainings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    /* Let's make the cards layout wrap cleanly. 7 cards: Row 1 has 4 cards, Row 2 has 3 cards centered */
    .trainings-grid :nth-child(5) {
        grid-column: span 1;
    }
}

/* 4. Galeri Section */
.gallery-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.gallery-info {
    max-width: 400px;
}

.gallery-info .subtitle {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.gallery-info .title {
    font-family: var(--font-title);
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.gallery-info .description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg);
}

/* 5. Veli Yorumları (Testimonials) */
.testimonials-section {
    background: radial-gradient(circle at top right, rgba(255, 118, 0, 0.15) 0%, rgba(11, 26, 74, 0) 50%),
                var(--primary-color);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* Testimonial background SVG styling */
.testimonials-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.slider-content {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quote-icon {
    font-family: var(--font-title);
    font-size: 80px;
    line-height: 1;
    color: var(--secondary-color);
    height: 45px;
    margin-bottom: -10px;
}

.testimonial-text {
    font-size: 22px;
    font-weight: 500;
    max-width: 720px;
    margin-bottom: 30px;
    line-height: 1.5;
    position: relative;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.testimonial-footer .author {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--bg-white);
}

.rating {
    display: flex;
    gap: 4px;
}

.rating span {
    color: #ffb703;
    font-size: 18px;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
    flex-shrink: 0;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.3);
}

/* 6. Neden Biz? Section */
.why-us-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.why-us-info {
    max-width: 400px;
}

.why-us-info .subtitle {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.why-us-info .title {
    font-family: var(--font-title);
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-us-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-us-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.why-us-item:hover .why-us-icon {
    transform: scale(1.1) translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-us-text {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

/* Why Us Icon Theming Palette */
.icon-orange { background-color: rgba(255, 118, 0, 0.08); color: var(--secondary-color); }
.icon-blue { background-color: rgba(11, 26, 74, 0.08); color: var(--primary-color); }
.icon-purple { background-color: rgba(138, 43, 226, 0.08); color: #8a2be2; }
.icon-green { background-color: rgba(40, 167, 69, 0.08); color: #28a745; }
.icon-pink { background-color: rgba(230, 57, 70, 0.08); color: #e63946; }
.icon-cyan { background-color: rgba(0, 180, 216, 0.08); color: #00b4d8; }

/* 7. Footer & Contact Form */
.main-footer {
    background-color: #070e28;
    color: var(--bg-white);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
    position: relative;
}

.brand-col .logo {
    margin-bottom: 24px;
}

.brand-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 250px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-list li svg {
    color: var(--secondary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-list a:hover {
    color: var(--secondary-color);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.quick-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Contact Form inside Footer */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--bg-white);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-status {
    font-size: 13px;
    margin-top: 8px;
}

.form-status.success {
    color: var(--whatsapp-green);
}

.form-status.error {
    color: #e63946;
}

/* Footer Bottom Bar */
.footer-bottom {
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bottom-links {
    display: flex;
    gap: 24px;
}

.bottom-links a {
    color: rgba(255, 255, 255, 0.4);
}

.bottom-links a:hover {
    color: var(--secondary-color);
}

/* ==========================================
   Responsive & Adaptive Media Queries
   ========================================== */

/* Large Tablets / Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    section {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-container {
        gap: 30px;
    }
    
    .features-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        padding: 30px;
    }
    
    .trainings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-info {
        max-width: 100%;
        text-align: center;
    }
    
    .why-us-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-us-info {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Small Tablets / Large Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Mobile Menu Drawer style */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        transition: var(--transition-smooth);
        padding: 40px 24px;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .nav-menu a {
        font-size: 18px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    /* Hamburger toggle animation when active */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero section collapse */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-description {
        margin: 0 auto 30px auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-media {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .floating-badge {
        width: 150px;
        height: 150px;
        bottom: -20px;
        right: -10px;
        padding: 18px;
    }
    
    .badge-text {
        font-size: 14px;
    }
    
    .badge-arrow {
        width: 36px;
        height: 36px;
    }
    
    /* Trainings Collapse */
    .trainings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery Collapse */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonial slider */
    .testimonial-text {
        font-size: 18px;
    }
    
    /* Why Us grid */
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-pre-register {
        display: none; /* Hide on mobile navbar to save space */
    }
}

/* Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
    section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-header .title,
    .gallery-info .title,
    .why-us-info .title {
        font-size: 28px;
    }
    
    .features-bar {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .trainings-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .bottom-links {
        justify-content: center;
    }
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay Tokens */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ==========================================
   Course Details Modal Styling
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 26, 74, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 900px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
}

.modal-media {
    position: relative;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
}

.modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-category {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.modal-title {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.modal-info-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.meta-item {
    font-size: 14px;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 500;
}

.meta-val {
    color: var(--primary-color);
    font-weight: 700;
    margin-left: 4px;
}

.modal-text-content {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-sub-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.modal-curriculum {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-curriculum li {
    position: relative;
    padding-left: 20px;
}

.modal-curriculum li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--whatsapp-green);
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-media {
        min-height: 200px;
        height: 200px;
    }
    .modal-body {
        padding: 30px 24px;
    }
    .modal-title {
        font-size: 24px;
    }
}
