/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --bg-body: #050505;        /* Deep Black */
  --bg-sidebar: #0a0a0a;     /* Sidebar Black */
  --bg-card: #121212;        /* Card Grey */
  --primary: #00f2ff;        /* Neon Cyan */
  --primary-glow: rgba(0, 242, 255, 0.4);
  --text-main: #ffffff;
  --text-muted: #999999;     /* Lighter gray for readability */
  --border-light: rgba(255, 255, 255, 0.1);
  --sidebar-width: 280px;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.8; /* Increased spacing for text */
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; border-radius: var(--radius); }

/* =========================================
   2. SIDEBAR NAVIGATION (FIXED Z-INDEX)
   ========================================= */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-width); height: 100vh;
  background: var(--bg-sidebar); border-right: 1px solid var(--border-light);
  padding: 2rem; display: flex; flex-direction: column;
  z-index: 3000; /* Highest Priority: Sits over everything */
  transition: transform 0.4s ease;
}

.logo img { height: 50px; width: auto; margin-bottom: 3rem; }

.nav-links { display: flex; flex-direction: column; gap: 1.2rem; flex-grow: 1; }
.nav-links a {
  color: var(--text-muted); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1px; padding: 10px 0;
  display: flex; align-items: center; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); padding-left: 15px; }
.nav-links a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; background: var(--primary); border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.sidebar-footer { margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--border-light); }

/* Sexy Social Icons */
.social-icons { display: flex; gap: 15px; justify-content: flex-start; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888; transition: all 0.3s ease;
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon:hover {
  background: rgba(0, 242, 255, 0.1); border-color: var(--primary);
  color: var(--primary); box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-3px);
}

/* =========================================
   3. MOBILE HEADER (HAMBURGER LEFT, LOGO RIGHT)
   ========================================= */
.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
}

.mobile-header {
  display: none; /* Hidden on Desktop */
  position: fixed; top: 0; left: 0; width: 100%; height: 70px;
  background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(15px);
  z-index: 2000; 
  align-items: center; 
  justify-content: space-between; /* Pushes Button Left, Logo Right */
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-logo { font-weight: 900; color: white; letter-spacing: 1px; font-size: 1.3rem; }
.mobile-logo span { color: var(--primary); }

.hamburger { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 5px; }
.hamburger span { width: 30px; height: 2px; background: white; transition: 0.3s; }

/* =========================================
   4. LAYOUT & SPACING (PRODUCT FIXES)
   ========================================= */
.section { padding: 6rem 4rem; } /* Big padding prevents "jampacked" look */
.inner { max-width: 1400px; margin: 0 auto; }

/* Product/Service Detail Layout */
.product-top-grid {
  display: grid;
  /* Wide columns with minimum 400px width prevents squashing */
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
  gap: 6rem; /* Huge gap between image and text */
  margin-bottom: 6rem;
  align-items: center;
}

.product-main-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.detail-section {
  margin-bottom: 3rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-light);
}

/* Tables */
.specs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 1.1rem; }
.specs-table th, .specs-table td { padding: 25px 15px; border-bottom: 1px solid var(--border-light); }
.specs-table th { color: var(--text-main); width: 35%; }
.specs-table td { color: var(--text-muted); }

/* Service Rows */
.service-row {
  display: flex; gap: 5rem; margin-bottom: 5rem; align-items: center;
  background: rgba(255,255,255,0.02); padding: 4rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: var(--transition);
}
.service-row:hover { border-color: var(--border-light); background: rgba(255,255,255,0.04); }
.service-img { width: 400px; height: 280px; object-fit: cover; border-radius: 12px; }
.service-info { flex: 1; }

/* =========================================
   5. GALLERIES (FIXED FOR MOBILE)
   ========================================= */

/* Home Page: Strip */
.gallery-home-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, 1fr); /* Mobile Default: 2 cols */
}
.gallery-home-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; cursor: pointer; transition: 0.4s; border-radius: 8px; }
.gallery-home-grid img:hover { transform: scale(1.05); z-index: 2; box-shadow: 0 0 20px var(--primary-glow); }

/* Full Page: Grid */
.gallery-page-grid {
  display: grid;
  gap: 15px;
  /* 150px ensures 2 columns on mobile, auto-fill on desktop */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.gallery-page-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; cursor: pointer; transition: 0.4s; border-radius: 8px; }
.gallery-page-grid img:hover { transform: scale(1.05); border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }

/* =========================================
   6. CARDS, HERO & UTILS
   ========================================= */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; }
.card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }
.card img { height: 280px; object-fit: cover; width: 100%; transition: 0.5s; }
.card-content { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }

.hero { position: relative; height: 60vh; min-height: 450px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(50%); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--bg-body), transparent 60%); z-index: -1; }
.hero-text { text-align: left; max-width: 900px; padding: 2rem; margin-right: auto; margin-left: 8%; z-index: 1; }
.hero h1 { font-size: clamp(3rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; color: white; }

.btn { display: inline-block; padding: 14px 35px; border: 1px solid var(--primary); border-radius: 50px; color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; background: transparent; margin-top: auto; align-self: flex-start; transition: var(--transition); cursor: pointer; }
.btn:hover { background: var(--primary); color: #000; box-shadow: 0 0 25px var(--primary-glow); }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(5px); justify-content: center; align-items: center; animation: fadeIn 0.3s; }
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 80vh; border: 1px solid var(--primary); box-shadow: 0 0 50px var(--primary-glow); animation: zoomIn 0.3s; }
.close-lightbox { position: absolute; top: 20px; right: 20px; color: white; font-size: 40px; cursor: pointer; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes zoomIn { from {transform:scale(0.9);} to {transform:scale(1);} }

/* =========================================
   7. MEDIA QUERIES (RESPONSIVENESS)
   ========================================= */

/* Desktop Specifics */
@media (min-width: 1024px) {
  /* Home Gallery: 7 Columns in one line */
  .gallery-home-grid { grid-template-columns: repeat(7, 1fr) !important; }
}

/* Mobile Specifics */
@media (max-width: 1023px) {
  /* Sidebar Slide Logic */
  .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 5px 0 20px rgba(0,0,0,0.5); }
  .sidebar.active { transform: translateX(0); }
  
  /* Main Content Push */
  .main-content { margin-left: 0; width: 100%; margin-top: 70px; }
  
  /* Show Mobile Header */
  .mobile-header { display: flex; }
  
  /* Spacing Adjustments */
  .section { padding: 3rem 1.5rem; }
  .hero-text { text-align: center; margin: 0 auto; padding: 1rem; }
  
  /* Product Page Stacking (Fixes Jampacked Look) */
  .product-top-grid { grid-template-columns: 1fr; gap: 3rem; }
  
  /* Service Page Stacking */
  .service-row { flex-direction: column; gap: 2rem; padding: 2rem; }
  .service-img { width: 100%; height: 250px; }
  
  /* Home Gallery: Show only 4 images */
  .gallery-home-grid img:nth-child(n+5) { display: none; }
}
