/* ==========================================================================
   STYLE SHEET FOR JA ALUMINIUM (SPESIALIS ALUMINIUM & KACA)
   ========================================================================== */

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

/* CSS Variables for Premium Theme (Navy Blue, Royal Blue, Gold, and Dark Mode) */
:root {
  --primary-color: #0d1e3d;       /* Deep Navy Blue */
  --secondary-color: #1e40af;     /* Royal Blue */
  --accent-color: #d4af37;        /* Gold (Premium Accent) */
  --accent-hover: #b8932c;       /* Darker Gold */
  --bg-dark: #121824;             /* Dark Mode Background */
  --bg-light: #ffffff;            /* Light Background */
  --bg-muted: #f8fafc;            /* Light Muted Background */
  --card-bg-dark: #1e293b;        /* Dark Card Background */
  --text-dark: #0f172a;           /* Dark Text */
  --text-light: #f8fafc;          /* Light Text */
  --text-muted: #64748b;          /* Grey Text */
  --border-color: #e2e8f0;        /* Light Border */
  --border-color-dark: #334155;   /* Dark Border */
  
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  background-color: var(--bg-light);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: var(--primary-color);
}

.logo-tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -3px;
}

/* SVG Logo Style */
.logo-svg {
  width: 42px;
  height: 42px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-item a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-item a:hover {
  color: var(--primary-color);
}

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

.nav-item.active a {
  color: var(--primary-color);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  padding: 6rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 30, 61, 0.9) 0%, rgba(18, 24, 36, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  color: #cbd5e1;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* General Section Styles */
.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-title-light {
  color: var(--text-light);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 4rem auto;
  font-size: 1.05rem;
}

.section-subtitle-light {
  color: #cbd5e1;
}

/* Section Backgrounds */
.bg-dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.bg-light-section {
  background-color: var(--bg-light);
}

.bg-muted-section {
  background-color: var(--bg-muted);
}

/* About Teaser Section */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-teaser-text h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-teaser-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-teaser-img-wrapper {
  position: relative;
}

.about-teaser-img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.testimonial-overlay {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  border-left: 4px solid var(--accent-color);
}

.testimonial-overlay-dark {
  background-color: var(--card-bg-dark);
  color: var(--text-light);
}

.testimonial-text {
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-color);
}

/* Layanan / Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  color: var(--text-light);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(30, 64, 175, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* Promo Terbatas Section */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.promo-card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color-dark);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.promo-card:hover {
  transform: scale(1.02);
  border-color: var(--accent-color);
}

.promo-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.promo-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.promo-title {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.promo-list {
  list-style: none;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 1.2rem;
}

.promo-list li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-list li::before {
  content: "•";
  color: var(--accent-color);
  font-size: 1.2rem;
}

.promo-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: auto;
}

.promo-btn-container {
  text-align: center;
}

/* About Page Styles */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.about-title-main {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-desc-main p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-wide-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Galeri & Proyek Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  background-color: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-details {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition);
}

.project-card:hover .project-arrow {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

/* Galeri Collage (Halaman Karya Kami) */
.gallery-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.gallery-title-main {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.gallery-desc-main {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.gallery-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.collage-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.collage-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.collage-small img {
  height: 190px;
}

.collage-large img {
  height: 400px;
}

/* Contact Info & Forms */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-info-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

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

.contact-info-icon {
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-info-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--primary-color);
}

.contact-info-text p,
.contact-info-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info-text a:hover {
  color: var(--secondary-color);
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-muted);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

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

/* Footer styling */
footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--border-color-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer-contact-info a {
  color: #94a3b8;
}

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

.footer-contact-icon {
  color: var(--accent-color);
  margin-top: 3px;
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color-dark);
  height: 230px;
}

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
  font-size: 0.85rem;
}

/* Responsiveness (Media Queries) */

@media (max-width: 992px) {
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-teaser-img-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-wide-img {
    height: 350px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .gallery-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-col h4::after {
    left: 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: -400px;
    left: 0;
    width: 100%;
    height: auto;
    background-color: var(--bg-light);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-menu.active {
    top: 100%;
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .promo-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .gallery-collage {
    grid-template-columns: 1fr;
  }
  
  .collage-large img {
    height: 250px;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Entrance animations on mobile - shift vertically instead of horizontally to avoid overflow */
  .animate-left, .animate-right {
    transform: translateY(40px);
  }

  /* Floating WhatsApp Button size & position adjustment for mobile/tablet */
  .floating-wa {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  }
  
  .floating-wa svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 1.25rem;
  }
  
  .testimonial-overlay {
    position: relative;
    bottom: 0;
    right: 0;
    max-width: 100%;
    margin: 1.5rem auto 0 auto;
    box-shadow: var(--shadow);
  }
}

/* Entrance Animations */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-left {
  transform: translateX(-80px);
}

.animate-right {
  transform: translateX(80px);
}

.animate-on-scroll.appear {
  opacity: 1;
  transform: translate(0, 0);
}

/* Floating WhatsApp Button */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.floating-wa svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.floating-wa:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-wa {
  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);
  }
}
