/* style.css - Premium Styles for Kunci Gemilang */

/* Import modern architectural typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800;900&display=swap');

/* CSS Variables */
:root {
  --primary-red: #d32f2f;
  --primary-red-hover: #b71c1c;
  --primary-red-light: #ffebee;
  --about-red: #d32f2f; /* Matching the red color in the reference image */
  --text-dark: #111827;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --bg-footer: #e5e7eb;
  --success-green: #25d366; /* WhatsApp Green */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.05);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-type: border-box;
  box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)), url('assets/hero_bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--bg-white);
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 550px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* About Us Section */
.about-banner {
  background-color: var(--about-red);
  color: var(--bg-white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

.about-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.about-banner-sub {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.about-banner-desc {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* Profile Details Section */
.profile {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-main-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.profile-heading-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.profile-heading-wrapper {
  grid-column: 1;
}

.profile-heading-wrapper h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
}

.profile-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  height: 100%;
}

.profile-img-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.profile-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

.profile-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0.5rem 0;
}

.profile-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Features Grid */
.features {
  padding: 2rem 0 4rem 0;
  background-color: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red-light);
}

.feature-icon-wrapper {
  background-color: var(--primary-red);
  color: var(--bg-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.feature-content {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Contact Details Cards */
.contact-cards {
  padding: 3rem 0;
  background-color: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: transparent;
  transition: var(--transition);
}

.contact-card.location-card:hover::before {
  background-color: var(--primary-red);
}

.contact-card.whatsapp-card:hover::before {
  background-color: var(--success-green);
}

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

.contact-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-card .contact-icon-box {
  background-color: var(--primary-red-light);
  color: var(--primary-red);
}

.whatsapp-card .contact-icon-box {
  background-color: #e8f9ef;
  color: var(--success-green);
}

.contact-icon-box svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

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

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

.contact-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.whatsapp-card .contact-heading {
  color: var(--primary-red); /* Keep heading red as in design */
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 500;
}

.contact-phone {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0.5rem;
  letter-spacing: -0.5px;
}

/* Vision and Mission Section */
.vision-mission {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.vm-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vm-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vm-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-red);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2);
}

.vm-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.vm-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-red);
}

.vm-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.vm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vm-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.vm-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-red);
}

/* Footer */
.site-footer {
  background-color: var(--bg-footer);
  height: 80px;
  width: 100%;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styling */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .profile-grid, .vm-grid {
    gap: 3rem;
  }
  .contact-grid {
    gap: 1.5rem;
  }
  .contact-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    height: 100dvh;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .about-banner {
    padding: 4rem 1.5rem;
  }
  .about-banner h2 {
    font-size: 2rem;
  }
  .profile-main-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .profile-right {
    gap: 1.5rem;
    height: auto;
  }
  .profile-heading-row {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .vm-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .profile {
    padding: 4rem 0;
  }
  .vision-mission {
    padding: 4rem 0;
  }
}
