:root {
    /* Rolso Theme Palette */
    --primary-navy: #0a0a7c; /* Muted Navy */
    --accent-teal: #017280;
    --primary-orange: #ff8c00; /* Industrial Orange */
    --primary-color: var(--primary-orange); /* Compatibility Alias */
    --secondary-color: var(--primary-navy); /* Compatibility Alias */
    --text-dark: #382933;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
    border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: #e67e00;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-navy);
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 4px;
    /* Rolso uses sharper corners with slight radius */
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    border: 2px solid var(--primary-orange);
}

.btn-primary:hover {
    background: #e67e00; 
    border-color: #e67e00;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.4);
}

.btn-accent {
    background: var(--primary-orange);
    color: var(--white);
    border: 2px solid var(--primary-orange);
}

.btn-accent:hover {
    background: transparent;
    color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* --- Motion Engine (Reveal on Scroll) --- */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Glassmorphism (Refined for Rolso) --- */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Sections --- */
section {
    padding: 100px 0;
}

/* --- Hero Section — full-bg slider styles live in index.html <style> block --- */

/* --- Hero Responsive --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }       
}



.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title .subtitle {
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* --- Grid System --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-3-mobile-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- Zigzag Section --- */
.zigzag-container {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.zigzag-reverse {
    flex-direction: row-reverse;
}

.zigzag-content {
    flex: 1;
}

.zigzag-image {
    flex: 1;
}

.zigzag-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* --- Product Cards (Refined for Images) --- */
.product-card {
    cursor: pointer;
    position: relative;
    background: #fff;
    border-radius: 4px;
    /* Rolso-style sharp/slight radius */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-title {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.8rem;
    }
}

.product-image-container {
    width: 100%;
    height: 250px;
    background: var(--bg-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Better for industrial parts */
    transition: var(--transition-smooth);
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    background: white;
}

.product-info h4 {
    color: var(--primary-navy);
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--primary-orange);
    font-weight: 600;
}

.product-info .btn-primary {
    background: var(--primary-navy) !important;
    color: var(--white) !important;
}

/* --- Responsive Zigzag --- */
@media (max-width: 992px) {

    .zigzag-container,
    .zigzag-reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}

/* --- Hero Slider (Rolso Style) --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--primary-navy);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 124, 0.6);
    /* Muted Navy Overlay */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-size: 5rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- Header / Navigation --- */
header {
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    transition: var(--transition-smooth);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

#nav-list {
    display: flex;
}

/* Logo Switching */
.logo-standard,
.logo-white {
    height: 60px;
}

.logo-white {
    display: none;
}

.transparent-header .logo-white {
    display: block;
}

.transparent-header .logo-standard {
    display: none;
}

.header-scrolled .logo-white {
    display: none;
}

.header-scrolled .logo-standard {
    display: block;
}

.transparent-header .top-bar {
    margin-top: -50px; /* Slide out effect */
    opacity: 0;
    pointer-events: none;
}

.transparent-header .main-nav {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transparent-header .nav-link {
    color: var(--white) !important;
}

.transparent-header #mobile-toggle i {
    color: var(--white);
}

.header-scrolled .main-nav {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.header-scrolled .nav-link {
    color: var(--primary-navy) !important;
}

.top-bar {
    background: var(--primary-navy);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
    width: 100%;
    transition: var(--transition-smooth);
}

.main-nav {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    transition: var(--transition-smooth);
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 2000;
    animation: slideDown 0.5s ease;
}

.sticky-header .top-bar {
    display: none;
}

.sticky-header .main-nav {
    padding: 12px 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* --- Dropdown Menu --- */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    /* Align exactly to the bottom left of the parent nav-item */
    transform: translateY(15px);
    background: var(--white);
    min-width: 650px;
    /* Reduced width for 16 items */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    /* Compact padding */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1001;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns might look tighter for 16 items */
    gap: 8px 15px;
    border-top: 4px solid var(--primary-orange);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 15px;
    text-decoration: none;
    color: var(--primary-navy);
    /* Use theme blue */
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space for the arrow on the right */
    gap: 12px;
    border-radius: 8px;
}

.dropdown-item i {
    font-size: 0.75rem;
    /* Smaller arrow */
    color: var(--accent-teal);
    background: none;
    width: auto;
    height: auto;
    display: inline-block;
    border-radius: 0;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: rgba(15, 15, 177, 0.05);
    /* Reflect blue theme in hover */
    color: var(--primary-navy);
    transform: translateX(5px);
}

.dropdown-item:hover i {
    transform: translateX(3px);
    color: var(--primary-navy);
}

/* Sticky Header Adjustment */
.sticky-header .main-nav {
    padding: 12px 0;
}

/* --- Service Cards --- */
.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-orange);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

/* --- Mobile Menu Toggle --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
}

/* --- Responsive Overrides --- */

/* Laptop / Desktop (Small) */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .dropdown-menu {
        min-width: 550px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }

    .main-nav .container {
        position: relative;
    }

    .main-nav ul {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 1000;
    }

    .main-nav ul.active {
        display: flex !important;
    }

    .main-nav ul li {
        width: 100%;
    }

    .transparent-header .main-nav ul li a,
    .main-nav ul li a {
        padding: 8px 40px;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        color: var(--primary-navy) !important;
    }

    .nav-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 100%;
        transform: none;
        box-shadow: none;
        padding: 0;
        visibility: visible;
        opacity: 1;
        display: none;
        border-top: none;
        background: #f8f9fa;
        grid-template-columns: 1fr;
        border-radius: 0;
        margin: 0;
        max-height: 280px;
        overflow-y: auto;
    }

    .nav-item.active .dropdown-menu {
        display: grid;
    }

    .dropdown-item {
        padding: 12px 40px;
        border-bottom: 1px solid rgba(15, 15, 177, 0.05);
        background: #f8f9fa;
    }

    .dropdown-item:hover {
        background: rgba(15, 15, 177, 0.08);
        transform: none;
        padding-left: 45px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-3, .grid-3-mobile-2 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .zigzag-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .zigzag-content {
        padding: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }

    header {
        width: 100vw;
        max-width: 100vw;
        position: fixed;
        left: 0;
        right: 0;
    }

    .sticky-header {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .main-nav .container {
        padding: 0 15px;
    }

    .logo img {
        height: 40px !important;
    }

    .footer-logo {
        height: 45px !important;
    }

    .page-banner h1 {
        font-size: 2.5rem !important;
    }

    .page-banner p {
        font-size: 1rem !important;
    }

    .container {
        padding: 0 15px !important;
    }

    section {
        padding: 40px 0 !important;
    }

    .hero-content div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .hero-content .btn {
        width: 100%;
    }

    .product-card,
    .mfg-card {
        margin-bottom: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    }

    .product-image-container,
    .mfg-card div[style*="height: 250px"] {
        height: 200px !important;
    }

    .product-info h4,
    .mfg-card h3 {
        font-size: 1.1rem !important;
    }

    #whatsapp-widget {
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        pointer-events: none;
    }

    #whatsapp-ui {
        width: 90% !important;
        left: 5% !important;
        right: 5% !important;
        bottom: 90px !important;
        pointer-events: auto;
    }

    #whatsapp-icon {
        width: 55px !important;
        height: 55px !important;
        bottom: 20px !important;
        right: 20px !important;
        pointer-events: auto;
        position: absolute;
    }

    #whatsapp-icon i {
        font-size: 28px !important;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .subtitle {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
    }

    #product-grid {
        grid-template-columns: 1fr !important;
    }

    section div[style*="grid-template-columns"]:not(.grid-3-mobile-2),
    .container div[style*="grid-template-columns"]:not(.grid-3-mobile-2),
    form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .grid-3-mobile-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .about-text,
    .zigzag-content,
    .contact-info,
    #contact div[style*="padding: 50px"] {
        padding: 20px !important;
        text-align: left !important;
    }

    .zigzag-container {
        flex-direction: column !important;
        text-align: left !important;
        gap: 30px !important;
    }

    .zigzag-container h2,
    section h2 {
        font-size: 2rem !important;
        text-align: left !important;
        word-wrap: break-word;
        hyphens: auto;
    }

    .section-title {
        text-align: left !important;
        margin-bottom: 25px !important;
    }

    footer .container {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    footer .container div {
        margin-bottom: 30px;
    }

    footer ul {
        justify-content: center;
    }

    .top-bar {
        display: none;
    }
}

/* --- Inquiry Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 80, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

@media (max-width: 576px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

.modal-close:hover {
    color: var(--primary-orange);
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-navy);
    transition: var(--transition-smooth);
}

.faq-item.faq-active .faq-question {
    color: var(--primary-orange);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.faq-item.faq-active .faq-answer {
    max-height: 1000px;
    padding: 0 30px 20px 30px;
}

.faq-question i {
    transition: var(--transition-smooth);
}

.faq-item.faq-active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-orange);
}

/* --- Hero Section Poster Design --- */
/* (This section is now handled at the top of the file under #home) */