/* =========================================
   Project: Goya Labs Hi-Tech Course
   Theme: Future Tech (Dark Green / Circuit)
   File: HiTechCourse.css
   ========================================= */

:root {
    --tech-green: #00E676; /* Neon Green */
    --dark-tech: #1B5E20;
    --circuit-bg: #121212; /* Dark Mode Background */
    --accent-blue: #00B0FF; /* Neon Blue */
    --text-dark: #263238; /* For light sections */
    --text-light: #E0E0E0; /* For dark sections */
    --white: #ffffff;
    --bg-offwhite: #f1f8e9;
    --shadow: 0 4px 10px rgba(0,0,0,0.1);
    --neon-glow: 0 0 10px rgba(0, 230, 118, 0.5);
}

body {
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-offwhite);
    color: var(--text-dark);
    line-height: 1.7;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 30px;
    height: auto;
}

.brand-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.brand-text .highlight {
    color: var(--dark-tech);
}

.nav-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.back-btn {
    text-decoration: none;
    color: var(--white);
    background-color: var(--dark-tech);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    background-color: #2E7D32;
    transform: translateX(-3px);
}

.lang-btn {
    background: var(--dark-tech);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.lang-btn:hover {
    background-color: #2E7D32;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    /* Tech gradient: Darker, more serious green */
    background: linear-gradient(135deg, #000000 0%, #1B5E20 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px 120px;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
}

/* Circuit pattern overlay effect */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    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: 20px 20px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-family: 'Zen Maru Gothic', sans-serif;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.7);
    color: var(--tech-green);
}

.hero-sub {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 500;
    color: #E0E0E0;
}

/* =========================================
   Layout & Sections
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    color: var(--dark-tech);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title.center {
    display: block;
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* =========================================
   Tech Roadmap Grid
   ========================================= */
.bg-tech {
    background-color: var(--circuit-bg);
    border-radius: 20px;
    margin: 40px 20px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 Columns on Desktop */
    gap: 20px;
    margin-top: 30px;
    position: relative;
    padding: 20px 0;
}

.tech-card {
    background: #1E1E1E;
    color: var(--text-light);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-top: 3px solid var(--tech-green);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Arrows between cards (Desktop) */
.tech-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--tech-green);
    z-index: 1;
    font-weight: bold;
}

.tech-card.highlight {
    border-top: 3px solid var(--accent-blue);
    background: #263238;
}

/* Subtle Hover Effect (No Bounce) */
.tech-card:hover {
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
    border-color: var(--tech-green);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* =========================================
   Math Support Box
   ========================================= */
.math-box {
    background: #E3F2FD; /* Light Blue Tint */
    border-left: 5px solid var(--accent-blue); /* Blueprint Style */
    padding: 30px;
    box-shadow: var(--shadow);
    border-radius: 0 10px 10px 0;
    position: relative;
    /* Blueprint Grid Overlay */
    background-image: 
        linear-gradient(rgba(41, 121, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 121, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.math-title {
    color: #01579B;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
    padding-bottom: 5px;
}

.math-content p {
    margin-bottom: 15px;
    color: #0D47A1;
}

.math-cert {
    background: rgba(255,255,255,0.7);
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    border: 1px dashed var(--accent-blue);
}

/* =========================================
   GoyaPoints & CTA
   ========================================= */
.gp-section {
    background: #ffffff;
    text-align: center;
}

.gp-header img { width: 250px; margin-bottom: 10px; }
.gp-title { font-size: 2rem; color: #F57F17; font-family: 'Zen Maru Gothic', sans-serif; }

.cta-section {
    background: #121212; /* Dark Mode */
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-top: 2px solid var(--tech-green);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr; }
    .navbar .brand-text { display: none; }
    
    /* Stack Roadmap Vertically */
    .roadmap-grid {
        grid-template-columns: 1fr; /* Single Column */
        gap: 40px; /* Space for arrows */
    }
    
    /* Vertical Arrows */
    .tech-card:not(:last-child)::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -35px;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    /* Strictly use vw for headers to prevent overflow */
    .hero h1 {
        font-size: 5vw !important; 
        width: 100%;         
        max-width: 95%;      
        margin: 0 auto 15px; 
        padding: 0;          
        text-align: center;  
        white-space: nowrap; 
        display: block;
    }
    .section-title { font-size: 6vw; }
    .gp-title { font-size: 6vw; }

    /* Reduce button size by ~25% & enforce uniformity */
    .back-btn, .lang-btn {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
    }
}