/* DEVCADCAM Ultra-Professional Industrial & Modern Web Application Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-main: #060911;
    --bg-surface: #0e1424;
    --bg-surface-hover: #162036;
    --bg-glass: rgba(14, 20, 36, 0.82);
    --border-color: rgba(255, 255, 255, 0.09);
    --border-highlight: rgba(0, 242, 254, 0.45);
    
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-orange: #ff6b00;
    --accent-green: #00e676;
    --accent-purple: #a855f7;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 28px;
    
    --glow-cyan: 0 0 30px rgba(0, 242, 254, 0.3);
    --glow-orange: 0 0 30px rgba(255, 107, 0, 0.3);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Background Cyber Grid & Radiant Glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 10% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 65%, rgba(255, 107, 0, 0.08) 0%, transparent 40%),
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Announcement Top Bar */
.top-bar {
    background: linear-gradient(90deg, #ff6b00, #ff4500);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.top-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

/* Navigation Header */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-orange));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: var(--glow-cyan);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-cyan);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #040914;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.45);
}

.btn-orange {
    background: linear-gradient(135deg, var(--accent-orange), #ff4500);
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-orange);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 107, 0, 0.45);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-highlight);
    color: var(--accent-cyan);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    padding: 5rem 2.5rem 4rem;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--border-highlight);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Countdown Card */
.countdown-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    margin-top: 2rem;
}

.countdown-timer {
    font-family: 'Fira Code', monospace;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-orange);
    letter-spacing: 2px;
    margin: 10px 0;
}

/* Trainer Spotlight Card */
.trainer-card {
    background: linear-gradient(145deg, #101728, #0a0f1d);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.trainer-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(0,242,254,0.15), transparent 70%);
    pointer-events: none;
}

.trainer-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.trainer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: var(--glow-cyan);
}

.trainer-info h3 {
    font-size: 1.4rem;
    color: #fff;
}

.trainer-info p {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.trainer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Stats Section */
.stats-section {
    max-width: 1320px;
    margin: 2rem auto 5rem;
    padding: 0 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

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

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Section Common Styling */
.section {
    padding: 5.5rem 2.5rem;
    max-width: 1320px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
    display: block;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Course Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.2rem;
}

.course-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    box-shadow: var(--glow-cyan);
}

.course-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #090d16;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img {
    transform: scale(1.06);
}

.category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(6, 9, 17, 0.88);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.course-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    color: var(--text-main);
}

.course-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-discount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.price-original {
    font-size: 0.95rem;
    color: var(--text-dim);
    text-decoration: line-through;
}

/* Interactive HTML Previewer Container */
.previewer-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.previewer-header {
    background: #090d16;
    padding: 1.2rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.previewer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

@media (max-width: 900px) {
    .previewer-grid { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; padding-top: 3rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

.editor-pane {
    background: #070a12;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.editor-label {
    background: #101624;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.editor-textarea {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background: transparent;
    border: none;
    color: #00f2fe;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    padding: 1.2rem;
    resize: none;
    outline: none;
}

.preview-pane {
    background: #ffffff;
    height: 100%;
    min-height: 380px;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Animated VMC Macro Machine Simulator Styles */
.macro-simulator-box {
    background: #060a14;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.macro-code-display {
    background: #04070f;
    padding: 1.2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.92rem;
    line-height: 1.7;
    height: 420px;
    overflow-y: auto;
    color: #94a3b8;
}

.macro-line {
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: center;
    font-family: 'Fira Code', monospace;
}

.macro-line-num {
    color: var(--text-dim);
    width: 32px;
    user-select: none;
    font-size: 0.8rem;
    text-align: right;
}

.macro-line-content {
    flex-grow: 1;
}

.macro-line.active {
    background: rgba(0, 242, 254, 0.18);
    border-left: 4px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.macro-line.active .macro-line-content {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.macro-comment {
    color: #64748b;
    font-style: italic;
}

.macro-keyword {
    color: #ff6b00;
    font-weight: bold;
}

.macro-var {
    color: #a855f7;
    font-weight: bold;
}

.vmc-dro-card {
    background: #0a0e19;
    border-left: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #03050a;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    font-family: 'Fira Code', monospace;
}

.dro-val-box {
    text-align: center;
}

.dro-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.dro-val {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00e676;
}

.vmc-canvas-container {
    width: 100%;
    height: 280px;
    background: #020409;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 1500;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 242, 254, 0.35);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    outline: none;
    font-size: 0.95rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

/* Footer */
footer {
    background: #05070d;
    border-top: 1px solid var(--border-color);
    padding: 4.5rem 2.5rem 2rem;
    color: var(--text-muted);
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.88rem;
}
