/* style.css - Updated for Balaji Sweets & Snacks */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #1a1a1a;
    --dark-brown: #3d2b1f;
    --red-accent: #dc2626; /* Changed to red to match Balaji logo */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styles */
.logo-img, .footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

/* Header / Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: var(--red-accent);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 30px; }
.next { right: 30px; }

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 4;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red-accent);
}

.nav-link:hover {
    color: var(--red-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Text */
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--red-accent);
}


.features {
  padding: 220px 0; /* more top & bottom space */
  background: #ffffff;
}

.features-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  text-align: center;
}

/* animation setup */
.feature-box {
  flex: 1;
  padding: 25px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

/* delay animation for each card */
.feature-box:nth-child(1) { animation-delay: 0.2s; }
.feature-box:nth-child(2) { animation-delay: 0.4s; }
.feature-box:nth-child(3) { animation-delay: 0.6s; }
.feature-box:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.icon {
  width: 100px;
  height: 100px;
  background: #ff7a00;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 30px;
  transition: transform 0.3s ease;
}

/* subtle hover effect */
.feature-box:hover .icon {
  transform: scale(1.1);
}

.feature-box h3 {
  color: #ff7a00;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-size: 18px; /* bigger heading */
}

.feature-box p {
  color: #666;
  font-size: 15.5px; /* bigger text */
  line-height: 1.7;
}


/* About Section */
.about {
    padding: 120px 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    font-size: 3rem;
    color: var(--primary-black);
    margin-bottom: 30px;
    font-weight: 700;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--red-accent);
    margin-bottom: 5px;
}

/* Menu Section */
.menu {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    color: var(--primary-black);
    margin-bottom: 80px;
    font-weight: 700;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.menu-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.menu-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.menu-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-overlay {
    transform: translateY(0);
}

.menu-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Outlets Section */
.outlets {
    padding: 120px 0;
    background: var(--light-gray);
}

.outlets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.outlet-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.outlet-card:hover {
    transform: translateY(-10px);
}

.outlet-icon {
    width: 80px;
    height: 80px;
    background: var(--red-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.outlet-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-black);
}

/* Contact Section */
.contact {
    padding: 120px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    gap: 20px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--red-accent);
    width: 60px;
    margin-right: 20px;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red-accent);
}

/* CTA Button */
.cta-button {
    background: var(--red-accent);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.4);
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    color: var(--red-accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--dark-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white); /* WHITE ICONS */
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--red-accent);
    color: var(--white); /* WHITE ON HOVER */
    transform: translateY(-3px);
}


.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(26,26,26,0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .outlets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
}
