/* ===========================
   NETZ CUTTING TOOLS - CUSTOM STYLES
   =========================== */

/* ===========================
   THEME VARIABLES
   =========================== */

:root {
    /* Light Mode - Bright Industrial */
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F5F5F5;
    --text-primary: #0A0F0D;
    --text-secondary: #1A2822;
    --text-muted: #4A5A52;
    --border-primary: rgba(55, 55, 55, 0.2);
    --border-accent: rgba(61, 61, 61, 0.4);
    --accent-green: #525252;
    --accent-electric: #757575;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(46, 46, 46, 0.18);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(60, 60, 60, 0.12);
    --grid-color: rgba(90, 90, 90, 0.08);
    --glow-color: rgba(140, 140, 140, 0.12);

}

[data-theme="dark"] {
    /* Dark Mode - Professional Industrial */
    --bg-primary: #0A0F0D;
    --bg-secondary: #1A1F1C;
    --bg-tertiary: #0F1412;
    --text-primary: #E8E8E8;
    --text-secondary: #C5C5C5;
    --text-muted: #8A8F8C;
    --border-primary: rgba(78, 78, 78, 0.25);
    --border-accent: rgba(105, 105, 105, 0.35);
    --accent-green: #525252;
    --accent-electric: #757575;
    --card-bg: rgba(24, 24, 24, 0.6);
    --card-border: rgba(70, 90, 80, 0.2);
    --nav-bg: rgba(10, 15, 13, 0.9);
    --shadow-color: rgba(30, 30, 30, 0.3);
    --grid-color: rgba(120, 120, 120, 0.08);
    --glow-color: rgba(160, 160, 160, 0.06);

}

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

body {
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent text overflow on mobile */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, span, div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ===========================
   THEME TOGGLE BUTTON
   =========================== */

.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--border-accent);
    width: 48px;
    height: 48px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-electric);
    background: var(--card-bg);
    transform: scale(1.05);
}

.theme-icon {
    color: var(--accent-electric);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
    transform: rotate(15deg);
}

/* ===========================
   BACKGROUND EFFECTS
   =========================== */

.hero-grid-bg {
    position: absolute;
    inset: 0;
    /* Full screen background image - replace 'your-image.jpg' with your image path */
    background-image: url('../img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Transparent overlay effect */
    opacity: 0.15;
    /* Optional: Add a color overlay for better text readability */
    /* You can uncomment the line below and adjust the color */
    /* background-blend-mode: multiply; */
}

.precision-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, var(--glow-color) 0%, transparent 50%);
}

.contact-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    filter: blur(60px);
}

.products-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, var(--grid-color) 0px, var(--grid-color) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(-45deg, var(--grid-color) 0px, var(--grid-color) 1px, transparent 1px, transparent 20px);
    opacity: 0.5;
}

/* ===========================
   NAVIGATION
   =========================== */

.logo-reveal {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-links {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-electric);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    background: transparent;
    border: 2px solid var(--border-accent);
    width: 48px;
    height: 48px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--accent-electric);
}

.mobile-menu-btn:hover {
    border-color: var(--accent-electric);
    background: var(--card-bg);
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 40;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--accent-electric);
    background: var(--card-bg);
    border-left-color: var(--accent-electric);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-content {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.hero-visual {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards;
}

.rotating-border {
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--accent-green), var(--accent-electric), var(--accent-green)) 1;
    animation: borderRotate 8s linear infinite;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* CTA Buttons */
.cta-primary {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-electric) 100%);
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-electric);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.cta-secondary {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--accent-electric);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--card-bg);
    transform: translateY(-2px);
}

.cta-large {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-electric) 100%);
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid var(--accent-electric);
}

.cta-large:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px var(--shadow-color);
}

/* Dark Mode - Softer Effects */
[data-theme="dark"] .cta-primary::before,
[data-theme="dark"] .cta-large::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

[data-theme="dark"] .cta-primary:hover,
[data-theme="dark"] .cta-secondary:hover,
[data-theme="dark"] .cta-large:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cta-secondary {
    border-color: var(--border-accent);
}

[data-theme="dark"] .cta-secondary:hover {
    background: rgba(74, 155, 111, 0.08);
    border-color: var(--accent-electric);
}

/* Dark Mode - Card Hover Effects */
[data-theme="dark"] .capability-card:hover,
[data-theme="dark"] .product-card-large:hover,
[data-theme="dark"] .product-card-small:hover,
[data-theme="dark"] .about-card-large:hover,
[data-theme="dark"] .about-card-small:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-electric);
}

[data-theme="dark"] .sector-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-electric);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Dark Mode - Glow and Border Effects */
[data-theme="dark"] .rotating-border {
    opacity: 0.5;
}

[data-theme="dark"] .capability-card::before,
[data-theme="dark"] .product-card-large::before {
    opacity: 0.3;
}

[data-theme="dark"] .scroll-line {
    background: linear-gradient(to bottom, transparent, rgba(74, 155, 111, 0.6));
}

[data-theme="dark"] .precision-bg,
[data-theme="dark"] .contact-glow {
    opacity: 0.4;
}

[data-theme="dark"] .products-bg-pattern {
    opacity: 0.3;
}

/* Dark Mode - Text Colors */
[data-theme="dark"] .text-electric-green {
    color: var(--accent-electric) !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: var(--border-primary);
    overflow: hidden;
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--accent-electric));
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(60px);
        opacity: 0;
    }
}

/* ===========================
   STATS SECTION
   =========================== */

.stats-section {
    background: linear-gradient(to bottom, transparent, var(--card-bg), transparent);
    border-color: var(--border-primary);
}

.stat-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* ===========================
   CAPABILITIES SECTION
   =========================== */

.capability-card {
    padding: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-color), transparent);
    transition: left 0.6s ease;
}

.capability-card:hover::before {
    left: 100%;
}

.capability-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-electric);
    box-shadow: 0 20px 60px var(--shadow-color);
}

.capability-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--grid-color);
    line-height: 1;
    margin-bottom: 1rem;
}

/* ===========================
   PRODUCTS SECTION
   =========================== */

/* Product Carousel */
.product-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.product-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-carousel .product-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.product-carousel .product-image.active {
    opacity: 1;
    z-index: 1;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(10, 15, 13, 0.95);
    border: 2px solid var(--accent-electric);
    color: var(--accent-electric);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    opacity: 0.9;
    backdrop-filter: blur(8px);
    pointer-events: auto;
    border-radius: 4px;
}

.product-card-large .carousel-nav,
.product-card-small .carousel-nav {
    opacity: 0.7;
}

.product-card-large:hover .carousel-nav,
.product-card-small:hover .carousel-nav {
    opacity: 1;
}

.carousel-prev {
    background-color: #FFFFFF;
    left: 1rem;
}

.carousel-next {
        background-color: #FFFFFF;
    right: 1rem;
}

.carousel-nav:hover {
    background: var(--accent-electric);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Dark mode carousel nav adjustments */
[data-theme="dark"] .carousel-nav {
    background: rgba(20, 25, 22, 0.9);
    border-color: var(--accent-electric);
}

[data-theme="dark"] .carousel-nav:hover {
    background: var(--accent-electric);
    box-shadow: 0 0 20px rgba(74, 155, 111, 0.3);
}

.product-card-large {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.product-card-large .product-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    transition: none;
    z-index: 0;
}

.product-card-large .product-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.product-card-large .product-content * {
    pointer-events: auto;
}

.product-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--glow-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.product-card-large:hover::before {
    opacity: 1;
}

.product-card-large:hover {
    transform: translateY(-4px);
    border-color: var(--accent-electric);
    box-shadow: 0 15px 50px var(--shadow-color);
}

.product-card-small {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.product-card-small .product-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    transition: none;
    z-index: 0;
}

.product-card-small .product-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.product-card-small .product-content * {
    pointer-events: auto;
}

.product-card-small::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-electric);
    transition: width 0.4s ease;
    z-index: 2;
}

.product-card-small:hover::after {
    width: 100%;
}

.product-card-small:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Product image placeholder styling - only applies when no image URL is set */
.product-image.placeholder[style*="url('')"],
.product-image.placeholder:not([style*="url"]) {
    background: linear-gradient(135deg, var(--grid-color) 0%, transparent 100%);
}

/* Dark mode image adjustments */
[data-theme="dark"] .product-image {
    filter: brightness(0.7) contrast(1.2);
}

/* Dark mode content overlay adjustments */

/* ===========================
   ABOUT CARDS (PRECISION SECTION)
   =========================== */

.about-card-large {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.about-card-large .about-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.about-card-large:hover .about-image {
    transform: scale(1.08);
}

.about-card-large .about-overlay {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(10, 15, 13, 0.85), transparent 60%);
}

.about-card-large:hover {
    transform: translateY(-6px);
    border-color: var(--accent-electric);
    box-shadow: 0 20px 60px var(--shadow-color);
}

.about-card-small {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.about-card-small .about-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.about-card-small:hover .about-image {
    transform: scale(1.08);
}

.about-card-small .about-overlay {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(10, 15, 13, 0.85), transparent 60%);
}

.about-card-small:hover {
    transform: translateY(-4px);
    border-color: var(--accent-electric);
    box-shadow: 0 15px 40px var(--shadow-color);
}

/* Placeholder backgrounds for about images - only when no image is set */
.about-image.placeholder[style*="url('')"],
.about-image.placeholder:not([style*="url"]) {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--grid-color) 100%);
}

/* Force center positioning for images */
.about-image[style*="background-image"] {
    background-position: 50% 50% !important;
}

/* Dark mode adjustments */
[data-theme="dark"] .about-image {
    filter: brightness(0.75) contrast(1.15);
}

[data-theme="dark"] .about-card-large:hover .about-image,
[data-theme="dark"] .about-card-small:hover .about-image {
    filter: brightness(0.9) contrast(1.05);
}

/* ===========================
   PRECISION SECTION
   =========================== */

.precision-point {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.precision-point:nth-child(1) { animation-delay: 0.2s; }
.precision-point:nth-child(2) { animation-delay: 0.4s; }
.precision-point:nth-child(3) { animation-delay: 0.6s; }

/* ===========================
   SECTORS SECTION
   =========================== */

.sector-card {
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.sector-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-electric);
    transform: translateY(-4px);
}

.sector-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.sector-card:hover .sector-icon {
    filter: grayscale(0%);
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-info {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-info:nth-child(1) { animation-delay: 0.2s; }
.contact-info:nth-child(2) { animation-delay: 0.3s; }
.contact-info:nth-child(3) { animation-delay: 0.4s; }

/* ===========================
   KEYFRAME ANIMATIONS
   =========================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */

@media (max-width: 768px) {
    /* Navigation */
    nav .logo-reveal a,
    nav .logo-reveal h1 {
        font-size: 1.5rem !important;
    }

    nav .max-w-7xl {
        padding: 1rem 1.5rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto !important;
        padding-top: 6rem !important;
        padding-bottom: 3rem !important;
    }

    .hero-section h1,
    .hero-section h2 {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    .hero-section .flex.gap-6 {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section .cta-primary,
    .hero-section .cta-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    /* Stats Section */
    .stats-section {
        padding: 3rem 0;
    }

    .stat-item .font-display {
        font-size: 3rem;
    }

    .stats-section .grid {
        gap: 2rem;
    }

    /* Section Headings */
    .font-display.text-6xl {
        font-size: 2.5rem;
    }

    .font-display.text-5xl {
        font-size: 2rem;
    }

    .font-display.text-4xl {
        font-size: 1.75rem;
    }

    /* Section Padding */
    section.py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    section.py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    section.py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Capabilities */
    .capability-number {
        font-size: 2.5rem;
    }

    .capability-card {
        padding: 2rem;
    }

    .capability-card h4 {
        font-size: 1.5rem;
    }

    /* Products */
    .product-card-large .product-content,
    .product-card-small .product-content {
        padding: 1.5rem;
    }

    .product-card-large h4 {
        font-size: 1.75rem;
    }

    .product-card-small h4 {
        font-size: 1.25rem;
    }

    .product-card-large .font-display.text-6xl {
        font-size: 3rem;
    }

    .product-card-small .font-display.text-5xl {
        font-size: 2.5rem;
    }

    /* About Cards */
    .about-card-large {
        min-height: 300px;
    }

    .about-card-large .about-overlay {
        padding: 2rem;
    }

    .about-card-large .font-display {
        font-size: 1.75rem;
    }

    .about-card-small {
        min-height: 180px;
    }

    .about-card-small .about-overlay {
        padding: 1.25rem;
    }

    .about-card-small .font-display {
        font-size: 1.125rem;
    }

    /* Precision Section */
    .precision-section .grid {
        gap: 3rem;
    }

    /* Sectors */
    .sector-card {
        padding: 1.5rem;
    }

    .sector-icon {
        font-size: 2rem;
    }

    /* Contact Section */
    .contact-section h3 {
        font-size: 2.5rem;
    }

    /* General Adjustments */
    .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }

    /* Reduce margin/padding on mobile */
    .mb-20 {
        margin-bottom: 2rem;
    }

    .space-y-8 > * + * {
        margin-top: 1.5rem;
    }

    /* CTA Buttons */
    .cta-primary,
    .cta-secondary {
        padding: 1rem 2rem;
        font-size: 0.875rem;
    }

    .cta-large {
        padding: 1.25rem 2.5rem;
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-section h1,
    .hero-section h2 {
        font-size: 2rem !important;
    }

    .font-display.text-6xl,
    .font-display.text-5xl {
        font-size: 2rem;
    }

    .stat-item .font-display {
        font-size: 2.5rem;
    }

    .product-card-large h4 {
        font-size: 1.5rem;
    }

    /* About Cards - Mobile */
    .about-card-large {
        min-height: 250px;
    }

    .about-card-large .font-display {
        font-size: 1.5rem;
    }

    .about-card-small {
        min-height: 160px;
    }

    .about-card-small .font-display {
        font-size: 1rem;
    }

    /* About section grid - stack on mobile */
    #precision .grid.grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    nav .logo-reveal a,
    nav .logo-reveal h1 {
        font-size: 1.25rem !important;
    }

    /* Additional mobile fixes */
    .text-2xl {
        font-size: 1.25rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    .gap-16 {
        gap: 2rem;
    }

    .gap-12 {
        gap: 1.5rem;
    }

    /* Product card specific fixes for mobile */
    .product-card-large .product-content {
        justify-content: flex-end;
    }

    .product-card-small .product-content {
        justify-content: flex-end;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-section h2 {
        font-size: 3rem;
    }

    .font-display.text-6xl {
        font-size: 3rem;
    }

    .stat-item .font-display {
        font-size: 3.5rem;
    }
}

/* ===========================
   NOISE TEXTURE OVERLAY
   =========================== */

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

/* ===========================
   MAP DARK MODE
   =========================== */

/* Map iframe dark mode styling */
[data-theme="dark"] .map-container iframe {
    filter: invert(90%) hue-rotate(180deg);
}

/* ===========================
   SELECTION COLOR
   =========================== */

::selection {
    background: var(--accent-electric);
    color: var(--bg-primary);
}

[data-theme="dark"] ::selection {
    background: #FFFFFF;
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--accent-electric);
    color: var(--bg-primary);
}

/* ===========================
   THEME TRANSITION SMOOTHING
   =========================== */

nav {
    background-color: var(--nav-bg);
    border-bottom-color: var(--border-primary);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

footer {
    border-top-color: var(--border-primary);
    transition: border-color 0.4s ease;
}

/* ===========================
   TAILWIND CLASS OVERRIDES FOR THEMING
   =========================== */

/* Override hardcoded gray text colors */
.text-gray-300,
.text-gray-400,
.text-gray-500 {
    color: var(--text-muted) !important;
    transition: color 0.4s ease;
}

/* Override electric green text color */
.text-electric-green {
    color: var(--accent-electric) !important;
    transition: color 0.4s ease;
}

/* Override electric green backgrounds */
.bg-electric-green\/10 {
    background-color: var(--glow-color) !important;
}

/* Override electric green borders */
.border-electric-green\/30,
.border-electric-green\/20 {
    border-color: var(--border-accent) !important;
}

/* Override industrial green borders */
.border-industrial-green\/20,
.border-industrial-green\/10 {
    border-color: var(--border-primary) !important;
}

/* Ensure headings use primary text color */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    transition: color 0.4s ease;
}

/* Ensure paragraphs use appropriate colors */
p {
    transition: color 0.4s ease;
}

/* Hover states for electric green */
.hover\:text-electric-green:hover {
    color: var(--accent-electric) !important;
}

/* Hover states for border electric green */
.hover\:border-electric-green:hover {
    border-color: var(--accent-electric) !important;
}

/* Links and anchors */
a {
    transition: color 0.4s ease;
}

/* Specific overrides for footer and other elements */
footer .font-mono {
    color: var(--text-muted);
}

/* Section labels (comment-style headers) */
.font-mono.text-sm,
.font-mono.text-xs {
    transition: color 0.4s ease;
}
