:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --accent: #10b981;
  --bg: #ffffff;
  --text: #1f2937;
  --header-bg: #1f2937;
  --header-text: #ffffff;
  --footer-bg: #1f2937;
  --footer-text: #ffffff;
  --card-bg: #ffffff;
  --card-radius: 12px;
  --font: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Loading */
#loading {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: #fff; z-index: 9999;
}
.spinner {
  width: 40px; height: 40px; border: 4px solid #e5e7eb;
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading p { margin-top: 1rem; color: #6b7280; }

/* Error Page */
.error-container {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh; text-align: center; padding: 2rem;
}
.error-icon { font-size: 4rem; margin-bottom: 1rem; }
.error-container h1 { font-family: 'Poppins', sans-serif; font-size: 2rem; margin-bottom: 0.5rem; }
.error-container p { color: #6b7280; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); color: var(--header-text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.header-left { display: flex; align-items: center; gap: 0.75rem; }
#header-logo { height: 40px; width: auto; border-radius: 6px; object-fit: contain; }
#header-name {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem;
}
.header-nav { display: flex; gap: 1.5rem; }
.header-nav a {
  color: var(--header-text); text-decoration: none; font-weight: 500;
  font-size: 0.95rem; opacity: 0.85; transition: opacity 0.2s;
}
.header-nav a:hover { opacity: 1; }
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--header-text); font-size: 1.5rem; cursor: pointer;
}

/* Slider */
.slider-section { width: 100%; overflow: hidden; }
.slider {
  position: relative; width: 100%; aspect-ratio: 16/6;
  background: #f3f4f6; overflow: hidden;
}
.slider-track {
  display: flex; height: 100%;
  transition: transform 0.5s ease;
}
.slider-slide {
  min-width: 100%; height: 100%;
}
.slider-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: rgba(0,0,0,0.7); }
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
  transition: background 0.2s;
}
.slider-dot.active { background: #fff; }

/* Marquee */
.marquee-section {
  background: var(--primary); color: #fff; padding: 0.6rem 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex; animation: marquee 20s linear infinite; white-space: nowrap;
}
.marquee-inner span { padding: 0 2rem; font-weight: 500; }
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Categories */
.categories-section { padding: 2rem 0 1rem; }
.category-filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center;
}
.category-btn {
  padding: 0.5rem 1.5rem; border-radius: 25px;
  border: 2px solid var(--primary); background: transparent;
  color: var(--primary); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.3s;
}
.category-btn:hover, .category-btn.active {
  background: var(--primary); color: #fff;
}

/* Portfolio Grid */
.portfolio-section { padding: 2rem 0 3rem; }
.section-title {
  font-family: 'Poppins', sans-serif; font-size: 1.8rem;
  text-align: center; margin-bottom: 2rem; color: var(--text);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.portfolio-card {
  background: var(--card-bg); border-radius: var(--card-radius);
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 0.4s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.portfolio-card.hidden { display: none; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.portfolio-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: #f3f4f6;
}
.portfolio-info { padding: 1rem; }
.portfolio-title {
  font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem;
  color: var(--text);
}
.portfolio-price {
  color: var(--accent); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.portfolio-actions { display: flex; gap: 0.5rem; }
.portfolio-actions .btn {
  flex: 1; padding: 0.5rem; border-radius: 8px;
  border: none; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s; text-align: center;
  text-decoration: none; display: flex; align-items: center;
  justify-content: center; gap: 0.3rem;
}
.btn-whatsapp {
  background: #25d366; color: #fff;
}
.btn-enquiry {
  background: var(--primary); color: #fff;
}
.btn-whatsapp:hover, .btn-enquiry:hover { opacity: 0.85; }

/* About */
.about-section {
  padding: 3rem 0; background: #f9fafb;
}
.about-content {
  max-width: 800px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.8;
  white-space: pre-wrap;
}

/* Contact */
.contact-section { padding: 3rem 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.contact-form-wrap, .contact-details-wrap {
  background: var(--card-bg); border-radius: var(--card-radius);
  padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.contact-form-wrap h3, .contact-details-wrap h3 {
  font-family: 'Poppins', sans-serif; margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.contact-form-wrap input, .contact-form-wrap textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-family: var(--font); font-size: 0.95rem;
  margin-bottom: 1rem; outline: none; transition: border-color 0.2s;
}
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus {
  border-color: var(--primary);
}
.btn-primary {
  width: 100%; padding: 0.75rem; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-icon { font-size: 1.5rem; }
.contact-item strong { display: block; margin-bottom: 0.2rem; }
.contact-item a {
  color: var(--primary); text-decoration: none;
}
.contact-item a:hover { text-decoration: underline; }
.contact-item p { color: #6b7280; }

/* Footer */
footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 1.5rem 0; text-align: center; font-size: 0.9rem;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed; bottom: 5rem; z-index: 90;
  display: flex; flex-direction: column; gap: 0.75rem;
  pointer-events: none; left: 0; right: 0;
}
.float-btn {
  position: fixed; bottom: 5.5rem;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s; pointer-events: all;
  animation: pulse 2s infinite;
}
.float-btn:hover { transform: scale(1.1); }
.float-call {
  left: 1rem; background: #10b981; color: #fff;
}
.float-whatsapp {
  right: 1rem; background: #25d366; color: #fff;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 4px 25px rgba(0,0,0,0.35); }
}

/* Mobile Bottom Nav */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--header-bg); z-index: 100;
  justify-content: space-around; padding: 0.5rem 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.mobile-nav a {
  color: var(--header-text); text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  font-size: 0.7rem; font-weight: 500; gap: 0.15rem;
  opacity: 0.75; transition: opacity 0.2s;
}
.mobile-nav a span { font-size: 1.3rem; }
.mobile-nav a:hover { opacity: 1; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 1rem;
}
.modal {
  background: #fff; border-radius: 16px; padding: 2rem;
  max-width: 450px; width: 100%; position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: none;
  border: none; font-size: 1.2rem; cursor: pointer; color: #6b7280;
}
.modal h3 { font-family: 'Poppins', sans-serif; margin-bottom: 0.25rem; }
.modal-subtitle { color: #6b7280; font-size: 0.9rem; margin-bottom: 1rem; }
.modal input, .modal textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-family: var(--font); font-size: 0.95rem;
  margin-bottom: 1rem; outline: none;
}
.modal input:focus, .modal textarea:focus { border-color: var(--primary); }

/* Toast */
.toast {
  position: fixed; top: 1rem; right: 1rem; z-index: 300;
  background: var(--accent); color: #fff; padding: 0.75rem 1.5rem;
  border-radius: 8px; font-weight: 500; transform: translateX(120%);
  transition: transform 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.toast.show { transform: translateX(0); }
.toast.error { background: #ef4444; }

/* Responsive */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 60px; left: 0; right: 0; background: var(--header-bg);
    padding: 1rem; gap: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .menu-toggle { display: block; }
  .slider { aspect-ratio: 16/9; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; }
  .floating-buttons { bottom: 4.5rem; }
  .float-btn { bottom: 5rem; width: 48px; height: 48px; font-size: 1.3rem; }
  body { padding-bottom: 3.5rem; }
  .section-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .portfolio-grid { gap: 0.75rem; }
  .portfolio-info { padding: 0.75rem; }
  .portfolio-title { font-size: 0.9rem; }
  .portfolio-price { font-size: 0.95rem; }
  .portfolio-actions .btn { font-size: 0.75rem; padding: 0.4rem; }
}
