/* ===================================
   PREMIUM LUXURY DESIGN SYSTEM
   =================================== */

:root {
    /* Theme 1 - LexCounsel (Luxury Navy & Gold) */
    --primary-1: #c5a059;
    --primary-dark-1: #b08d55;
    --primary-light-1: #e6c88b;
    --secondary-1: #0f172a;
    --accent-1: #334155;
    --bg-1: #020617;

    /* Theme 2 - JusticeHub (High-Tech Charcoal & Neon) */
    --primary-2: #2dd4bf;
    --primary-dark-2: #0d9488;
    --primary-light-2: #5eead4;
    --secondary-2: #18181b;
    --accent-2: #f43f5e;
    --bg-2: #09090b;

    /* Universal Premium Colors */
    --surface-light: rgba(255, 255, 255, 0.03);
    --surface-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.18);
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    /* Fluid Spacing System - Auto-scales with viewport */
    --container-max: 1600px;
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(2rem, 4vw, 3rem);
    --spacing-lg: clamp(4rem, 6vw, 6rem);
    --spacing-xl: clamp(6rem, 10vw, 10rem);
    
    /* Fluid Font Sizes */
    --font-xs: clamp(0.75rem, 1.5vw, 0.875rem);
    --font-sm: clamp(0.875rem, 2vw, 1rem);
    --font-base: clamp(1rem, 2.5vw, 1.125rem);
    --font-lg: clamp(1.125rem, 3vw, 1.25rem);
    --font-xl: clamp(1.5rem, 4vw, 2rem);
    --font-2xl: clamp(2rem, 5vw, 3rem);
    --font-3xl: clamp(2.5rem, 6vw, 4rem);
    --font-4xl: clamp(3rem, 8vw, 5rem);

    /* Animation Easing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Responsive Breakpoints (for reference) */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    --breakpoint-3xl: 1920px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* iPad fix - ensure no padding */
@media (min-width: 768px) and (max-width: 1023px) {
    html {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-1);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth responsive behavior for key elements */
.container,
.glass-card,
.section-premium,
h1, h2, h3, h4, h5, h6,
.display-text,
.res-title {
    transition: padding 0.2s ease-out, margin 0.2s ease-out, font-size 0.2s ease-out;
}

/* Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Typeography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.display-text {
    font-size: clamp(4rem, 8vw, 8rem);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    /* Increased to fix descender overlap */
    line-height: 1.2;
    /* Increased for better vertical spacing */
    opacity: 1;
    transform: none;
}

.light-theme .display-text {
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-text {
    color: var(--primary-1);
    font-style: italic;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Navigation - Floating Island Style */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s var(--ease-out-expo);
}

.navbar.scrolled {
    top: 1rem;
    padding: 0.8rem 2rem;
    background: rgba(2, 6, 23, 0.9);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--primary-1);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-btn:hover {
    color: #fff;
}

.nav-btn:hover::after {
    width: 100%;
}

/* Magnetic Button */
.btn-magnetic {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
    z-index: -1;
}

.btn-magnetic:hover {
    border-color: transparent;
    color: #000;
}


.btn-magnetic:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.light-theme .btn-magnetic {
    color: var(--text-main);
    border-color: var(--primary-1);
}

.light-theme .btn-magnetic:hover {
    color: #000;
}


/* Hero Section */
.hero-cinematic {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 5rem;
}

/* Mesh Gradient Background */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    opacity: 0.4;
    animation: meshPulse 15s infinite ease-in-out alternate;
}

@keyframes meshPulse {
    0% {
        transform: scale(1);
        filter: hue-rotate(0deg);
    }

    100% {
        transform: scale(1.1);
        filter: hue-rotate(15deg);
    }
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 1;
}

.hero-subtitle {
    color: var(--primary-1);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 1s forwards 0.5s;
}

/* Practice Grid */
.section-premium {
    padding: var(--spacing-xl) 5%;
}

.grid-asymmetric {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.grid-item {
    grid-column: span 4;
    height: 400px;
    background: var(--surface-light);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.grid-item:nth-child(2) {
    grid-column: span 8;
}

.grid-item:hover {
    background: var(--surface-glass);
    transform: translateY(-10px);
    border-color: var(--primary-1);
}

.grid-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-1);
}

.grid-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.grid-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.grid-item:hover .grid-desc {
    opacity: 1;
    transform: translateY(0);
}

.grid-watermark {
    position: absolute;
    top: 0rem;
    right: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-main);
    opacity: 0.05;
    line-height: 1;
    pointer-events: none;
    transition: all 0.5s ease;
}

.grid-item:hover .grid-watermark {
    opacity: 0.1;
    transform: translateY(10px);
}

/* Stats Ribbon */
.stats-ribbon {
    background: var(--secondary-1);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    max-width: 1400px;
    margin: 0 auto;
}

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

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--primary-1);
    line-height: 1;
    display: block;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer Premium */
.footer-premium {
    background: #000;
    padding: var(--spacing-xl) 5% var(--spacing-md);
    border-top: 1px solid var(--border-glass);
}

.footer-logo-large {
    font-size: 10vw;
    font-family: 'Playfair Display', serif;
    color: #fff;
    opacity: 0.1;
    line-height: 1;
    margin-bottom: var(--spacing-lg);
    display: block;
    text-align: center;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBasic {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Light Theme */
.light-theme {
    background-color: #f8fafc;
    color: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --surface-light: rgba(0, 0, 0, 0.03);
    --border-glass: rgba(0, 0, 0, 0.2);
}

.light-theme .navbar {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-item {
        grid-column: span 12 !important;
        height: auto !important;
        min-height: 300px;
    }

    .display-text {
        font-size: 2.8rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    .navbar,
    .navbar.scrolled {
        width: 100% !important;
        border-radius: 0 !important;
        top: 0 !important;
        transform: translate(0) !important;
        left: 0 !important;
        padding: 1rem !important;
        margin-top: 0 !important;
    }

    .section-premium {
        padding: 4rem 0;
    }

    .grid-asymmetric {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .grid-title {
        font-size: 1.5rem !important;
    }

    .grid-watermark {
        font-size: 4rem;
        right: 1rem;
    }

    .footer-premium {
        padding: 4rem 1.5rem 2rem !important;
    }
}

/* ===================================
   LEGACY COMPATIBILITY & UTILITIES
   (Restored for compatibility with internal pages)
   =================================== */

:root {
    --bg-primary: var(--bg-1);
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;

    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);

    --glass-bg: var(--surface-glass);
    --glass-border: var(--border-glass);
    --shadow-color: rgba(0, 0, 0, 0.5);

    --primary: var(--primary-1);
    --secondary: var(--secondary-1);
    --accent: var(--accent-1);

    --radius-lg: 4px;
    --radius-md: 4px;
    --radius-sm: 2px;

    --transition-normal: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Section */
.section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light-1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary-1);
    color: var(--primary-1);
}

/* Legacy Card */
.glass-card {
    background: var(--surface-light);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 2rem;
}

/* Legacy Footer */
.footer {
    background: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Internal Page Specifics */
.page-hero {
    padding-top: 14rem;
    padding-bottom: 6rem;
    text-align: center;
}

/* Light Mode Compat */
.light-theme {
    --bg-1: #f3f4f6;
    /* Light gray background */
    --surface-light: #ffffff;
    /* White surface */
    --surface-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(0, 0, 0, 0.2);
    --text-main: #0f172a;
    /* Dark text */
    --text-muted: #64748b;
    --primary-1: #c5a059;

    /* Ensure old vars map too if used */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
}

.light-theme .nav-logo {
    color: var(--text-main);
}

.light-theme .hero-subtitle {
    color: var(--primary-1);
}

.light-theme .display-text {
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-theme .glass-card {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.light-theme .btn-magnetic {
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.2);
}

.light-theme input,
.light-theme textarea {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
    color: var(--text-main) !important;
}

.light-theme .nav-btn {
    color: var(--text-main);
}

.light-theme .logo-text {
    background: linear-gradient(135deg, #0f172a, #334155);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fix for Footer Logo in Light Mode */
.footer-premium .nav-logo {
    color: #fff !important;
}

.footer-premium .nav-logo .gold-text {
    color: var(--primary-1) !important;
}

/* Responsive Utility Classes */
.res-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.res-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.res-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.res-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

/* ===================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ALL SCREEN SIZES
   =================================== */

/* Extra Large Screens (1920px+) */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 1800px;
    }
}

/* Large Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    html {
        font-size: 17px;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Standard Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    html {
        font-size: 16px;
    }
    
    .container {
        max-width: 1140px;
        padding: 0 2rem;
    }
    
    .display-text {
        font-size: 3.5rem;
    }
}

/* Large Tablet / Small Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 960px;
        padding: 0 2rem;
    }
    
    .display-text {
        font-size: 3rem;
    }
    
    .res-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .res-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .res-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-premium {
        padding: 4rem 0;
    }
}

/* Tablet Portrait (768px - 1023px) - iPad Optimized */
@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 15px;
    }
    
    /* FORCE minimal padding on all containers for iPad */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        max-width: 100% !important;
    }
    
    body {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .display-text {
        font-size: 2.75rem;
    }
    
    .res-title {
        font-size: 2.5rem;
    }
    
    .section-premium {
        padding: 3.5rem 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .res-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {

    .res-grid-3,
    .res-grid-2,
    .res-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .res-title {
        font-size: 2.2rem !important;
        margin-bottom: 2rem;
    }

    .display-text {
        font-size: 2.5rem !important;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .insights-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .glass-card,
    .grid-item,
    .insight-card {
        margin-bottom: 2.5rem !important;
        transform: none !important;
    }

    .mobile-hide-visual {
        display: none !important;
    }

    .mobile-actions {
        margin-top: 3rem;
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        padding-top: 2rem;
        border-top: 1px solid var(--border-glass);
    }

    .mobile-actions .nav-icon-btn {
        width: 55px;
        height: 55px;
        border: 1px solid var(--border-glass);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--surface-light);
        color: var(--text-main);
    }
    
    .section-premium {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.25rem;
    }
}

/* Mobile Landscape / Small Tablet (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    html {
        font-size: 14.5px;
    }
    
    .display-text {
        font-size: 2.25rem !important;
    }
    
    .res-title {
        font-size: 2rem !important;
    }
}

/* Mobile Portrait (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
    html {
        font-size: 14px;
    }
    
    .display-text {
        font-size: 2rem !important;
    }
    
    .res-title {
        font-size: 1.75rem !important;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-premium {
        padding: 2.5rem 0;
    }
    
    .glass-card {
        padding: 1.25rem;
    }
}

/* Small Mobile (375px - 479px) */
@media (min-width: 375px) and (max-width: 479px) {
    html {
        font-size: 13.5px;
    }
    
    .display-text {
        font-size: 1.85rem !important;
        line-height: 1.2;
    }
    
    .res-title {
        font-size: 1.6rem !important;
    }
    
    .container {
        padding: 0 0.875rem;
    }
    
    .section-premium {
        padding: 2rem 0;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}

/* Extra Small Mobile (320px - 374px) */
@media (max-width: 374px) {
    html {
        font-size: 13px;
    }
    
    .display-text {
        font-size: 1.65rem !important;
        line-height: 1.15;
    }
    
    .res-title {
        font-size: 1.45rem !important;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .section-premium {
        padding: 1.75rem 0;
    }
    
    .glass-card {
        padding: 0.875rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .btn-magnetic {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Light Theme Overrides */
.light-theme {
    --bg-1: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --surface-light: rgba(0, 0, 0, 0.02);
    --surface-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(0, 0, 0, 0.1);
}

body.light-theme {
    background-color: var(--bg-1);
    color: var(--text-main);
}

.light-theme body::before {
    opacity: 0.02;
}

.light-theme .navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .nav-logo,
.light-theme .nav-link,
.light-theme .nav-btn {
    color: #0f172a !important;
}

.light-theme .nav-link:hover,
.light-theme .nav-btn:hover {
    color: var(--primary-1) !important;
}

.light-theme .glass-card,
.light-theme .grid-item,
.light-theme .insight-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
}

.light-theme .display-text {
    background: linear-gradient(to right, #0f172a, #64748b) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.light-theme .titan-stat-num {
    color: #0f172a !important;
}

.light-theme footer {
    background: #f1f5f9 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.light-theme .footer-premium h4,
.light-theme .footer-premium strong,
.light-theme .footer-premium .nav-logo {
    color: #0f172a !important;
}

.light-theme .footer-premium a {
    color: #64748b !important;
}

.light-theme .footer-premium a:hover {
    color: var(--primary-1) !important;
}