/* Main Stylesheet for Vellamattathu Traders Website */

/* ===== VARIABLES ===== */
:root {
    --primary-color: #f3450e; /* Pomegranate */
    --secondary-color: #4c4b49; /* Fuscous Gray */
    --light-color: #f5f5f5; /* Gunsmoke */
    --white-color: #ffffff; /* Armadillo (used instead of white for darker theme) */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white-color); /* Or your preferred text color */
}

.traders-text {
    color: #4c4b49; /* Fuscous Gray */
}

.vellamattathu-text {
    color: #f3450e; /* Pomegranate */
}

html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    color: #ffffff;
}

/* Preserve visual style for contact links (no underline, no color change) */
.no-deco-link,
.no-deco-link:visited,
.no-deco-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--secondary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

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

.center-btn {
    text-align: center;
    margin-top: 30px;
}

/* ===== HEADER & NAVIGATION ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

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

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 0;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ===== BRANDS CAROUSEL ===== */
#brands-carousel {
    background-color: var(--light-color);
    padding: 60px 0;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.carousel-item {
    min-width: 200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    max-height: 80px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.carousel-item img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

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

/* ===== QUICK INTRO ===== */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.intro-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: var(--white-color);
}

.intro-item:hover {
    transform: translateY(-10px);
}

.intro-item .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.intro-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ===== FEATURED PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: var(--white-color);
}

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

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-info p {
    margin-bottom: 15px;
    color: #666;
}

.product-info .brand {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
#footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-logo p {
    color: #ccc;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

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

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ccc;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    color: var(--white-color);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
}

/* ===== lightbox ===== */
.lightbox-controls {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.lightbox-controls button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.lightbox-controls button:hover {
    background-color: #d43e0b;
}

.lightbox-img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

/* ===== hero section ===== */
#fullscreen-slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    color: white;
    max-width: 90%;
    backdrop-filter: blur(5px);
}

.slide-caption h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.slide-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.slide-caption .btn {
    padding: 10px 25px;
    font-size: 1rem;
}

/* Slideshow Buttons */
.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    z-index: 3;
}

.slideshow-btn.prev {
    left: 20px;
}

.slideshow-btn.next {
    right: 20px;
}
