/* ============================================================================
   MODULAR CSS STYLESHEET - Chef Anwar Miah
   ============================================================================
   Table of Contents:
   1. CSS Variables
   2. Reset & Base Styles
   3. LINK RESET (Nuclear Override)
   4. Typography
   5. Layout Components (Navigation, Hero, Sections)
   6. UI Components (Buttons, Cards, Forms)
   7. Page Sections (About, Services, Expertise, Portfolio, Testimonials, Contact)
   8. Footer
   9. Utilities
   10. Responsive Design
   ============================================================================ */

/* ============================================================================
   1. CSS VARIABLES
   ============================================================================ */
:root {
  /* Colors */
  --primary-color: #d4a259;
  --secondary-color: #2c5f5f;
  --accent-color: #3d8b8b;
  --dark-bg: #1f2d2d;
  --light-bg: #f4f1ed;
  --text-primary: #3d3d3d;
  --text-light: #6b6b6b;
  --white: #ffffff;
  
  /* Spacing */
  --section-padding: 100px;
  --card-padding: 2rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 3rem;
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.35s ease;
  --transition-slow: all 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================================================
   3. LINK RESET - CLEANED
   ============================================================================ */
a, 
a:hover, 
a:focus, 
.navbar-brand, 
.nav-link {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Kill all pseudo-elements for the brand specifically */
.navbar-brand::before,
.navbar-brand::after {
  content: none !important;
  display: none !important;
}

/* ============================================================================
   4. TYPOGRAPHY
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.2rem); }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
}

/* ============================================================================
   3. LINK RESET - CLEANED
   ============================================================================ */
a, 
a:hover, 
a:focus, 
.navbar-brand, 
.nav-link {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Kill all pseudo-elements for the brand specifically */
.navbar-brand::before,
.navbar-brand::after {
  content: none !important;
  display: none !important;
}

/* ============================================================================
   5. LAYOUT COMPONENTS - Navigation
   ============================================================================ */
.navbar {
  background: rgba(44, 95, 95, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-normal);
  /* Removed shadow to ensure no 'line' appears under the bar */
  box-shadow: none !important;
  border: none !important;
  z-index: 1000;
  position: sticky;
  top: 0;
}

.navbar-brand {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: 0.5px !important;
  /* Ensure it's treated as a block to respect no-decoration */
  display: inline-block; 
  /* Total line kill */
  text-decoration: none !important;
  background: transparent !important;
}

.navbar-brand:hover {
  color: var(--white) !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  margin: 0 1rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-normal);
  padding: 0.5rem 0 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

/* Only apply the animated line to NAV LINKS, not the brand */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 70%;
}

/* Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  text-align: center;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  color: var(--white);
  font-weight: 600;
}

.hero-content .lead {
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Layout
   ========================================================================== */
.section-padding {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition-normal);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: var(--gap-lg);
  line-height: 1.8;
}

/* ============================================================================
   6. UI COMPONENTS
   ============================================================================ */

/* Buttons
   ========================================================================== */
.btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  display: inline-block;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  font-size: 0.9rem;
}

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

.btn-primary:hover {
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 162, 89, 0.3);
}

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

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

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

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: var(--white) !important;
}

/* Cards
   ========================================================================== */
.card-base {
  background: var(--white);
  padding: var(--card-padding);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.card-base:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Forms
   ========================================================================== */
.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  transition: var(--transition-fast);
  font-size: 1rem;
  width: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(212, 162, 89, 0.25);
}

.form-control::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: block;
}

/* ============================================================================
   7. PAGE SECTIONS
   ============================================================================ */

/* About Section
   ========================================================================== */
#about {
  background: var(--white);
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 550px;
  margin: 0 auto;
  transition: var(--transition-normal);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: var(--transition-slow);
}

.about-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.achievements {
  display: flex;
  gap: var(--gap-lg);
  margin-top: var(--gap-md);
  flex-wrap: wrap;
}

.achievement-item {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.achievement-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.achievement-item p {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0;
}

/* Services Section
   ========================================================================== */
#services {
  background: var(--light-bg);
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 75px;
  height: 75px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(125deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: rotate(15deg) scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.service-details {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  text-align: left;
}

.service-details li {
  padding: 0.5rem 0;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.5rem;
}

.service-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Expertise Section
   ========================================================================== */
#expertise {
  background: var(--white);
}

.expertise-card {
  background: linear-gradient(125deg, #5a7a7a, #3d5a5a);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-normal);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(125deg, #6a8a8a, #4d6a6a);
  opacity: 0;
  transition: var(--transition-normal);
}

.expertise-card:hover::before {
  opacity: 1;
}

.expertise-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.expertise-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.expertise-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.recognition-section {
  background: var(--light-bg);
  padding: var(--gap-lg);
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-color);
  margin-top: var(--gap-lg);
}

.recognition-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.recognition-content p {
  margin-bottom: 0;
  line-height: 1.8;
  color: var(--text-primary);
}

/* Portfolio Section
   ========================================================================== */
#portfolio {
  background: var(--light-bg);
}

.case-study-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.case-study-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(125deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 500;
  font-size: 1.1rem;
}

.case-study-content {
  padding: 1.5rem;
}

.case-study-content h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.case-study-label {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.case-study-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-study-content li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.case-study-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Testimonials Section
   ========================================================================== */
#testimonials {
  background: var(--white);
}

.testimonial-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
  height: 100%;
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--secondary-color);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contact Section
   ========================================================================== */
#contact {
  background: var(--dark-bg);
  color: var(--white);
}

#contact .section-title,
#contact h5 {
  color: var(--primary-color);
}

#contact p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-info {
  margin-top: var(--gap-md);
}

.contact-item {
  margin-bottom: var(--gap-md);
}

.contact-item h5 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-item p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  color: var(--white);
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-select option {
  background: var(--secondary-color);
  color: var(--white);
}

/* Form Messages */
#formMessage {
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: none;
  margin-top: 1rem;
  font-weight: 500;
}

#formMessage.success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid #28a745;
  color: #28a745;
  display: block;
}

#formMessage.error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid #dc3545;
  color: #dc3545;
  display: block;
}

/* ============================================================================
   8. FOOTER
   ============================================================================ */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--white);
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.social-icon {
  font-size: 0.9rem;
  font-weight: 600;
  font-style: normal;
}

/* ============================================================================
   9. UTILITIES
   ============================================================================ */
.bg-dark {
  background-color: var(--dark-bg) !important;
}

.bg-light {
  background-color: var(--light-bg) !important;
}

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

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-muted {
  color: var(--text-light) !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

/* ============================================================================
   10. RESPONSIVE DESIGN
   ============================================================================ */

/* Large Tablets and Below */
@media (max-width: 991px) {
  :root {
    --section-padding: 80px;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }

  .hero-section {
    height: 70vh;
  }

  .achievements {
    gap: var(--gap-md);
  }
}

/* Tablets and Below */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px;
  }

  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .achievements {
    flex-direction: column;
    gap: var(--gap-md);
  }

  .service-card,
  .expertise-card,
  .testimonial-card,
  .case-study-card {
    margin-bottom: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Mobile Devices */
@media (max-width: 575px) {
  :root {
    --section-padding: 40px;
    --card-padding: 1.5rem;
  }

  .navbar-brand {
    font-size: 1.25rem !important;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .social-links {
    justify-content: center;
  }
}

/* Full Page Construction Overlay */
.construction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg); /* Using your teal-dark color */
    z-index: 9999; /* Ensures it sits above the navbar and video */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.overlay-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.chef-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* The Corner X */
.overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.overlay-close:hover {
    color: var(--primary-color);
}

/* Progress Bar Visual */
.status-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    margin: 2rem 0;
    border-radius: 2px;
}

.status-progress {
    width: 75%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Class to trigger the fade out */
.overlay-hidden {
    opacity: 0;
    visibility: hidden;
}