/* ============================================
   Creative Japanese Language Academy
   Custom Stylesheet
   ============================================ */

/* ============================================
   CSS Variables - Colors will be updated based on logo
   ============================================ */
:root {
    /* Primary Colors - Extracted from Logo */
    --primary-color: #2E5090;
    --primary-dark: #1E3A6B;
    --primary-light: #4A6FA5;

    /* Secondary Colors */
    --secondary-color: #C5313D;
    --secondary-light: #E85A65;
    --accent-color: #2E5090;
    --navy-deep: #0F1E3D;

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --dark: #1A1A1A;

    /* Status Colors */
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --info-color: #3498DB;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-japanese: 'Noto Sans JP', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

a {
    text-decoration: none;
    transition: var(--transition-normal);
}

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

section {
    position: relative;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Bootstrap Override */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
}

.logo-img {
    height: 50px;
    width: auto;
}

.brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--dark);
}

.brand-text small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.btn {
    color: var(--white) !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    background:
        radial-gradient(circle at 88% 18%, rgba(197, 49, 61, 0.45) 0%, transparent 42%),
        radial-gradient(circle at 5% 95%, rgba(197, 49, 61, 0.18) 0%, transparent 35%),
        linear-gradient(135deg, var(--navy-deep) 0%, var(--primary-dark) 55%, var(--primary-color) 100%);
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.06;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 0.6s ease;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-light);
    box-shadow: 0 0 0 4px rgba(232, 90, 101, 0.25);
}

.hero-accent {
    background: linear-gradient(90deg, #FF6B76 0%, var(--secondary-light) 50%, #FF8A93 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

.hero-section .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease;
}

.hero-features {
    animation: fadeInUp 1.2s ease;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.feature-item i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    color: var(--secondary-light);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 1.4s ease;
}

.hero-buttons .btn {
    margin-right: 0 !important;
}

.btn-brand {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    border: none;
    color: var(--white);
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(197, 49, 61, 0.35);
    transition: var(--transition-normal);
}

.btn-brand:hover,
.btn-brand:focus {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(197, 49, 61, 0.45);
}

.hero-buttons .btn-outline-light {
    border-radius: 50px;
}

.hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 0.6rem 1.25rem 0.6rem 0.6rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    animation: fadeInUp 1.6s ease;
}

.hero-proof:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.hero-proof-avatars {
    display: flex;
}

.hero-proof-avatars img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary-dark);
    object-fit: cover;
}

.hero-proof-avatars img + img {
    margin-left: -12px;
}

.hero-proof-text {
    font-size: 0.95rem;
    line-height: 1.35;
}

.hero-proof-text small {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image {
    position: relative;
    width: 400px;
    max-width: 100%;
    margin: 3rem auto 2rem;
    animation: fadeInUp 1s ease;
}

/* Arch-framed portrait; the sun sits concentric with the arch top */
.hero-arch {
    position: relative;
    z-index: 2;
    aspect-ratio: 4 / 5;
    border-radius: 200px 200px 24px 24px;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

/* Rising-sun disc echoing the Japanese flag */
.hero-sun,
.hero-ring {
    position: absolute;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hero-sun {
    top: 200px;
    width: 500px;
    height: 500px;
    z-index: 1;
    background: radial-gradient(circle at 50% 40%, #E5424F 0%, var(--secondary-color) 65%, #9E1F2B 100%);
    box-shadow: 0 0 120px rgba(197, 49, 61, 0.45);
}

.hero-ring {
    top: 200px;
    width: 590px;
    height: 590px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--dark);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.hero-float strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}

.hero-float-rate {
    top: 14%;
    right: -60px;
    padding: 0.8rem 1.1rem;
    animation-delay: -3s;
}

.hero-float-rate strong {
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.hero-float-rate span {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--gray-600);
}

.hero-float-visa {
    left: -60px;
    bottom: 40px;
    padding: 0.75rem 1.25rem 0.75rem 0.75rem;
}

.hero-float-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(46, 204, 113, 0.12);
    color: var(--success-color);
    font-size: 1.35rem;
}

.hero-visa-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

.stat-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--light-bg);
    padding: 6rem 0;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 15px;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    transition: var(--transition-normal);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.feature-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-content p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   Courses Section
   ============================================ */
.courses-section {
    background: var(--white);
    padding: 6rem 0;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    position: relative;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.course-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #fffbf7 100%);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-badge {
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

.course-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.course-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white);
}

.course-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.course-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
}

.course-description {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-info {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.course-features {
    margin-bottom: 1.5rem;
}

.course-features h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.course-features ul {
    list-style: none;
    padding: 0;
}

.course-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.course-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.course-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 6rem 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-description {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.service-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose-section {
    background: var(--white);
    padding: 6rem 0;
}

.why-choose-list {
    margin-top: 2rem;
}

.why-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.why-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.why-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.why-content p {
    color: var(--gray-600);
    margin: 0;
}

.why-image img {
    border-radius: 15px;
}

/* ============================================
   Visa Success Gallery Section
   ============================================ */
.success-section {
    background: var(--white);
    padding: 6rem 0;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    grid-auto-flow: dense;
    gap: 1.25rem;
}

.success-tile {
    position: relative;
    padding: 0;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: var(--gray-200);
    cursor: zoom-in;
    box-shadow: var(--shadow-md);
}

.success-tile.feature {
    grid-column: span 2;
    grid-row: span 2;
}

.success-tile.feature-b {
    grid-column: 2 / span 2;
}

.success-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform var(--transition-slow);
}

.success-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 30, 61, 0.85) 100%);
    transition: var(--transition-normal);
}

.success-tile:hover img {
    transform: scale(1.06);
}

.success-tile:hover::after {
    background: linear-gradient(180deg, rgba(15, 30, 61, 0.1) 30%, rgba(15, 30, 61, 0.9) 100%);
}

.success-tile-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.success-tile-badge i {
    color: var(--secondary-color);
}

.success-cta {
    margin-top: 3.5rem;
}

.success-cta p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.success-modal .modal-content {
    background: transparent;
    border: none;
}

.success-modal .modal-content img {
    border-radius: 16px;
    max-height: 85vh;
    object-fit: contain;
}

.success-modal .btn-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: var(--light-bg);
    padding: 6rem 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
}

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

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #FFC107;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

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

.author-info h6 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.author-info span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons .btn-light {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
}

.cta-buttons .btn-light:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

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

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--white);
    padding: 6rem 0;
}

.contact-info-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.contact-info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

.contact-info-card h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-info-card p {
    color: var(--gray-600);
    margin: 0;
}

.contact-info-card a {
    color: var(--gray-600);
}

.contact-info-card a:hover {
    color: var(--primary-color);
}

.contact-form-card {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form-card h4 {
    color: var(--dark);
    font-weight: 700;
}

.form-control {
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.15);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-about h5 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

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

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

.footer-info li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-copyright,
.footer-credits {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.developer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.developer-link:hover {
    color: var(--white);
    border-bottom-color: var(--primary-light);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    .success-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }

    .success-tile.feature,
    .success-tile.feature-b,
    .success-tile:last-child {
        grid-column: span 2;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .stat-item {
        margin-bottom: 1.5rem;
    }

    .about-badge {
        bottom: 10px;
        right: 10px;
        padding: 1rem;
    }

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

    .why-image {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

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

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }

    .contact-form-card {
        padding: 2rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    .success-section {
        padding: 4rem 0;
    }

    .success-grid {
        grid-auto-rows: 190px;
        gap: 0.75rem;
    }

    .success-tile-badge {
        left: 0.5rem;
        bottom: 0.5rem;
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .hero-proof {
        margin-top: 1.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .brand-text {
        font-size: 0.95rem;
    }

    .course-card,
    .service-card {
        margin-bottom: 1.5rem;
    }

    /* Better mobile spacing */
    .hero-section {
        padding-top: 100px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .course-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .course-title {
        font-size: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Mobile-friendly navigation */
    .navbar-brand {
        font-size: 0.9rem;
    }

    /* Improve form on mobile */
    .contact-form-card {
        padding: 1.5rem;
    }

    /* Better testimonial cards on mobile */
    .testimonial-card {
        padding: 1.5rem;
    }

    /* Stack footer columns */
    .footer-about,
    .footer-links,
    .footer-info {
        text-align: center;
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* ============================================
   Additional Mobile Optimizations
   ============================================ */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }

    .course-features ul,
    .service-list {
        font-size: 0.9rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.animate-fade-in {
    animation: fadeInUp 0.8s ease;
}

.bg-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.05;
}