/* ========================================
   iLinguist - Language Learning Academy
   by ICTC Learning Solutions
   Color Scheme: Indigo & Gold with Teal accents
   ======================================== */

/* CSS Variables */
:root {
    --primary: #4338CA;
    --primary-dark: #3730A3;
    --primary-deep: #312E81;
    --primary-light: #6366F1;
    --primary-soft: #EEF2FF;
    --teal: #0D9488;
    --teal-light: #F0FDFA;
    --teal-dark: #0F766E;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --accent-light: #FCD34D;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
    --gradient-main: linear-gradient(135deg, #4338CA 0%, #312E81 55%, #0D9488 120%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: #FFFFFF;
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.header-nav {
    background: var(--gradient-main);
    position: relative;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-deep);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 0.75rem;
    opacity: 0.9;
    display: block;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--text-white);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.45), 0 0 18px rgba(245, 158, 11, 0.25);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.9), 0 0 24px rgba(245, 158, 11, 0.6);
}

.nav-links a.ictc-home {
    background: linear-gradient(135deg, #DC2626 0%, #7F1D1D 50%, #000000 100%);
    color: #FFFFFF;
    font-weight: 800;
    border: 2px solid #FFFFFF;
    text-shadow: none;
}

.nav-links a.ictc-home:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #111111 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
    text-shadow: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: var(--gradient-main);
    color: var(--text-white);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-text h2 span {
    color: var(--accent);
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.92;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-image {
    display: none;
}

/* Floating language words */
.float-words {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.float-words span {
    position: absolute;
    font-size: 1.05rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.14);
    letter-spacing: 0.5px;
    animation: floatUp 16s linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(110vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-15vh); opacity: 0; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-deep);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

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

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

.btn-teal {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff;
}

.btn-teal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

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

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

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-soft {
    background: var(--primary-soft);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto;
}

/* ========================================
   LANGUAGES SECTION
   ======================================== */
.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.language-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.language-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.language-card:hover .language-head {
    border-radius: 0;
}

.language-head {
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.language-head .flag {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.language-head h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.language-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.language-native {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    direction: ltr;
}

.language-script {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.language-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.language-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.resources-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    background: var(--bg-light);
    margin-top: auto;
}

.resources-box .soon-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}

.resources-box h5 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-weight: 700;
}

.resources-box p {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* language head gradient variants */
.lang-ar { background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%); }
.lang-zh { background: linear-gradient(135deg, #B91C1C 0%, #EF4444 100%); }
.lang-de { background: linear-gradient(135deg, #1F2937 0%, #374151 100%); }
.lang-fr { background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); }
.lang-it { background: linear-gradient(135deg, #15803D 0%, #22C55E 100%); }
.lang-es { background: linear-gradient(135deg, #C2410C 0%, #F59E0B 100%); }
.lang-ja { background: linear-gradient(135deg, #7C2D12 0%, #EA580C 100%); }
.lang-ru { background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 100%); }
.lang-hi { background: linear-gradient(135deg, #B45309 0%, #F59E0B 100%); }

/* ========================================
   WHY CHOOSE US
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   HOW IT WORKS / LEARNING PATH
   ======================================== */
.path-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.path-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.path-step .step-num {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-deep);
    border-radius: var(--radius-full);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.path-step h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.path-step p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--gradient-main);
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

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

.cta-section h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #171a3d 0%, #0a0a1a 100%);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ========================================
   PAGE HERO (Inner Pages)
   ======================================== */
.page-hero {
    background: var(--gradient-main);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   CONTACT / FORM
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-container {
    background: var(--bg-white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    padding: 20px 0;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: #fff;
}

.contact-details h3 {
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-light);
}

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

.success-message {
    display: none;
    background: #10B981;
    color: white;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 16px;
    font-weight: 600;
}

.success-message.show {
    display: block;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .path-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-deep);
        flex-direction: column;
        padding: 20px;
        gap: 14px;
        border-radius: 0 0 14px 14px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-top {
        justify-content: flex-start;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-text h2 {
        font-size: 1.9rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 24px;
    }

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

    .language-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }

    .page-hero h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .features-grid,
    .path-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
