/* 
    Emmydutch Technologies - Mobile-First Responsive Design System
    Primary: #0f4c81 | Accent: #f59e0b | Dark BG: #0d1117
*/

:root {
    --primary: #0f4c81;
    --primary-light: #1e6091;
    --accent: #f59e0b;
    --dark-bg: #0d1117;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --white: #ffffff;
    --text-muted: #94a3b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
}

/* --- Typography (Mobile First) --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--white) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navigation (Mobile First) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-subtext {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Nav Links (Mobile) */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: #0a0d12;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.nav-links.open {
    right: 0;
}

.nav-links li a {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.7;
}

.nav-links li a:hover,
.nav-links li a.active {
    opacity: 1;
    color: var(--accent);
}

.nav-cta {
    background: var(--primary);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700 !important;
    opacity: 1 !important;
    white-space: nowrap;
}

/* --- Hero Section (Axiom/Modern Design Style) --- */
.hero {
    min-height: 100vh;
    padding-top: 6rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #0d1117;
}

/* Sophisticated Grid Background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    z-index: 1;
}

/* Moving Ambient Glows */
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 76, 129, 0.2) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    filter: blur(80px);
    z-index: 0;
    animation: glowMove 15s ease-in-out infinite alternate;
}

.hero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    filter: blur(80px);
    z-index: 0;
    animation: glowMove 20s ease-in-out infinite alternate-reverse;
}

@keyframes glowMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.05);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Stats Row (Mobile) */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0;
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Common Components (Mobile First) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark-bg);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
}

/* Grid System (Mobile First = 1 Col) */
.grid-3,
.values-grid,
.footer-grid,
.highlights-grid,
.stat-grid-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* --- Cards & Content --- */
.course-card,
.value-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Why Section (Mobile) */
.why-grid,
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.why-item {
    display: flex;
    gap: 1rem;
}

.why-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(15, 76, 129, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 1.5rem;
    border-radius: 24px;
    position: relative;
}

/* Hide floating cards on small mobile */
.floating-card {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 15px;
    width: 200px;
    z-index: 2;
    animation: floating 3s ease-in-out infinite;
}

.f-1 {
    top: -20px;
    right: -20px;
}

.f-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 1.5s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* CTA Banner (Mobile) */
.cta-banner {
    background: linear-gradient(135deg, #0f4c81 0%, #0d1117 100%);
    padding: 3rem 1.5rem;
    border-radius: 24px;
    text-align: center;
}

/* --- Inner Pages (Mobile First) --- */
.page-hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 2.75rem;
}

.course-full-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 3rem;
    transition: var(--transition);
}

.course-full-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.course-header {
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.course-header i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.course-header h3 {
    position: relative;
    z-index: 2;
}

.course-info {
    padding: 2rem 1.5rem;
}

.course-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.course-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.highlights-title {
    font-size: 0.85rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.highlight-item i {
    color: #10b981;
    margin-top: 0.3rem;
}

.course-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.meta-item i {
    width: 38px;
    height: 38px;
    background: rgba(15, 76, 129, 0.1);
    color: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.meta-item span {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1.2;
}

.meta-item strong {
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.2;
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: center;
}

.course-actions .btn {
    width: 100%;
}

.seat-badge {
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 600;
}

/* Contact Form (Mobile) */
.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 20px;
}

.form-control {
    width: 100%;
    background: #080b10;
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--white);
}

/* --- Footer (Mobile First) --- */
.footer {
    background: #080b10;
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: grid;
    gap: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- BREAKPOINT: TABLET (min-width: 768px) --- */
@media (min-width: 768px) {
    section {
        padding: 6rem 0;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        right: 0;
        gap: 1.5rem;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero-content {
        text-align: left;
    }

    .hero-btns {
        flex-direction: row;
    }

    .stats-row {
        grid-template-columns: repeat(4, 1fr);
        padding-top: 3rem;
    }

    .grid-3,
    .values-grid,
    .footer-grid,
    .stat-grid-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .course-full-card {
        display: grid;
        grid-template-columns: 320px 1fr;
    }

    .course-info {
        padding: 3rem;
    }

    .course-meta {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .course-actions {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .visual-box {
        padding: 3rem;
    }

    .floating-card {
        display: block;
    }
}

/* --- BREAKPOINT: DESKTOP (min-width: 1024px) --- */
@media (min-width: 1024px) {
    h1 {
        font-size: 4.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .cta-banner {
        padding: 5rem;
    }

    .cta-banner h2 {
        font-size: 3.5rem;
    }

    .course-info {
        padding: 4rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .course-card:hover {
        transform: translateY(-10px);
    }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}