/* 
 * Style Sheet: Premium Carbon-Metallic Styling
 * Path: /public/css/style.css
 * 
 * Defines the comprehensive visual tokens, dynamic layouts, grid constraints,
 * micro-animations, glassmorphic cards, and the pure-CSS animated gear and piston.
 */

/* ==========================================================================
   1. Design Tokens & Variables
   ========================================================================== */
:root {
    /* Harmony Color System (Carbon Tech Theme) */
    --color-bg-primary: hsl(220, 24%, 6%);       /* Deep carbon black */
    --color-bg-secondary: hsl(220, 18%, 10%);     /* Dark metallic charcoal */
    --color-bg-card: rgba(31, 40, 51, 0.45);      /* Semi-transparent metallic slate */
    
    --color-accent-cyan: hsl(176, 95%, 53%);      /* High-performance cyan */
    --color-accent-red: hsl(346, 100%, 49%);      /* Brake-caliper performance red */
    
    --color-text-bright: hsl(0, 0%, 100%);        /* Crisp pure white */
    --color-text-muted: hsl(210, 14%, 75%);       /* Cool silver-gray */
    --color-text-dim: hsl(210, 8%, 55%);          /* Dark alloy gray */
    
    --border-glass: rgba(102, 252, 241, 0.12);    /* Glassmorphic cyan border */
    --border-glass-hover: rgba(255, 0, 60, 0.35);  /* Glassmorphic red active border */
    
    /* Layout Tokens */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --header-height: 80px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-snap: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   2. Document Reset & Global Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-primary);
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-bg-primary);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-cyan);
    box-shadow: 0 0 8px var(--color-accent-cyan);
}

/* General Layout Elements */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-bright);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

section {
    padding: 100px 0;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   3. Header & Pure CSS Animated Logo
   ========================================================================== */
.main-header {
    height: var(--header-height);
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(6, 7, 10, 0.95);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Pure CSS Animated Gear & Piston Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-animation-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--color-bg-secondary);
    border: 1.5px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.1);
}

/* Outer Gear rotating */
.css-gear {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-accent-cyan);
    border-radius: 50%;
    animation: rotate-gear 12s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear-tooth {
    position: absolute;
    width: 4px;
    height: 38px;
    background: var(--color-accent-cyan);
    transform: rotate(calc(var(--i) * 30deg));
    border-radius: 1px;
}

.gear-tooth::before,
.gear-tooth::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 4px;
    background: var(--color-accent-cyan);
    left: -1px;
}
.gear-tooth::before { top: 0; }
.gear-tooth::after { bottom: 0; }

/* Inner Piston pumping */
.css-piston {
    position: absolute;
    width: 14px;
    height: 28px;
    bottom: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: piston-pump 1.2s ease-in-out infinite alternate;
}

.piston-crown {
    width: 14px;
    height: 7px;
    background: linear-gradient(to bottom, var(--color-accent-red), #cc0030);
    border-radius: 2px 2px 0 0;
    border-bottom: 1.5px solid #000;
}

.piston-shaft {
    width: 3px;
    height: 12px;
    background: var(--color-text-muted);
}

.piston-pin {
    width: 6px;
    height: 6px;
    background: var(--color-accent-cyan);
    border-radius: 50%;
    margin-top: -2px;
}

/* Animations */
@keyframes rotate-gear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes piston-pump {
    0% {
        transform: translateY(4px);
    }
    100% {
        transform: translateY(-8px);
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-text-bright);
}

.logo-text .accent-text {
    color: var(--color-accent-cyan);
    background: linear-gradient(135deg, var(--color-accent-cyan), #00c3b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav Menu */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-cyan);
    box-shadow: 0 0 8px var(--color-accent-cyan);
    transition: var(--transition-smooth);
}

.nav-link:hover, 
.nav-link.active {
    color: var(--color-text-bright);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Nav Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-bright);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(31, 40, 51, 0.3) 0%, var(--color-bg-primary) 80%),
                url('hero.png') no-repeat center center/cover;
    border-bottom: 1px solid var(--border-glass);
    margin-top: 0;
    padding-top: calc(var(--header-height) + 50px);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 12, 16, 0.4) 0%, rgba(11, 12, 16, 0.95) 100%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background: rgba(255, 0, 60, 0.08);
    border: 1px solid var(--color-accent-red);
    color: var(--color-accent-red);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.15);
    display: inline-flex;
    align-items: center;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 8px rgba(255, 0, 60, 0.1);
        border-color: rgba(255, 0, 60, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 60, 0.35);
        border-color: rgba(255, 0, 60, 1);
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-text-bright) 40%, var(--color-accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 580px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-accent-cyan);
    color: var(--color-bg-primary);
    border: 1px solid var(--color-accent-cyan);
    box-shadow: 0 8px 24px rgba(102, 252, 241, 0.25);
}

.btn-primary:hover {
    background: var(--color-accent-red);
    border-color: var(--color-accent-red);
    color: var(--color-text-bright);
    box-shadow: 0 8px 28px rgba(255, 0, 60, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-bright);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.15);
    transform: translateY(-2px);
}

/* Hero Mechanical Engine Graphic */
.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.engine-radial-grid {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(102, 252, 241, 0.15);
    border-radius: 50%;
    animation: rotate-gear 30s linear infinite reverse;
}

.engine-radial-grid::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1.5px solid rgba(255, 0, 60, 0.1);
    border-radius: 50%;
    border-style: dotted;
    animation: rotate-gear 15s linear infinite;
}

.engine-core-display {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(31, 40, 51, 0.8) 0%, rgba(11, 12, 16, 0.95) 100%);
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(102, 252, 241, 0.15);
    z-index: 1;
}

.core-digital-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--color-accent-cyan);
    margin-bottom: 6px;
}

.core-digital-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-bright);
    line-height: 1;
}

.core-digital-unit {
    font-size: 0.7rem;
    color: var(--color-accent-red);
    letter-spacing: 2px;
}

/* ==========================================================================
   5. Engineering Systems Section (Features)
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-subtitle {
    color: var(--color-accent-cyan);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent-red);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Glassmorphic Mechanical Cards */
.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    padding: 40px 30px;
    border-radius: 6px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent-cyan);
    transition: var(--transition-smooth);
    transform: translateY(100%);
}

.feature-card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 252, 241, 0.05);
    border: 1.5px solid rgba(102, 252, 241, 0.15);
    border-radius: 4px;
    color: var(--color-accent-cyan);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition-smooth);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Feature Hover Interaction */
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 60, 0.25);
    background: rgba(31, 40, 51, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    transform: translateY(0);
    background: var(--color-accent-red);
}

.feature-card:hover .feature-card-icon {
    background: rgba(255, 0, 60, 0.08);
    border-color: var(--color-accent-red);
    color: var(--color-accent-red);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
}

/* ==========================================================================
   6. Auto Parts News Cards Section
   ========================================================================== */
.news-section {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.news-grid {
    display: grid;
    /* Responsive template grid variables */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Glassmorphic News Cards */
.news-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-img-box {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: hsl(220, 20%, 12%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS fallback vector icons for parts representation */
.parts-fallback-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 40, 51, 0.8) 0%, rgba(11, 12, 16, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1.5px solid var(--border-glass);
}

.parts-fallback-icon::before {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent-cyan);
    margin-bottom: 4px;
    text-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
}

.parts-fallback-icon::after {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--color-accent-red);
}

/* Map specific fallbacks */
.img-brake_ceramic::before   { content: 'CCB-X'; }
.img-brake_ceramic::after    { content: 'CARBON BRAKING'; }
.img-wheel_forged::before    { content: 'MW-09'; }
.img-wheel_forged::after     { content: 'MONOBLOCK FORGED'; }
.img-suspension_smart::before{ content: 'AED-4'; }
.img-suspension_smart::after { content: 'SMART DAMPER'; }
.img-turbo_twin::before      { content: 'TST-8'; }
.img-turbo_twin::after       { content: 'TWIN TURBO'; }
.img-intake_shield::before   { content: 'CAT-X'; }
.img-intake_shield::after    { content: 'INTAKE SHIELD'; }
.img-exhaust_titanium::before{ content: 'TIS-1'; }
.img-exhaust_titanium::after { content: 'TITANIUM FABRIC'; }
.img-ecu_remapping::before   { content: 'ECU-M'; }
.img-ecu_remapping::after    { content: 'MULTI MAP'; }
.img-swaybar_adjust::before  { content: 'ARB-S'; }
.img-swaybar_adjust::after   { content: 'SWAY BAR'; }
.img-clutch_dct::before      { content: 'DCT-P'; }
.img-clutch_dct::after       { content: 'CLUTCH upgrade'; }
.img-fuel_injectors::before  { content: 'DFI-3'; }
.img-fuel_injectors::after   { content: 'FUEL INJECTORS'; }

/* Actual Loaded RSS Image */
.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-source-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(11, 12, 16, 0.85);
    border: 1px solid var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 2px;
    z-index: 2;
}

.news-content-box {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--color-accent-red);
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* Force height constraint */
}

.news-summary {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex-grow: 1;
}

.news-read-more {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-bright);
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-bottom: 2px;
}

.news-read-more::after {
    content: ' →';
    transition: var(--transition-snap);
}

.news-read-more::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-cyan);
    transition: var(--transition-smooth);
}

/* Card Interactive Hover */
.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
                0 0 15px rgba(255, 0, 60, 0.1);
}

.news-card:hover .news-img {
    transform: scale(1.08);
}

.news-card:hover .news-read-more {
    color: var(--color-accent-cyan);
}

.news-card:hover .news-read-more::after {
    transform: translateX(4px);
}

.news-card:hover .news-read-more::before {
    width: 100%;
}

/* ==========================================================================
   7. Footer Section
   ========================================================================== */
.main-footer {
    background: var(--color-bg-primary);
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 40px;
    overflow: hidden;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.info-col .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-bright);
    margin-bottom: 20px;
}

.info-col .footer-logo .accent-text {
    color: var(--color-accent-cyan);
}

.info-col .footer-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 320px;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1.5px;
    background: var(--color-accent-red);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-accent-cyan);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

.contact-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-bright);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-value {
    color: var(--color-text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.carbon-badge {
    background: #111;
    border: 1px solid #222;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent-cyan);
    letter-spacing: 1.5px;
    border-radius: 2px;
}

/* ==========================================================================
   8. Responsive Media Queries (Mobile Friendly System)
   ========================================================================== */

/* Tablet & Smaller Desktop Screens */
@media screen and (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .info-col {
        grid-column: span 2;
    }
}

/* Navigation System Toggle on Mobile */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(11, 12, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-glass);
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 60px;
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .nav-link {
        font-size: 1.4rem;
    }
    
    /* Toggle active animations */
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Mobile Screens */
@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-desc {
        font-size: 1.05rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .info-col {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
