/* =========================================================================
   SS Water Purifiers - Premium Stylesheet
   ========================================================================= */

:root {
    /* Color Palette */
    --color-primary: #e62020;         /* Premium Red */
    --color-primary-hover: #ff3333;
    --color-dark: #0a0f1a;            /* Deep Dark Blue */
    --color-darker: #06090f;          /* Even darker for contrast sections */
    --color-light: #ffffff;
    --color-gray: #a0aec0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --transition: all 0.3s ease;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(230, 32, 32, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-light);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--color-darker);
}

.highlight {
    color: var(--color-primary);
}

.text-primary {
    color: var(--color-primary);
}

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

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.pt-5 { padding-top: 3rem; }
.w-100 { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    box-shadow: 0 4px 15px rgba(230, 32, 32, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-light);
}

.btn-outline:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

/* Section Titles */
.section-title-wrap {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-line {
    height: 4px;
    width: 60px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-subtitle {
    margin-top: 15px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--color-light);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--color-light);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(6, 9, 15, 0.95) 0%, rgba(6, 9, 15, 0.7) 100%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-item h3::after {
    content: '+';
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-card {
    position: relative;
    padding: 10px;
}

.about-img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.owner-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-primary);
    padding: 20px;
    border-radius: 15px;
    color: white;
    box-shadow: var(--shadow-glow);
}

.owner-badge h4 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.owner-badge p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
}

.about-features {
    margin: 25px 0;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-light);
    font-family: var(--font-heading);
}

.about-features i {
    color: var(--color-primary);
}

.about-contact-box {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item strong {
    display: block;
    color: var(--color-light);
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

/* Products Section */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-light);
    padding: 10px 25px;
    border-radius: 50px;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(230, 32, 32, 0.3);
}

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

.product-card {
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #fff;
}

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

.product-card:hover .product-img-wrap img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    margin-bottom: 15px;
    min-height: 50px;
}

.product-features {
    margin-bottom: 15px;
}

.product-features li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features li::before {
    content: '•';
    color: var(--color-primary);
    font-size: 1.5rem;
    line-height: 1;
}

/* Brands Section */
.brands {
    padding: 60px 0;
    overflow: hidden;
}

.brands-marquee-wrap {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Mask for smooth fade at edges */
.brands-marquee-wrap::before,
.brands-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.brands-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--color-dark) 0%, transparent 100%);
}

.brands-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--color-dark) 0%, transparent 100%);
}

.brands-track {
    display: flex;
    width: calc(250px * 10); /* Estimate total width */
    animation: scroll 20s linear infinite;
    gap: 30px;
    padding: 10px 0;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-item {
    min-width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.brand-item:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5 - 150px)); } /* Adjust based on item count and gap */
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(230, 32, 32, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: var(--color-light);
    box-shadow: var(--shadow-glow);
}

.service-card h3 {
    margin-bottom: 15px;
}

.why-grid {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.why-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    margin-top: 30px;
}

.why-list li {
    background: var(--glass-bg);
    padding: 15px 20px;
    border-radius: 10px;
    font-family: var(--font-heading);
    color: var(--color-light);
    border: 1px solid var(--glass-border);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 32, 32, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
    transform: scale(0);
    transition: transform 0.3s ease 0.1s;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Contact Section */
.contact {
    position: relative;
}

.contact-card {
    padding: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.detail-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    margin-top: 25px;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 32, 32, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-content h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    min-height: 350px;
    border: 1px solid var(--glass-border);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #1ebe59;
    transform: scale(1.1);
}

.call-btn {
    background-color: #4285F4;
}

.call-btn:hover {
    background-color: #3367d6;
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: #04060a;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 20px;
}

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

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .owner-badge { right: 20px; bottom: -10px; padding: 15px; }
    .why-list { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-darker);
        padding: 40px 20px;
        transition: 0.4s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }
    .nav-menu.active { left: 0; }
    .nav-list { flex-direction: column; gap: 20px; }
    
    .hero { padding-top: 100px; text-align: center; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; margin-inline: auto; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin-inline: auto; }
    .hero-stats { flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; }
    
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    
    .category-tabs { gap: 10px; }
    .tab-btn { padding: 8px 16px; font-size: 0.9rem; }
    
    .product-grid { grid-template-columns: 1fr; }
    
    .contact-card { padding: 25px; }
    .detail-row { flex-direction: column; text-align: center; align-items: center; gap: 10px; margin-bottom: 20px; }
    .detail-icon { margin-inline: auto; }
}

@media screen and (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .stat-item h3 { font-size: 2rem; }
    
    .about-content h3 { font-size: 1.6rem; }
    .section-title { font-size: 1.8rem; }
    
    .floating-buttons { bottom: 20px; right: 20px; }
    .float-btn { width: 50px; height: 50px; font-size: 1.5rem; }
    
    .brand-logo-img { width: 35px; height: 35px; }
    .logo { font-size: 1.2rem; }
}
