/* ===========================
   TEKNISI RUMAHAN - MAIN CSS
   ========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a3a52;
  --primary-dark: #0f2438;
  --primary-light: #2d5a7b;
  --accent-color: #00d4ff;
  --accent-hover: #00b8d4;
  --text-light: #e0e0e0;
  --text-dark: #1a1a1a;
  --bg-light: #f5f5f5;
  --bg-dark: #0a0e27;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
   ========================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ===========================
   HEADER & NAVIGATION
   ========================== */

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 700;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: white;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

nav a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.cta-button {
  background: var(--accent-color);
  color: var(--primary-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* ===========================
   HERO SECTION
   ========================== */

.hero {
  background: linear-gradient(135deg, rgba(26, 58, 82, 0.95) 0%, rgba(15, 36, 56, 0.95) 100%), 
              url('../images/FfJ9cMPE4mwd.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.1) 0%, rgba(26, 58, 82, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero p {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border: 2px solid var(--accent-color);
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--primary-dark);
  text-decoration: none;
}

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

/* ===========================
   SECTIONS & CONTAINERS
   ========================== */

section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ===========================
   FEATURES SECTION
   ========================== */

.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #e0e0e0;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--accent-color);
}

.feature-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===========================
   SERVICES SECTION
   ========================== */

.services {
  background: linear-gradient(135deg, #f9f9f9 0%, white 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--accent-color);
}

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

.service-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent-color);
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.service-content p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  margin-bottom: 1rem;
}

.service-list li {
  color: #555;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.service-list li::before {
  content: '✓ ';
  color: var(--success-color);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ===========================
   TESTIMONIALS SECTION
   ========================== */

.testimonials {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.testimonials .section-title h2,
.testimonials .section-title p {
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

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

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--accent-color);
}

/* ===========================
   PRICING SECTION
   ========================== */

.pricing {
  background: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.pricing-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  color: var(--accent-color);
  font-weight: 700;
  margin: 1rem 0;
}

.price-note {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-features li::before {
  content: '✓ ';
  color: var(--success-color);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ===========================
   AREAS SECTION
   ========================== */

.areas {
  background: linear-gradient(135deg, #f9f9f9 0%, white 100%);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.area-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.area-item:hover {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(26, 58, 82, 0.05));
  transform: translateY(-5px);
}

.area-item h4 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.area-item p {
  font-size: 0.9rem;
  color: #666;
}

/* ===========================
   ABOUT SECTION
   ========================== */

.about {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.about-text h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.about-text p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-list {
  list-style: none;
  margin: 2rem 0;
}

.about-list li {
  padding: 0.8rem 0;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  padding-left: 2rem;
  position: relative;
}

.about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* ===========================
   CONTACT SECTION
   ========================== */

.contact {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.contact .section-title h2,
.contact .section-title p {
  color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-item h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #e0e0e0;
  margin: 0;
}

.contact-item a {
  color: var(--accent-color);
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: white;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.15);
}

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

.form-submit {
  background: var(--accent-color);
  color: var(--primary-dark);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ===========================
   GOOGLE MAPS
   ========================== */

.map-container {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ===========================
   FOOTER
   ========================== */

footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #e0e0e0;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

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

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

.footer-links a {
  color: #e0e0e0;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  color: var(--primary-dark);
}

/* ===========================
   FLOATING WHATSAPP BUTTON
   ========================== */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===========================
   RESPONSIVE DESIGN
   ========================== */

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-wrap: wrap;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--primary-dark);
    padding: 1rem;
    gap: 0.5rem;
    width: 100%;
  }

  nav.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 1rem;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .features-grid,
  .services-grid,
  .testimonials-grid,
  .pricing-grid,
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  section {
    padding: 2rem 1rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }

  .map-container iframe {
    height: 300px;
  }

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

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 2rem 1rem;
    min-height: 300px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subtitle {
    font-size: 0.9rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .price {
    font-size: 2rem;
  }

  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
    font-size: 20px;
  }
}

/* ===========================
   UTILITY CLASSES
   ========================== */

.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

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

.text-accent {
  color: var(--accent-color);
}

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

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

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}
