@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  --primary-blue: #003B73;
  --secondary-blue: #0074B7;
  --primary-yellow: #F6C90E;
  --light-bg: #F4F9F9;
  --text-dark: #1F2833;
  --text-light: #F4F9F9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Language Toggle Logic */
body.lang-id .en-text { display: none !important; }
body.lang-en .id-text { display: none !important; }

/* Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--light-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-ripple {
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--primary-yellow);
  opacity: 0;
  animation: ripple 2.5s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(15); opacity: 0; }
}

.splash-logo {
  width: 250px;
  animation: fluidSplash 3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  transform-origin: center;
  z-index: 2;
}

@keyframes fluidSplash {
  0% { transform: scale(0.9) translateY(10px); opacity: 0.7; filter: blur(2px); }
  30% { transform: scale(1.05) translateY(-5px); opacity: 1; filter: blur(0px) drop-shadow(0 20px 30px rgba(0,59,115,0.4)); }
  70% { transform: scale(1) translateY(0px); opacity: 1; filter: blur(0px) drop-shadow(0 10px 15px rgba(0,59,115,0.2)); }
  100% { transform: scale(0.9) translateY(10px); opacity: 0.7; filter: blur(2px); }
}

/* Scroll Animation Utilities */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Dynamic Background Animations */
.dynamic-bg {
  background: linear-gradient(-45deg, #e9f2f9, #d0e5f5, #fdf6e3, #dbeaf5);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Particles Animation */
.particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--primary-yellow);
  border-radius: 50%;
  animation: flyUp 10s infinite linear;
  opacity: 0;
}

.particle:nth-child(even) { background: rgba(255, 255, 255, 0.8); }

@keyframes flyUp {
  0% { transform: translateY(110vh) scale(0.5); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(244, 249, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

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

.nav-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-yellow);
  transition: width 0.3s ease;
}

nav ul li a:hover { color: var(--secondary-blue); }
nav ul li a:hover::after { width: 100%; }

/* Custom Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(0, 59, 115, 0.1);
  border-radius: 30px;
  padding: 4px;
  cursor: pointer;
}

.lang-switch span {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.lang-switch span.active {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 59, 115, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 5% 40px; /* Fixed padded top to avoid crop */
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.15;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--secondary-blue);
  position: relative;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 18px;
  bottom: 8px;
  left: 0;
  background-color: rgba(246, 201, 14, 0.5);
  z-index: -1;
}

.hero-content p {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  background-color: var(--primary-yellow);
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(246, 201, 14, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(246, 201, 14, 0.6);
  background-color: #e5ba09;
}

.hero-photo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: perspective(1000px);
}

.hero-rounded-img {
  max-width: 90%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 40px 60px rgba(0, 59, 115, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8);
  transform: rotateY(-8deg) rotateX(5deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-rounded-img:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 50px 80px rgba(0, 59, 115, 0.35), 0 0 0 2px var(--primary-yellow);
}

/* Common Section Styles */
.section {
  padding: 7rem 5%;
  position: relative;
}

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

.section-subtitle {
  text-align: center;
  color: #718096;
  font-size: 1.2rem;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section Specifics - Modern Asymmetrical */
#about {
  background-color: transparent;
  padding: 8rem 5%;
  position: relative;
  overflow: hidden;
}

#about::before {
  content: 'SINERGI';
  position: absolute;
  font-size: clamp(6rem, 15vw, 16rem);
  font-weight: 900;
  color: rgba(0, 59, 115, 0.03);
  top: 10%;
  left: -2%;
  z-index: -1;
  pointer-events: none;
}

.about-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6rem;
  max-width: 1300px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  position: relative;
  border-radius: 20px;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: -20px 20px 0px var(--primary-yellow);
  background: white;
  padding: 1rem;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary-blue);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 30px rgba(0, 59, 115, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.experience-badge h3 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-yellow);
  line-height: 1;
}

.experience-badge p {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-text {
  flex: 1.2;
}

.about-label {
  text-transform: uppercase;
  color: var(--primary-yellow);
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(246, 201, 14, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
}

.about-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.about-title .highlight {
  color: var(--secondary-blue);
  position: relative;
  display: inline-block;
}
.about-title .highlight::after {
  content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 12px; background: rgba(246, 201, 14, 0.4); z-index: -1;
}

.about-lead {
  font-size: 1.25rem;
  color: #2d3748;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-desc {
  font-size: 1.1rem;
  color: #718096;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 45px; height: 45px;
  background: var(--primary-blue);
  color: var(--primary-yellow);
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; flex-shrink: 0;
}

.feature-card h4 {
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin: 0;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 59, 115, 0.15);
}

.service-card:hover::after { opacity: 1; }
.service-card:hover h3, .service-card:hover p, .service-card:hover .service-icon { color: white; }

.service-icon {
  font-size: 3.5rem;
  color: var(--primary-yellow);
  margin-bottom: 1.8rem;
  transition: color 0.4s ease;
}

.service-card h3 {
  font-size: 1.6rem;
  color: var(--primary-blue);
  margin-bottom: 1.2rem;
  font-weight: 700;
  transition: color 0.4s ease;
}

.service-card p {
  color: #718096;
  line-height: 1.7;
  font-size: 1.05rem;
  transition: color 0.4s ease;
}

/* Services Matrix Contrast */
#services {
  background-color: transparent;
}

/* Glassmorphism Contact Section */
.contact {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #001f3f 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(246, 201, 14, 0.25) 0%, rgba(0,0,0,0) 70%);
  top: -100px;
  left: -100px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4rem;
  border-radius: 30px;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.contact-info { flex: 1; min-width: 320px; }
.contact-info h2 { font-size: 3rem; margin-bottom: 1.5rem; color: var(--primary-yellow); font-weight: 800; }
.contact-info p { font-size: 1.15rem; margin-bottom: 2.5rem; line-height: 1.8; color: rgba(255,255,255,0.8); }

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

.contact-icon {
  background: rgba(246, 201, 14, 0.15);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.8rem; color: var(--primary-yellow);
  flex-shrink: 0; border: 1px solid rgba(246, 201, 14, 0.3);
}

.contact-text h4 { font-size: 1.2rem; margin-bottom: 0.4rem; color: white; }
.contact-text p, .contact-text a { color: rgba(255, 255, 255, 0.7); font-size: 1.05rem; text-decoration: none; line-height: 1.6; }
.contact-text a:hover { color: var(--primary-yellow); }

.contact-form {
  flex: 1; min-width: 320px;
  background: white; padding: 3.5rem;
  border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group { margin-bottom: 1.8rem; }
.form-input {
  width: 100%; padding: 1.2rem;
  border: 2px solid #edf2f7; border-radius: 12px;
  font-size: 1.05rem; transition: all 0.3s ease;
  background: #f8fafc; color: var(--text-dark);
}
.form-input:focus { outline: none; border-color: var(--secondary-blue); background: white; box-shadow: 0 0 0 4px rgba(0,116,183,0.1); }
textarea.form-input { resize: vertical; min-height: 150px; }

.submit-btn {
  width: 100%; padding: 1.2rem;
  background-color: var(--primary-blue); color: white;
  border: none; border-radius: 12px;
  font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,59,115,0.2);
}
.submit-btn:hover { background-color: var(--secondary-blue); transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,59,115,0.3); }

/* Footer */
footer {
  background-color: #001224; color: rgba(255, 255, 255, 0.6);
  text-align: center; padding: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 1.05rem;
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero { flex-direction: column; text-align: center; padding-top: 150px; }
  .hero-content h1 { font-size: 3rem; }
  .hero-content h1 span::after { left: 50%; transform: translateX(-50%); }
  .hero-photo { margin-top: 4rem; width: 100%; }
  
  .about-grid { flex-direction: column-reverse; gap: 4rem; }
  .about-text { text-align: center; }
  .about-title .highlight::after { left: 50%; transform: translateX(-50%); }
  .experience-badge { bottom: -15px; right: 10px; padding: 1.2rem; }
  .experience-badge h3 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-container { display: none; } /* Simplified for this phase */
  
  header { flex-direction: row; justify-content: space-between; padding: 1rem 5%; height: auto; }
  .logo img { height: 40px; }
  .lang-switch { position: static; }

  .hero { padding-top: 110px; min-height: auto; padding-bottom: 60px; }
  .hero-content h1 { font-size: 2.3rem; margin-bottom: 1rem; }
  .hero-content p { font-size: 1.1rem; margin-bottom: 2rem; }
  
  .section { padding: 4rem 5%; }
  .section-title { font-size: 2.3rem; }
  
  .about-title { font-size: 2.2rem; }
  .about-lead { font-size: 1.1rem; }
  .about-features { grid-template-columns: 1fr; justify-content: center; }
  
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-card { padding: 2rem 1.5rem; }
  
  .contact-container { padding: 2rem 1.5rem; gap: 2rem; flex-direction: column; }
  .contact-info, .contact-form { flex: 1; min-width: 100%; padding: 0; }
  .contact-form { padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
  .contact-info h2 { font-size: 2.2rem; }
  
  #about::before { font-size: 25vw; top: 5%; }
}

@media (max-width: 480px) {
  .hero-photo { transform: perspective(none); }
  .hero-rounded-img { transform: none; box-shadow: 0 20px 40px rgba(0, 59, 115, 0.2); }
  .feature-card { flex-direction: column; text-align: center; gap: 0.5rem; }
}
