/* Modern Professional Styles */

:root {
  --primary: #ff6600;
  --primary-dark: #cc5500;
  --secondary: #2c3e50;
  --accent: #f39c12;
  --light: #f8f9fa;
  --lighter: #ffffff;
  --dark: #2c3e50;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --border: #e9ecef;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* Header Styling */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;  
  height: 120px; /* More natural navbar height */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 10px; /* More natural navbar height */
}

.logo img {
  height: 100px; /* Balanced logo size */
  transition: transform 0.2s ease;
  filter: drop-shadow(0 0.5px 1px rgba(0, 0, 0, 0.1));
}

.logo img:hover {
  transform: scale(1.03);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem; /* Comfortable spacing */
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem; /* More readable */
  padding: 0.5rem 0.9rem; /* Proper click area */
  border-radius: 20px;
  transition: all 0.15s ease;
  position: relative;
  letter-spacing: 0.2px;
}

nav a:hover {
  color: var(--primary);
  background: rgba(255, 102, 0, 0.04);
  transform: translateY(-0.5px);
}

nav a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

nav a:hover::before {
  width: 60%;
}

.menu-toggle {
  display: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
  padding: 0.4rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    height: 56px;
  }
  
  .logo img {
    height: 30px;
  }
  
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    gap: 0.8rem;
    display: none;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav a {
    padding: 0.7rem;
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }
}

/* Active state for current page */
nav a.active {
  color: var(--primary);
  background: rgba(255, 102, 0, 0.1);
  font-weight: 600;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
              url('https://images.unsplash.com/photo-1449247666642-264389f5f5b1?q=80&w=1169&auto=format&fit=crop') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 300;
}

.btn {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255,102,0,0.3);
  display: inline-block;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,102,0,0.4);
  background: linear-gradient(45deg, var(--primary-dark), var(--primary));
}

/* Sections */
section {
  padding: 5rem 0;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  margin: 1rem auto;
  border-radius: 2px;
}

/* Categories Section */
.categories {
  background: var(--lighter);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.category-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.category-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card span {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  display: block;
}

/* Trending Deals Section */
.trending {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.trending h2 {
  color: white;
}

.trending h2::after {
  background: white;
}

.section-overlay {
  background: rgba(0,0,0,0.1);
  padding: 3rem 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.deal-card {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
}

/* Footer Styles */
footer {
  background: #333;
  color: #fff;
  padding: 40px 0; /* Increased padding for better spacing */
  text-align: center;
  margin-top: 50px;
}

footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px; /* Adjusted padding for better responsiveness */
}

footer p {
  margin-bottom: 15px; /* Increased margin for better spacing */
  font-size: 0.9rem;
  text-align: center;
}

.newsletter {
  margin-top: 20px;
  display: flex; /* Use flexbox for alignment */
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center align items horizontally */
  text-align: center; /* Center text within the container */
}

.newsletter h2 {
  font-size: 1.8rem; /* Increased font size for better visibility */
  margin-bottom: 15px; /* Increased margin for better spacing */
  color: var(--orange);
}

#newsletter-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 600px; /* Set a max width for the form */
  margin: 0 auto; /* Center the form */
}

#newsletter-form input[type="email"] {
  padding: 12px 15px; /* Increased padding for better touch targets */
  border-radius: 20px;
  border: 1px solid var(--secondary);
  outline: none;
  font-size: 1rem;
  min-width: 280px;
  flex: 1;
  transition: border-color 0.3s;
}

#newsletter-form input[type="email"]:focus {
  border-color: var(--orange);
}

#newsletter-form button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 25px; /* Increased padding for better touch targets */
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#newsletter-form button:hover {
  background: var(--dark-orange);
  transform: translateY(-2px);
}
