/* 
  SRI KUNGUMAYI TRADERS - Design System
  Theme: White & Sky Blue (Premium Minimalist)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #0088ff; /* Vibrant High-Performance Blue */
    --primary-blue-light: #e6f3ff;
    --secondary-navy: #0a1a33; /* Deep Sapphire Navy */
    --accent-gold: #fbbf24;
    --bg-white: #ffffff;
    --bg-soft-blue: #f0f7ff; /* Noticeable blue tint for backgrounds */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 20px 40px rgba(0, 136, 255, 0.1); /* Blue-forward shadows */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--secondary-navy);
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

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

/* Layout Elements */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 120px 0;
}

nav {
    position: relative;
    width: 100%;
    padding: 15px 0; /* Tighter padding */
    background: #ffffff;
    z-index: 1000;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon-box {
    width: 65px;
    height: 65px;
    overflow: hidden; /* Key for the zoom effect */
    border-radius: 8px;
    border: 1px solid var(--primary-blue-light);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.nav-logo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the space */
    transform: scale(1.35); /* Zoom in the emblem */
    transition: var(--transition);
}

.logo-icon-box:hover .nav-logo {
    transform: scale(1.5); /* Subtle extra zoom on hover */
}

img {
    image-rendering: -webkit-optimize-contrast; /* Sharpen images */
    transition: var(--transition);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--secondary-navy);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a.active {
    color: var(--primary-blue);
    font-weight: 700;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary-navy);
    cursor: pointer;
    transition: var(--transition);
}

/* Hero Section - Clean & Spacious */
.hero {
    min-height: 85vh;
    padding-top: 100px;
    background: #ffffff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-flex-clean {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-image-main {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 30px 30px 80px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 1s forwards 0.3s;
}

.hero-image-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.hero-text-main {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-text-main h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--secondary-navy);
}

.hero-text-main h1 span {
    color: var(--primary-blue);
}

.hero-text-main p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 0; /* Inline gap managed in HTML */
}

.btn-primary {
    display: inline-block;
    padding: 18px 35px;
    background: var(--secondary-navy);
    color: white;
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-blue);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::after {
    height: 100%;
}

/* Product Section */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.title-line {
    width: 80px;
    height: 3px;
    background: var(--primary-blue);
    margin: 0 auto;
}

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

.product-card {
    background: var(--bg-white);
    padding: 0;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: 0; /* Sharp, high-precision edge */
    display: flex;
    flex-direction: column;
}

.product-image-container {
    background: #f8fafc;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    border-radius: 0;
}

/* Featured Image Cards - Smart Showcase */
.featured-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 0; /* Sharp industrial edges */
    height: 450px;
    box-shadow: var(--shadow);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}

.featured-image-card img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Prevents cropping */
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-overlay-lighting {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.featured-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
    padding: 30px;
    color: white;
    z-index: 3;
    backdrop-filter: blur(8px);
}

.featured-content-overlay h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
}

.featured-content-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.featured-image-card:hover img {
    transform: scale(1.08);
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Shows the full product */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-info {
    padding: 25px;
    position: relative;
}

.product-icon {
    position: absolute;
    top: -25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    z-index: 2;
    border: 4px solid white;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
    border-color: var(--primary-blue);
}

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

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--secondary-navy);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
}

.footer-col p {
    color: #cbd5e1;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

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

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Updates */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
        height: auto;
    }
    .hero-image-floating {
        display: none;
    }
    .hero-content, .hero-visual {
        width: 100%;
        min-height: 400px;
    }
    .hero-visual {
        clip-path: none;
        position: relative;
    }
    .hero-content {
        padding: 60px 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.5s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .about-content {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .contact-content {
        flex-direction: column !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 580px) {
    .hero h1 { font-size: 2.5rem; }
    .product-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 80px 0; }
}

/* --- Why Choose Us Section Styles --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: white;
    padding: 40px;
    border-radius: 0; /* Sharp edges for consistency */
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    opacity: 0.8;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-navy);
}

.feature-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}


/* --- High-Impact Full-Width Slideshow --- */
.hero-slideshow-wrapper {
    width: 100%;
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Removing all padding for true edge-to-edge */
}

.slideshow-frame {
    width: 100%; /* Spanning the entire width */
    max-width: none;
    height: 550px; /* Keeping a consistent professional height */
    position: relative;
    border-radius: 0; /* Sharp edges for full-width look */
    overflow: hidden;
    box-shadow: none; /* Shadow not needed for full-width */
    background: #000;
}


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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    animation: kenBurns 15s infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 10%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.4), rgba(10, 25, 47, 0.7)); /* Blue-Navy Gradient veil */
}

.hero-content-box {
    max-width: 900px;
    color: white;
    text-align: center;
}

.hero-content-box h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-content-box h1 span {
    color: var(--primary-blue);
    text-shadow: 0 0 15px rgba(0, 136, 255, 0.5); /* The extra blue glow */
}

.hero-content-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.6;
}

.slideshow-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}


.hero-btns-centered {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-secondary-outline {
    display: inline-block;
    padding: 18px 35px;
    border: 2px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: 0; /* Sharp edges */
}

.btn-secondary-outline:hover {
    background: white;
    color: var(--secondary-navy);
}


/* --- Premium Top Bar --- */
.top-bar {
    background: var(--secondary-navy);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 25px;
    opacity: 0.9;
}

.top-info i {
    color: var(--primary-blue);
    margin-right: 8px;
}

.top-social span {
    opacity: 0.9;
}

/* --- Header Actions --- */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

.btn-nav-quote {
    background: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-nav-quote:hover {
    background: var(--secondary-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .top-bar, .btn-nav-quote {
        display: none;
    }
}


/* --- Dynamic Running Ticker Styles --- */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--secondary-navy);
    padding: 3px 0; /* Razor-sharp, minimal breath */
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
}

.ticker-content span {
    padding: 0 30px;
    color: white;
    font-size: 0.75rem; /* More "little" and sophisticated */
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ticker-content span:nth-child(even) {
    color: var(--primary-blue); /* Highlighting the bullet points */
}

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

.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused; /* Pause on hover for easier reading */
}


/* --- Precision Process Styles --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: #f1f5f9;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    line-height: 1;
}

.step-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    background: white;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.process-step h3 {
    font-size: 1.3rem;
    color: var(--secondary-navy);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.process-step p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.process-step:hover .step-icon {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-5px);
    transition: var(--transition);
}

.process-step:hover .step-number {
    color: #e2e8f0;
    transition: var(--transition);
}


/* --- Full Responsiveness Engine --- */

@media (max-width: 1024px) {
    .section-title h2 { font-size: 2.5rem; }
    .hero-content-box h1 { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    #navbar .container { padding: 0 20px; }
    
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 1000;
        text-align: center;
        gap: 25px;
    }

    .nav-right-actions.active .nav-links {
        display: flex;
    }

    .btn-nav-quote {
        display: none; /* Hide in main nav on mobile */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-slideshow-wrapper { height: 450px; }
    .slideshow-frame { height: 450px; }

    .about-flex { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-title { margin-bottom: 50px; }
    .section-title h2 { font-size: 2.2rem; }
    
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }

    .hero-content-box h1 { font-size: 1.8rem; line-height: 1.2; }
    .hero-content-box p { font-size: 0.85rem; margin-bottom: 20px; }

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

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1rem; }
    .logo-icon-box { width: 50px; height: 50px; }
    .hero-slideshow-wrapper { height: 350px; }
    .slideshow-frame { height: 350px; }
    .ticker-wrapper { padding: 4px 0; }
    .ticker-content span { font-size: 0.65rem; padding: 0 15px; }
}


/* --- Floating WhatsApp Business Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: #128c7e;
}


/* --- Scalability & Maintainability Classes --- */
.footer-col-wide {
    flex: 1.5;
}

.footer-col-contact {
    flex: 1.2;
}

.footer-contact-list {
    color: #94a3b8;
    font-size: 0.9rem;
    list-style: none;
    margin-top: 20px;
}

.footer-contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact-list i {
    margin-right: 12px;
    color: var(--primary-blue);
    width: 20px;
}


/* --- Responsive Enhancements --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .featured-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-flex-container {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .about-image-box {
        width: 100% !important;
    }
}


/* --- Full Mobile Stack Fixes --- */
@media (max-width: 768px) {
    .contact-flex-container {
        flex-direction: column !important;
        gap: 50px !important;
    }
    
    #contact-form {
        grid-template-columns: 1fr !important; /* Force form to single column */
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }
    
    .footer-col {
        padding: 0 20px;
    }
    
    .footer-contact-list li {
        justify-content: center;
    }
}


/* --- Professional Form Grid System --- */
#contact-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

#contact-form input[name='subject'],
#contact-form textarea,
#contact-form button {
    grid-column: span 2 !important;
}

@media (max-width: 600px) {
    #contact-form {
        grid-template-columns: 1fr !important;
    }
    
    #contact-form input[name='subject'],
    #contact-form textarea,
    #contact-form button {
        grid-column: span 1 !important;
    }
}

