:root {
    --bg-main: #F5F5F4;
    --bg-secondary: #FFFFFF;
    --text-primary: #292524;
    --text-secondary: #57534E;
    --accent-red: #B45309;
    --accent-blue: #1E3A8A;
    --gradient-brand: linear-gradient(135deg, #B45309, #334155);
    --gradient-glass: rgba(0, 0, 0, 0.02);
    --border-glass: rgba(0, 0, 0, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 245, 244, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 0.6rem 5%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo {
    display: flex;
    flex-direction: column;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.logo .maruthi { color: var(--text-primary); letter-spacing: 1px; }
.logo .mahadeepam { color: var(--text-secondary); font-size: 1.1rem; font-weight: 500; }

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_banner.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-main) 5%, transparent 60%);
    z-index: -1;
}

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

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-red);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.6);
}

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

.btn-secondary:hover {
    background: var(--gradient-glass);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Divisions Layout */
.divisions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.feature-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-content {
    padding: 2.5rem;
    position: relative;
    background: linear-gradient(to top, var(--bg-secondary) 80%, transparent);
    margin-top: -50px;
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.list-items {
    list-style: none;
    margin-top: 1.5rem;
}

.list-items li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.list-items li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-red);
}

.feature-card.steel .list-items li::before {
    color: var(--accent-blue);
}

/* Brands Marquee */
.brands-wrapper {
    overflow: hidden;
    padding: 2rem 0;
    white-space: nowrap;
    position: relative;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.brands-wrapper::before, .brands-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.brands-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}
.brands-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.brands-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.brands-track span {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(0,0,0,0.15);
    margin: 0 3rem;
    transition: color 0.3s ease;
    cursor: default;
}
.brands-track span:hover {
    color: var(--text-primary);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    background: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.08);
}

.info-icon {
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.07), rgba(30, 58, 138, 0.04));
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.info-details p, .info-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.info-details a:hover {
    color: var(--accent-red);
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    height: 100%;
    min-height: 480px;
    position: relative;
    transition: box-shadow 0.4s ease;
}

.map-container:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Iframe mapping hack for beautiful maps overlay */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.95;
    transition: opacity 0.4s ease;
}

.map-container:hover iframe {
    opacity: 1;
}

/* Footer */
footer {
    padding: 2.5rem 5%;
    text-align: center;
    background: #1C1917;
    color: #D6D3D1;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

footer p {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Utilities */
.hidden-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Responsive */
@media (max-width: 968px) {
    .divisions { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; z-index: 1001; }
    .nav-links {
        position: fixed;
        top: 0; right: -50%; width: 50%; height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 2.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        border-left: 1px solid var(--border-glass);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    
    .hamburger.active .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Modal & Gallery Layer */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(245, 245, 244, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.4s ease;
}

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

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    /* Custom scrollbar for modal content */
    scrollbar-width: thin;
    scrollbar-color: var(--border-glass) var(--bg-secondary);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--border-glass);
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-secondary);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-red);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.category-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--border-glass);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--text-primary);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

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

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Brand Specific Colors for Marquee */
.brands-track span {
    color: #666666 !important; /* Uniform Gray */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.brands-track span:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Floating WhatsApp Button */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
}

.whatsapp-fab:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: #20BA5C;
}

.whatsapp-fab svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-fab svg {
        width: 28px;
        height: 28px;
    }
}
