/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&family=Rajdhani:wght@300;400;600;700&display=swap');

:root {
    --primary-cyan: #4babdb;
    --dark-cyan: #00b8cc;
    --bg-black: #050505;
    --bg-card: #0f0f0f;
    --text-light: #e0e0e0;
    --neon-glow: 0 0 10px rgba(75, 171, 219, 0.7), 0 0 20px rgba(75, 171, 219, 0.5);
    /* Retaining old vars just in case, but mapped to new values */
    --primary-color: var(--primary-cyan);
    --bg-secondary: var(--bg-card);
}

body {
    background-color: var(--bg-black);
    color: var(--text-light);
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: var(--dark-cyan);
    border-radius: 4px;
}



.btn-cyan {
    background-color: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
}

.btn-cyan:hover {
    background-color: var(--primary-cyan);
    color: #000;
    box-shadow: var(--neon-glow);
}

.btn-cyan-fill {
    background-color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transition: all 0.3s;
}

.btn-cyan-fill:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

/* --- Hero Section --- */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.05), transparent 40%);
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    perspective: 1000px;
    transform: translateY(0);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--primary-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-chart-container {
    position: relative;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Animated Candle Bars */
.candle-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 5px;
}
.candle {
    width: 8px;
    background: var(--primary-cyan);
    animation: growCandle 2s infinite alternate;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-cyan);
    position: relative;
}
.candle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 3px;
    width: 2px;
    height: calc(100% + 20px);
    background: rgba(0, 229, 255, 0.5);
    z-index: -1;
}
.candle.red {
    background: #ff0055;
    box-shadow: 0 0 8px #ff0055;
    animation-delay: 0.5s;
}
.candle.red::before {
        background: rgba(255, 0, 85, 0.5);
}

@keyframes growCandle {
    0% { height: 30%; opacity: 0.6; }
    100% { height: 80%; opacity: 1; }
}

/* --- Ticker Tape --- */
.ticker-wrap {
    width: 100%;
    background-color: #000;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.ticker-up { color: var(--primary-cyan); }
.ticker-down { color: #ff0055; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Features Section --- */
.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid #222;
    border-radius: 8px;
    transition: 0.4s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* --- Courses Section --- */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 60px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-cyan);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-cyan);
}

.course-card {
    background: #0f0f0f;
    border: none;
    overflow: hidden;
    border-radius: 12px;
    transition: 0.3s;
    border: 1px solid #1a1a1a;
}

.course-card:hover {
    border-color: var(--primary-cyan);
}

.course-img-wrap {
    position: relative;
    height: 200px;
    background: #111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-img-wrap i {
    font-size: 5rem;
    color: #222;
    transition: 0.3s;
}

.course-card:hover .course-img-wrap i {
    color: var(--primary-cyan);
    transform: scale(1.1);
}

.badge-level {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.course-body {
    padding: 25px;
}

.course-price {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.course-price span {
    font-size: 0.9rem;
    color: #777;
    text-decoration: line-through;
    margin-left: 10px;
}

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1611974765270-ca1258634369?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    padding: 80px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* --- Footer --- */
footer {
    background-color: #020202;
    padding-top: 60px;
    border-top: 1px solid #111;
}

.footer-logo {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span { color: var(--primary-cyan); }

.social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-cyan);
    padding-left: 5px;
}

.newsletter-input {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 15px;
}

.newsletter-input:focus {
    background: #111;
    color: #fff;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Loading Overlay */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: #111;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: load 1.5s ease-in-out forwards;
}

@keyframes load {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Helper for Glass Cards (Legacy compatibility) */
.glass-card {
    background: var(--bg-card) !important;
    border: 1px solid #222 !important;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet Devices (Portrait) - 768px and below */
@media (max-width: 768px) {
    /* Typography Adjustments */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    h1, .h1 {
        font-size: 2rem !important;
    }
    
    h2, .h2 {
        font-size: 1.75rem !important;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 120px 0 60px !important;
        min-height: auto !important;
    }
    

    
    /* Buttons */
    .btn {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }
    
    .btn-lg {
        padding: 14px 28px !important;
        font-size: 1rem !important;
    }
    
    .btn-cyan, .btn-cyan-fill {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Cards */
    .feature-card, .course-card {
        margin-bottom: 20px;
    }
    
    .course-img-wrap {
        height: 180px !important;
    }
    
    .course-body {
        padding: 20px !important;
    }
    
    /* Stats Section */
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    /* Register Form */
    .register-card {
        padding: 30px 20px !important;
    }
    
    /* Contact Page */
    .contact-info-item {
        margin-bottom: 15px;
    }
    
    /* Hide desktop-only elements */
    .d-none.d-md-block {
        display: none !important;
    }
}

/* Mobile Devices (Landscape) - 576px to 767px */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-chart-container {
        margin-top: 30px;
    }
}

/* Mobile Devices (Portrait) - 575px and below */
@media (max-width: 575px) {
    /* Typography */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    h1, .h1 {
        font-size: 1.75rem !important;
    }
    
    h2, .h2 {
        font-size: 1.5rem !important;
    }
    
    h3, .h3 {
        font-size: 1.25rem !important;
    }
    
    h4, .h4 {
        font-size: 1.1rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 0.95rem !important;
    }
    
    /* Container Padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 100px 0 40px !important;
    }
    
    .hero-bg-grid {
        background-size: 20px 20px !important;
    }
    

    
    /* Buttons */
    .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-lg {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }
    
    .btn-sm {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
    
    /* Flex Direction Changes */
    .d-flex.gap-3,
    .d-flex.gap-4,
    .d-flex.gap-5 {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* Cards */
    .feature-card {
        padding: 25px 20px !important;
    }
    
    .feature-icon {
        font-size: 2.5rem !important;
    }
    
    .course-card {
        margin-bottom: 20px;
    }
    
    .course-img-wrap {
        height: 160px !important;
    }
    
    .course-img-wrap i {
        font-size: 3.5rem !important;
    }
    
    .course-body {
        padding: 15px !important;
    }
    
    .course-price {
        font-size: 1.25rem !important;
    }
    
    .badge-level {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
    
    /* Stats Section */
    .stats-section {
        padding: 50px 0 !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    /* Ticker */
    .ticker-item {
        padding: 0 1rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Candle Chart */
    .candle-wrapper {
        height: 150px !important;
    }
    
    .candle {
        width: 6px !important;
    }
    
    /* Register Form */
    .register-container {
        padding: 60px 0 !important;
    }
    
    .register-card {
        padding: 25px 15px !important;
        border-radius: 8px !important;
    }
    
    .form-control,
    .form-select {
        padding: 10px !important;
        font-size: 0.95rem !important;
    }
    
    /* About Page */
    .ratio-1x1 {
        max-width: 150px !important;
    }
    
    /* Contact Page */
    .contact-info-item {
        padding: 15px !important;
    }
    
    /* Footer */
    footer {
        padding-top: 40px !important;
    }
    
    .footer-logo {
        font-size: 1.5rem !important;
    }
    
    .social-link {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem;
    }
    
    /* Spacing Utilities */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    .p-5 {
        padding: 2rem !important;
    }
    
    /* Grid Gaps */
    .g-4 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1rem !important;
    }
    
    .g-5 {
        --bs-gutter-x: 1.5rem !important;
        --bs-gutter-y: 1.5rem !important;
    }
}

/* Extra Small Devices - 400px and below */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    h1, .h1 {
        font-size: 1.5rem !important;
    }
    
    h2, .h2 {
        font-size: 1.35rem !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
    }
    
    .feature-card {
        padding: 20px 15px !important;
    }
    
    .course-body {
        padding: 12px !important;
    }
    
    .register-card {
        padding: 20px 12px !important;
    }
}

/* Landscape Orientation Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 0 40px !important;
        min-height: auto !important;
    }
    

}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch devices */
    .btn {
        min-height: 44px;
    }
    

    
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .course-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}
