/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --color-primary: #d4af37;
  --color-dark: #0f0f0f;
  --color-darker: #000;
  --color-light: #ffffff;
  --color-grey: #777;
  --color-card-bg: #1a1a1a;
  --color-border: #333;
  --transition-speed: 0.3s;
  --border-radius: 10px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--color-dark);
  color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Accessibility - Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip to main content for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-darker);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Header - Sticky Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-speed) ease;
}

.header.scrolled {
  padding: 15px 60px;
}

.logo {
  height: 40px;
  max-width: 160px;
  object-fit: contain;
  transition: transform var(--transition-speed) ease;
}

.logo:hover {
  transform: scale(1.05);
}

.header nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header nav a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.header nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--color-primary);
  transition: width var(--transition-speed) ease;
}

.header nav a:hover::after {
  width: 100%;
}

.header nav a:hover {
  color: #f0c75e;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  background: linear-gradient(
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.6)
  ), url("../assets/office.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 80px);
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content {
  max-width: 800px;
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-content span {
  color: var(--color-primary);
  display: block;
}

.hero-content p {
  margin-top: 15px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #e0e0e0;
  margin-bottom: 10px;
}

.cta {
  display: inline-block;
  margin-top: 25px;
  padding: 16px 40px;
  background: var(--color-primary);
  color: var(--color-darker);
  font-weight: 600;
  border-radius: 5px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta:hover {
  background: #f0c75e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: #25D366;
  color: white;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-speed) ease;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sections */
.section {
  padding: clamp(60px, 8vw, 100px) clamp(30px, 6vw, 60px);
  text-align: center;
}

.section h2 {
  color: var(--color-primary);
  margin-bottom: 50px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Services Section */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service {
  background: var(--color-card-bg);
  padding: 45px 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.service:hover::before {
  transform: scaleX(1);
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
  border-color: var(--color-primary);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.service h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.service p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Why Choose Us Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.feature {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--color-light);
}

.feature p {
  color: #aaa;
  line-height: 1.7;
}

/* Projects Gallery */
.dark {
  background: var(--color-darker);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 30px 20px;
  transform: translateY(100%);
  transition: transform var(--transition-speed) ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.gallery-overlay p {
  color: #ddd;
  font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-container {
  max-width: 900px;
  margin: 40px auto 0;
}

.testimonial {
  background: var(--color-card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-primary);
  margin-bottom: 30px;
  transition: all var(--transition-speed) ease;
}

.testimonial:hover {
  transform: translateX(10px);
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  font-style: italic;
  color: #ddd;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author-info h4 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.testimonial-author-info p {
  color: var(--color-grey);
  font-size: 0.9rem;
}

.rating {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Contact Form */
form {
  max-width: 500px;
  margin: 40px auto 0;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--color-border);
  background: var(--color-card-bg);
  color: var(--color-light);
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

input:focus,
textarea:focus {
  border-color: var(--color-primary);
  background: #222;
}

input::placeholder,
textarea::placeholder {
  color: #666;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-darker);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

button[type="submit"]:hover {
  background: #f0c75e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

button[type="submit"]:active {
  transform: translateY(0);
}

.form-status {
  margin-top: 15px;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  display: none;
}

.form-status.success {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid #25D366;
  color: #25D366;
}

.form-status.error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid #ff3b30;
  color: #ff3b30;
}

/* Footer */
footer {
  background: var(--color-darker);
  padding: 60px 60px 30px;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-section h3 {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: #aaa;
  line-height: 2;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-card-bg);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1.2rem;
  transition: all var(--transition-speed) ease;
}

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

.social-links a svg {
  display: block;
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  color: var(--color-grey);
  font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-darker);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #f0c75e;
  transform: translateY(-5px);
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--color-darker);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 15px 30px;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .header nav.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    background: linear-gradient(
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.3)
    ), url("../assets/mobile-hero.jpg") center/cover no-repeat;
    padding: 60px 30px;
    min-height: 70vh;
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .section {
    padding: 60px 30px;
  }

  .service-grid,
  .features-grid,
  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-btn {
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-icon svg {
    width: 32px;
    height: 32px;
  }

  .scroll-top {
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  form {
    padding: 0 10px;
  }
}

/* Lazy Loading - Fade In Animation */
.lazy-load {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.lazy-load.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Print Styles */
@media print {
  .header,
  .whatsapp-float,
  .scroll-top,
  form {
    display: none;
  }
}
