/* =======================
   MODERN BRANDING & VARIABLES
======================= */
:root {
  --primary: #10b981;    /* Solar Green */
  --primary-dark: #059669;
  --secondary: #0f172a;  /* Deep Navy (Sidebar) */
  --accent: #ffd600;     /* Solar Gold */
  --bg-body: #f1f5f9;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --sidebar-width: 250px;
  --sidebar-collapsed: 70px;
  --radius: 16px;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* =======================
   GLOBAL RESET
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, sans-serif;
}

body {
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* =======================
   LAYOUT & SIDEBAR
======================= */
.layout {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

.sidebar {
  width: var(--sidebar-width);
  background: #0f172a; /* Your secondary color */
  color: white;
  height: 100vh;
  position: fixed;
  top: 0;
  left: -250px; /* Fully hidden off-screen */
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother animation */
}
.sidebar.active {
  transform: translateX(250px);
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar.collapsed { width: var(--sidebar-collapsed); }

.toggle-btn {
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  color: #1e293b;
  display: block; /* Ensures it shows */
  z-index: 2500; /* Stays above everything */
}

/* .logo {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  padding: 25px 10px;
  letter-spacing: 1px;
  color: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
} */


.sidebar nav { margin-top: 20px; }

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar nav a:hover, .sidebar nav a.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

.sidebar.collapsed nav a span { display: none; }

/* =======================
   CONTENT AREA
======================= */
.content {
margin-left: 0;
  flex: 1;
  width: 100%;
transition: padding 0.3s ease;  /* transition: margin-left 0.3s ease; */
}


.content.expanded {
  margin-left: 0;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500; /* Stays behind sidebar but above content */
  cursor: pointer;
}

.overlay.active {
  display: block;
}

.sidebar.collapsed ~ .content {
  margin-left: var(--sidebar-collapsed);
  width: calc(100% - var(--sidebar-collapsed));
}

.top-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #e2e8f0;
  margin-left: 0;
}

.header-btn {
  margin-left: auto;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.header-btn:hover { background: var(--primary-dark); }

/* =======================
   HERO SECTION
======================= */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: white;
  padding: 100px 60px;
  margin: 20px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.15;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  display: inline-block;
  margin-top: 25px;
  background: var(--accent);
  padding: 14px 28px;
  color: #000;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 214, 0, 0.3);
}

/* =======================
   SERVICES SECTION
======================= */
.services { padding: 60px 40px; }

.services h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Note: Styles for .service-card-home are already in your HTML <style> block, 
   but this global file ensures the grid layout is perfect. */

/* =======================
   MOBILE ADAPTATION
======================= */
/* Update this block at the bottom of your style.css */
@media (max-width: 768px) {
  .sidebar {
    width: 250px; /* Keep the width */
    height: 100vh;
    position: fixed;
    left: -250px; /* Stay hidden off-screen */
    transition: transform 0.3s ease;
  }
  
  /* When active, slide it OVER the content */
  .sidebar.active {
    transform: translateX(250px);
  }

  .content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0; /* Ensure no padding causes overflow */
  }

  .hero {
    padding: 60px 20px;
    text-align: center;
  }
  .hero h1 { font-size: 32px; }
}
/* =======================
   ABOUT PAGE SPECIFIC REFINEMENTS
======================= */

.about-page {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Enhancing the Hero Section */
.about-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0f9d58 100%);
  color: white;
  padding: 80px 50px;
  border-radius: 20px;
  margin-bottom: 50px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

/* Decorative element for the hero */
.about-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.about-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.about-hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

/* Grid Layout for Who/Mission/Vision */
.about-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.about-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.about-card h2 {
  color: #0f9d58;
  font-size: 24px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-card p {
  color: #475569;
  line-height: 1.7;
  font-size: 16px;
}

/* Highlight Card (Why Choose Us) */
.about-card.highlight {
  background: #f8fafc;
  border-left: 6px solid #0f9d58;
  grid-column: 1 / -1; /* Makes it full width */
}

.about-card.highlight h2 {
  color: #0f172a;
}

.about-card ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.about-card ul li {
  padding: 12px 15px;
  background: white;
  border-radius: 8px;
  font-weight: 500;
  color: #1e293b;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
}

.about-card ul li::before {
  content: "✦";
  color: #0f9d58;
  margin-right: 10px;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-hero {
    padding: 50px 20px;
  }
  .about-hero h1 {
    font-size: 32px;
  }
}
/* =======================
   SERVICES PAGE ENHANCEMENTS
======================= */

.services-page {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Individual Service Card Refinement */
.service-card {
  background: #ffffff;
  padding: 45px 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Hover Effect: Lift and Glow */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Top Accent Bar */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #0f9d58, #1a73e8);
  opacity: 0.8;
}

/* Service Title Styling */
.service-card h3 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  line-height: 1.3;
}

/* Description Text */
.service-card p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1; /* Pushes content evenly */
}

/* Optional: Adding a 'Learn More' feel without changing HTML 
   by adding a decorative arrow via CSS */
.service-card::after {
  content: "View Details →";
  font-size: 14px;
  font-weight: 600;
  color: #0f9d58;
  margin-top: auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* =======================
   RESPONSIVE GRID TWEAKS
======================= */
@media (max-width: 768px) {
  .services-page {
    padding: 20px;
    grid-template-columns: 1fr; /* Stack on mobile */
  }
  
  .service-card {
    padding: 30px 25px;
  }
}

/* =======================
   GALLERY PAGE ENHANCEMENTS
======================= */

.gallery-page {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 18px;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

/* Gallery Card Refinement */
.gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3; /* Keeps all images uniform */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: #eee; /* Placeholder color while loading */
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

/* The Overlay - Hidden by default, slides up on hover */
.gallery-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.4) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 700;
}

.gallery-card p {
  color: var(--primary); /* Solar Green for the subtext */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =======================
   MOBILE ADAPTATION
======================= */
@media (max-width: 768px) {
  .gallery-page {
    padding: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .gallery-card .overlay {
    opacity: 1; /* Keep info visible on touch devices */
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 30%, transparent);
  }
}
/* =======================
   DASHBOARD SPECIFIC REFINEMENTS
======================= */

.dashboard-page {
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Stats Container */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--primary); /* Links to your solar green */
  transition: transform 0.3s ease;
  text-align: left; /* Better for reading numbers */
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 14px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
}

/* Dashboard Card (Table Wrapper) */
.dashboard-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  padding: 0; /* Let the table touch the edges */
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.dashboard-card h3 {
  padding: 25px;
  font-size: 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

/* Table Refinement */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  padding: 15px 25px;
  text-align: left;
}

td {
  padding: 18px 25px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 14px;
}

tr:hover {
  background-color: #f8fafc;
}

/* Status Badges */
.badge {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.badge.new { background: #dcfce7; color: #166534; }      /* Green for new leads */
.badge.approved { background: #e0f2fe; color: #075985; } /* Blue for active */
.badge.closed { background: #f1f5f9; color: #475569; }   /* Gray for finished */

/* Mobile responsiveness for tables */
@media (max-width: 900px) {
  .dashboard-card {
    overflow-x: auto;
  }
}
/* =======================
   CONTACT & FORM ENHANCEMENTS
======================= */

.contact-page {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Info on left, Form on right */
  gap: 40px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact Info Box */
.contact-info {
  background: var(--secondary); /* Deep Navy */
  color: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info h3 {
  font-size: 28px;
  color: var(--primary); /* Solar Green */
  margin-bottom: 10px;
}

.contact-info p {
  font-size: 16px;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  line-height: 1.8;
}

.contact-info strong {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

/* Booking Form Box */
.contact-form {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.contact-form h3 {
  font-size: 24px;
  color: var(--secondary);
  margin-bottom: 30px;
}

.contact-form form {
  display: grid;
  gap: 20px;
}

/* Input Styling */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #f1f5f9;
  border-radius: 12px;
  font-size: 15px;
  background: #f8fafc;
  transition: all 0.3s ease;
  color: var(--text-main);
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

/* Submit Button */
.contact-form button {
  background: var(--primary);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.contact-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* =======================
   MOBILE ADAPTATION
======================= */
@media (max-width: 900px) {
  .contact-page {
    grid-template-columns: 1fr; /* Stack panels */
    padding: 20px;
  }
  
  .contact-info, .contact-form {
    padding: 30px 20px;
  }
}

/* =======================
   DYNAMIC ANIMATIONS 
   (Add this to the bottom of style.css)
======================= */

/* 1. Keyframe Definitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* 2. Entrance Animations for Sections */
.hero, .services, .cta-section, .about-hero, .page-header {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* 3. Staggered Loading for Cards */
/* This makes cards pop up one after another rather than all at once */
.service-card-home, .service-card, .gallery-card, .stat-card {
  opacity: 0; 
  animation: fadeInUp 0.8s ease-out forwards;
}

.service-card-home:nth-child(1), .service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card-home:nth-child(2), .service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card-home:nth-child(3), .service-card:nth-child(3) { animation-delay: 0.5s; }

/* 4. Enhanced Hero Title Shimmer */
.hero h1, .about-hero h1 {
  background: linear-gradient(90deg, #fff, var(--primary), #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

/* 5. Interactive Button & Card Hover Polish */
.btn-primary, .header-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2); /* Using your --primary color */
}

/* Smooth Sidebar Transition */
.sidebar nav a {
  position: relative;
  overflow: hidden;
}

.sidebar .logo img {
  width: 110px;
  height: auto;
}
.sidebar.collapsed .logo img {
  width: 40px;
}

.sidebar nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 0;
  background: rgba(16, 185, 129, 0.05);
  transition: width 0.3s ease;
  z-index: -1;
}

.sidebar nav a:hover::after {
  width: 100%;
}
/* ======================
   WHATSAPP FLOAT BUTTON
====================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.logo {
  width: 100%;
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo img {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Better Grid for Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.feat-item {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Polished CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 80px 40px;
  margin: 40px;
  border-radius: 24px;
  color: white;
  text-align: center;
}

/* Consistent Spacing for sections */
.services, .features {
  padding: 80px 40px;
}