/* ============================================================
   NEWTECH ENGINEERING — PRODUCTION CSS (CLEANED + ORGANIZED)
   Option B: Clean + Improve + Preserve All Components
   Choice A: Buttons override navigation everywhere
   Last Updated: 2026-02-22
   Script - newtech_styles.css
   ============================================================ */


/* ============================================================
   1. ROOT VARIABLES
   ============================================================ */
:root {
    --primary-blue: #00aaff;
    --secondary-blue: #005580;
    --black: #000000;
    --white: #ffffff;
    --light-grey: #f0f4f8;
    --light-green: #e1f3e1;
    --dark-grey: #2d2d2d;
    --dark-green: #1e3a2e;

    --bg-color: #f4f7fc;
    --text-color: #1a2639;
    --section-overlay: rgba(0, 0, 0, 0.5);
    --header-bg: rgba(0, 0, 0, 0.95);
    --footer-bg: #000000;

    --card-bg-light: #f0f4f8;
    --card-bg-alt-light: #e1f3e1;
    --card-bg-dark: #2d2d2d;
    --card-bg-alt-dark: #1e3a2e;

    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 40px;

    --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.2rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    --font-size-hero: 3.8rem;

    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 30px;
    --border-radius-xl: 40px;
    --border-radius-full: 50px;
    --border-radius-circle: 50%;

    --box-shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --box-shadow-md: 0 10px 25px rgba(0,170,255,0.3);
    --box-shadow-lg: 0 20px 30px rgba(0,0,0,0.2);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --z-progress: 1002;
    --z-controls: 1001;
    --z-header: 1000;
    --z-dropdown: 2000;
    --z-timer: 999;
    --z-backtop: 999;
    --z-dots: 900;
}


/* ============================================================
   2. RESET + BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

a {
    text-decoration: none;
    color: inherit;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: var(--font-size-hero); margin-bottom: var(--spacing-md); }
h2 { font-size: 3rem; margin-bottom: var(--spacing-md); color: var(--white); }
h3 { font-size: 2rem; }

p { margin-bottom: 1rem; }


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

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


/* ============================================================
   5. PROGRESS BAR
   ============================================================ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-blue);
    width: 0%;
    z-index: var(--z-progress);
    transition: width var(--transition-fast);
    box-shadow: 0 0 10px var(--primary-blue);
}


/* ============================================================
   6. TIMER
   ============================================================ */
.timer-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-weight: 600;
    font-size: var(--font-size-lg);
    padding: 12px 24px;
    border-radius: var(--border-radius-full);
    z-index: var(--z-timer);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border: 2px solid var(--primary-blue);
    box-shadow: var(--box-shadow-md);
}

.timer-badge i { color: var(--primary-blue); font-size: var(--font-size-xl); }

#timer {
    background: var(--primary-blue);
    color: var(--black);
    padding: 5px 15px;
    border-radius: var(--border-radius-xl);
    font-family: monospace;
    font-size: var(--font-size-xl);
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.timer-controls { display: flex; gap: 8px; }

.timer-btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-circle);
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.timer-btn:hover {
    background: var(--primary-blue);
    color: var(--black);
}

/* MINIMAL TIMER MODE */
.timer-badge.minimal i,
.timer-badge.minimal span:not(.timer-controls):not(#timer-playpause) {
    display: none;
}

.timer-badge.minimal {
    padding: 8px 12px;
    gap: 0;
}

.timer-badge.minimal .timer-controls {
    margin: 0;
}


/* ============================================================
   7. THEME TOGGLE
   ============================================================ */
.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-controls);
    display: flex;
    gap: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--primary-blue);
}

#theme-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: var(--font-size-xl);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

#theme-toggle:hover {
    background: var(--primary-blue);
    color: var(--black);
}

#theme-toggle .sun-icon { display: none; }
body.dark-mode #theme-toggle .moon-icon { display: none; }
body.dark-mode #theme-toggle .sun-icon { display: inline; }


/* ============================================================
   8. HEADER + NAVIGATION
   ============================================================ */
header {
    background: var(--black);
    padding: 8px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 3px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0,170,255,0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand img {
    height: 50px;
    background: var(--white);
    padding: 5px 12px;
    border-radius: var(--border-radius-xl);
    transition: var(--transition-fast);
}

.brand img:hover { transform: scale(1.05); }

nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

/* Regular nav links (not buttons) */
nav ul li a:not(.btn):not(.btn-primary) {
    color: var(--white);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-fast);
    font-size: var(--font-size-sm);
    letter-spacing: 0.3px;
}

nav ul li a:not(.btn):not(.btn-primary):hover {
    background: var(--primary-blue);
    color: var(--black);
}

/* BUTTON PRIORITY FIX (Choice A) - ensures buttons in nav have correct styling */
nav ul li a.btn,
nav ul li a.btn-primary,
nav ul li button.btn,
nav ul li button.btn-primary {
    background: var(--black) !important;
    color: var(--white) !important;
    border: 2px solid var(--primary-blue) !important;
    padding: 14px 32px !important;
    border-radius: var(--border-radius-full) !important;
    font-weight: 700 !important;
    font-size: var(--font-size-lg) !important;
    text-transform: uppercase !important;
    box-shadow: 0 6px 0 #0a2a44 !important;
    display: inline-block !important;
}

nav ul li a.btn:hover,
nav ul li a.btn-primary:hover,
nav ul li button.btn:hover,
nav ul li button.btn-primary:hover {
    background: var(--primary-blue) !important;
    color: var(--black) !important;
    border-color: var(--white) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 0 #0a2a44 !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}


/* ============================================================
   9. DROPDOWN MENU
   ============================================================ */
.dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    min-width: 220px;
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--primary-blue);
    overflow: hidden;
    z-index: var(--z-dropdown);
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu li a {
    color: var(--black) !important;
    padding: 12px 18px;
    display: block;
    white-space: nowrap;
    background: var(--white);
}

.dropdown-menu li a:hover {
    background: var(--primary-blue);
    color: var(--black) !important;
}


/* ============================================================
   10. MAIN CONTENT + SECTIONS
   ============================================================ */
main {
    padding-top: 70px;
    min-height: 100vh;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 2px solid rgba(0,170,255,0.2);
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--section-overlay);
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center;
}

.hero {
    background-image: url('/ai-chip.png');
    background-size: cover;
    background-position: center;
}

#services, #expertise, #projects, #contact, #products-section,
section:not(.hero) {
    background-image: url('/servers2.png');
}


/* ============================================================
   11. CARDS
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    text-align: left;
}

.service-card {
    background: var(--light-green);
    border-radius: 24px;
    padding: 20px 18px;
    box-shadow: 0 15px 25px -8px rgba(0,0,0,0.3);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:nth-child(even) {
    background: var(--card-bg-alt-light);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 30px -8px var(--primary-blue);
}

.service-card i {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0;
    line-height: 1.4;
    flex-grow: 1;
}

/* Dark mode cards */
body.dark-mode .service-card {
    background: var(--card-bg-dark);
    color: var(--white);
}

body.dark-mode .service-card p {
    color: #ccc;
}

body.dark-mode .service-card:nth-child(even) {
    background: var(--card-bg-alt-dark);
}


/* ============================================================
   12. BUTTONS (GLOBAL PRIORITY)
   ============================================================ */
.btn,
.btn-primary,
a.btn,
a.btn-primary,
button.btn,
button.btn-primary,
.btn-row .btn,
.btn-row .btn-primary,
section .btn,
section .btn-primary,
div .btn,
div .btn-primary,
[class*="btn"] {
    display: inline-block !important;
    padding: 14px 32px !important;
    border-radius: var(--border-radius-full) !important;
    font-weight: 700 !important;
    font-size: var(--font-size-lg) !important;
    text-transform: uppercase !important;
    transition: var(--transition-fast) !important;
    cursor: pointer !important;
    background: #000000 !important;  /* Pure black, not variable */
    color: #ffffff !important;        /* Pure white, not variable */
    border: 2px solid #00aaff !important; /* Pure blue, not variable */
    box-shadow: 0 6px 0 #0a2a44 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

.btn:hover,
.btn-primary:hover,
a.btn:hover,
a.btn-primary:hover,
button.btn:hover,
button.btn-primary:hover,
.btn-row .btn:hover,
.btn-row .btn-primary:hover,
section .btn:hover,
section .btn-primary:hover,
[class*="btn"]:hover {
    background: #00aaff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 0 #0a2a44 !important;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    justify-content: center;
}


/* ============================================================
   13. PILL TAGS
   ============================================================ */
.pill {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--black) !important;
    padding: 10px 28px;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 10px 0 15px;
    text-transform: uppercase;
    border: 2px solid var(--white);
    box-shadow: 0 6px 0 rgba(0,0,0,0.33);
}


/* ============================================================
   14. HERO SERVICE LIST
   ============================================================ */
.hero-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 25px 0 20px;
    justify-content: center;
}

.hero-service-item {
    background: var(--light-green);
    border: 2px solid var(--primary-blue);
    padding: 8px 24px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px var(--black);
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff, #aaddff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px var(--primary-blue);
}


/* ============================================================
   15. NAV DOTS
   ============================================================ */
.nav-dots {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-dots);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border: 2px solid var(--primary-blue);
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--primary-blue);
    transform: scale(1.4);
    box-shadow: 0 0 15px var(--primary-blue);
}


/* ============================================================
   16. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background: var(--primary-blue);
    color: var(--black);
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-circle);
    border: 3px solid var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    z-index: var(--z-backtop);
    transition: var(--transition-fast);
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: scale(1.1);
    background: var(--white);
    color: var(--primary-blue);
}


/* ============================================================
   17. FOOTER
   ============================================================ */
footer {
    background: var(--footer-bg) !important;
    color: #ccc;
    padding: 60px 0 !important;
    border-top: 5px solid var(--primary-blue);
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xl);
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-md);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.payfast-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.payfast-container img {
    height: 50px;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 8px 20px;
    box-shadow: var(--box-shadow-md);
}


/* ============================================================
   18. FORMS
   ============================================================ */
input, textarea, select {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #ccc;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-md);
    transition: border var(--transition-fast);
    font-family: var(--font-primary);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-blue);
    outline: none;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}


/* ============================================================
   19. CONTACT PAGE SPECIFIC
   ============================================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    border: 2px solid var(--primary-blue);
}

.contact-form .form-row {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.contact-form .form-row input,
.contact-form .form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary-blue);
    border-radius: 30px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    transition: 0.2s;
}

.contact-form .form-row input:focus,
.contact-form .form-row textarea:focus {
    outline: none;
    border-color: var(--white);
    box-shadow: 0 0 15px var(--primary-blue);
}

.contact-form .form-row textarea {
    resize: vertical;
    min-height: 150px;
}

.error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.error-field {
    border-color: #ff6b6b !important;
}

.form-success,
.form-error {
    padding: 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-success {
    background: rgba(40, 167, 69, 0.9);
    color: var(--white);
    border: 2px solid var(--white);
}

.form-error {
    background: rgba(220, 53, 69, 0.9);
    color: var(--white);
    border: 2px solid var(--white);
}

.hp { display: none; }

.help {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.g-recaptcha {
    display: flex;
    justify-content: center;
}

.contact-info {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 30px;
    border: 2px solid var(--primary-blue);
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-info i {
    color: var(--primary-blue);
    width: 30px;
    margin-right: 10px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-blue);
}

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


/* ============================================================
   20. TABLES
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    color: var(--black);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: var(--spacing-lg) 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: var(--primary-blue);
    color: var(--black);
    font-weight: 700;
}

tr:hover {
    background: rgba(0,170,255,0.1);
}


/* ============================================================
   21. DARK MODE SPECIFIC
   ============================================================ */
body.dark-mode .pill {
    background: var(--primary-blue);
    color: var(--black);
}

body.dark-mode .hero-service-item {
    background: var(--dark-green);
    color: var(--white);
}

body.dark-mode table {
    background: var(--dark-grey);
    color: var(--white);
}

body.dark-mode th {
    background: var(--primary-blue);
    color: var(--black);
}

body.dark-mode td {
    border-bottom-color: #444;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: var(--dark-grey);
    color: var(--white);
    border-color: #555;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--primary-blue);
}


/* ============================================================
   22. RESPONSIVE DESIGN — FIXED DROPDOWN FOR MOBILE
   ============================================================ */
@media (max-width: 768px) {

    /* Mobile navigation toggle button */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 60px;
        right: 10px;
        z-index: 2002;
        background: #000;
        border-radius: 50%;
        padding: 8px;
        font-size: 2rem;
        border: none;
        color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    /* Mobile nav container */
    nav ul {
        display: none;
        flex-direction: column;
        background: var(--black);
        padding: var(--spacing-lg);
        border-radius: var(--border-radius-md);
        position: absolute;
        top: 110px;
        right: 10px;
        width: 260px;
        box-shadow: var(--box-shadow-lg);
        border: 1px solid var(--primary-blue);
        z-index: 2000;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 5px 0;
        width: 100%;
    }

    nav ul li a:not(.btn):not(.btn-primary) {
        display: block;
        padding: 10px 15px;
    }

    /* ---------------------------------------------
       MOBILE DROPDOWN FIX
       --------------------------------------------- */

    /* Reset desktop hover behaviour */
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    /* Make dropdown menus stack properly */
    .dropdown-menu {
        display: none;
        position: relative;
        width: 100%;
        margin-top: 5px;
        background: var(--white);
        border: 1px solid var(--primary-blue);
        border-radius: var(--border-radius-sm);
        box-shadow: none;
        z-index: 2001;
    }

    /* Enable tap-to-open using focus-within */
    .dropdown:focus-within .dropdown-menu,
    .dropdown.open .dropdown-menu {
        display: block;
    }

    /* Ensure dropdown links are fully tappable */
    .dropdown-menu li a {
        padding: 12px 18px;
        display: block;
        color: var(--black) !important;
        background: var(--white);
    }

    .dropdown-menu li a:hover {
        background: var(--primary-blue);
        color: var(--black) !important;
    }

    /* --------------------------------------------- */

    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-tagline { font-size: 1.4rem; }

    /* Sections */
    .section {
        background-attachment: scroll !important;
        padding: 60px 15px;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .btn, .btn-primary,
    a.btn, a.btn-primary,
    button.btn, button.btn-primary {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    .btn-row {
        flex-direction: column;
        gap: 10px;
    }

    /* Timer */
    .timer-badge {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: var(--font-size-md);
    }

    #timer {
        font-size: var(--font-size-lg);
        min-width: 60px;
    }

    /* Top controls */
    .top-controls {
        position: fixed;
        top: 10px;
        right: 10px;
        flex-direction: column;
        gap: 8px;
        z-index: 2001;
        background: rgba(0, 0, 0, 0.6);
        padding: 5px 10px;
        border-radius: 30px;
        border: 1px solid #00aaff;
    }

    #theme-toggle {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }

    /* Navigation dots */
    .nav-dots {
        right: 8px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Footer */
    .footer-links {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        margin: 5px 0;
    }

    /* Contact form */
    .contact-form {
        padding: 20px;
    }
}


/* ============================================================
   23. PRINT STYLES
   ============================================================ */
@media print {
    .progress-bar,
    .timer-badge,
    .top-controls,
    .nav-dots,
    .back-to-top,
    header,
    footer {
        display: none !important;
    }

    main {
        padding-top: 0;
    }

    .section {
        min-height: auto;
        page-break-inside: avoid;
        background: none !important;
        color: black !important;
    }

    .section::before {
        display: none;
    }

    .section-content {
        color: black;
        text-shadow: none;
    }
}

/*    Using old one that worked ---------------
/* ---------- BUTTONS (unified: black bg, white text, blue border) ---------- */
        .btn, .btn-primary, .btn-row .btn {
            display: inline-block;
            padding: 14px 32px;
            border-radius: 60px;
            font-weight: 700;
            font-size: 1.1rem;
            text-decoration: none;
            transition: 0.2s;
            background: #000000;                /* black background */
            color: #ffffff;                      /* white text */
            border: 2px solid #00aaff;           /* blue border */
            text-transform: uppercase;
            box-shadow: 0 6px 0 #0a2a44;
            margin: 0 4px;
        }
        .btn:hover, .btn-primary:hover {
            background: #00aaff;                  /* blue background on hover */
            color: #000000;
            border-color: #ffffff;                /* white border on hover */
            transform: translateY(-4px);
            box-shadow: 0 10px 0 #0a2a44;
        }
        .btn-row {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 20px;
            justify-content: center;              /* center button row */
        }


---------------------------------------------- */

/* ============================================================
   24. HELPER CLASSES
   ============================================================ */
.text-primary { color: var(--primary-blue); }
.bg-primary { background-color: var(--primary-blue); }
.text-white { color: var(--white); }
.text-black { color: var(--black); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-xxl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-xxl); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }
.p-5 { padding: var(--spacing-xxl); }
