/* ==================== RESET & VARIABLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary: #6c757d;
  --dark: #1e1e2f;
  --light: #f8f9fa;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
  --border-radius-lg: 24px;
}

body {
  font-family: "Inter", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--secondary);
  font-size: 18px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
  padding: 20px 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 24px;
  color: var(--dark);
}

.logo h1 span {
  color: var(--primary);
}

.logo p {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%230D6EFD" fill-opacity="0.05" d="M0 0h200v200H0z"/><path d="M100 0v200M0 100h200" stroke="%230D6EFD" stroke-width="0.5" fill-opacity="0.05"/></svg>')
    repeat;
  opacity: 0.3;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  margin-bottom: 24px;
}

.badge {
  background: rgba(13, 110, 253, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==================== SERVICES SECTION ==================== */
.services {
  padding: 100px 0;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(102, 16, 242, 0.1)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.service-icon i {
  font-size: 32px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--secondary);
  line-height: 1.6;
}

.services-cta {
  margin-top: 40px;
}

.cta-card {
  background: linear-gradient(135deg, #1e1e2f, #2d2d44);
  border-radius: var(--border-radius-lg);
  padding: 50px;
  text-align: center;
  color: white;
}

.cta-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== WHY US SECTION ==================== */
.why-us {
  padding: 100px 0;
  background: var(--light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.why-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.why-card:hover {
  transform: translateY(-5px);
}

.why-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #6610f2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.why-icon i {
  font-size: 28px;
  color: white;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ==================== SKILLS SECTION ==================== */
.skills {
  padding: 100px 0;
  background: white;
}

.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.skills-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.skills-content p {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.6;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.skill-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 10px;
  transition: width 1s ease;
}

/* ==================== ABOUT SECTION ==================== */
.about {
  padding: 100px 0;
  background: var(--light);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.legal-list {
  margin-top: 30px;
}

.legal-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.legal-item i {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.legal-item strong {
  display: block;
  margin-bottom: 5px;
}

.legal-item p {
  color: var(--secondary);
  font-size: 14px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--secondary);
  font-weight: 500;
}

/* ==================== OTHER SERVICES ==================== */
.other-services {
  padding: 100px 0;
  background: white;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.other-card {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.other-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: var(--shadow);
}

.other-card i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}

.other-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.other-card p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ==================== PORTFOLIO / TIMELINE ==================== */
.portfolio {
  padding: 100px 0;
  background: var(--light);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--gradient);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-year {
  width: 120px;
  padding: 10px;
  background: var(--gradient);
  color: white;
  text-align: center;
  border-radius: 30px;
  font-weight: 600;
  position: relative;
}

.timeline-content {
  width: calc(50% - 40px);
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.timeline-content p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ==================== TESTIMONIAL ==================== */
.testimonial {
  padding: 80px 0;
  background: var(--gradient);
  text-align: center;
  color: white;
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
}

.quote-icon {
  font-size: 48px;
  opacity: 0.5;
  margin-bottom: 20px;
}

.testimonial-content p {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 30px;
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid white;
}

.testimonial-author h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.testimonial-author span {
  font-size: 14px;
  opacity: 0.8;
}

/* ==================== FAQ SECTION ==================== */
.faq {
  padding: 100px 0;
  background: white;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--light);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(13, 110, 253, 0.05);
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 25px 20px;
}

.faq-answer p {
  color: var(--secondary);
  line-height: 1.6;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  padding: 100px 0;
  background: var(--light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-card i {
  font-size: 32px;
  color: var(--primary);
}

.contact-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  color: var(--secondary);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--primary);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* ==================== FOOTER ==================== */
.footer {
  background: #1e1e2f;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.footer-logo h2 span {
  color: var(--primary);
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-links h4,
.footer-social h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ==================== VIDEO & GALLERY SECTION ==================== */
.video-gallery {
  padding: 100px 0;
  background: var(--light);
}

.video-gallery-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Video Section */
.video-section {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.video-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  padding: 25px;
}

.video-caption h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark);
}

.video-caption p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 25px;
  box-shadow: var(--shadow);
}

.gallery-header {
  text-align: center;
  margin-bottom: 25px;
}

.gallery-header h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
}

.gallery-header p {
  color: var(--secondary);
  font-size: 14px;
}

.gallery-slider-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.gallery-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-slide:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-slide:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.gallery-caption p {
  font-size: 12px;
  opacity: 0.9;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--primary);
}

.gallery-prev {
  left: 15px;
}

.gallery-next {
  right: 15px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  width: 25px;
  background: var(--primary);
  border-radius: 10px;
}

/* ==================== CLIENTS LOGO SECTION ==================== */
.clients {
  padding: 80px 0;
  background: white;
  overflow: hidden;
}

.clients-slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px;
}

.clients-slider {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 20px 0;
}

.clients-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.client-logo {
  flex-shrink: 0;
  width: 180px;
  height: 100px;
  background: var(--light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.client-logo img {
  max-width: 80%;
  max-height: 60px;
  object-fit: contain;
}

.clients-prev,
.clients-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients-prev:hover,
.clients-next:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.clients-prev {
  left: 0;
}

.clients-next {
  right: 0;
}

/* Responsive untuk Video & Gallery */
@media (max-width: 992px) {
  .video-gallery-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-slider-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .video-gallery {
    padding: 60px 0;
  }

  .gallery-caption {
    opacity: 1;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 15px;
  }

  .gallery-caption h4 {
    font-size: 14px;
  }

  .gallery-caption p {
    font-size: 11px;
  }

  .clients-slider-container {
    padding: 0 35px;
  }

  .clients-prev,
  .clients-next {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .client-logo {
    width: 140px;
    height: 80px;
  }

  .clients-slider {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-prev,
  .gallery-next {
    width: 30px;
    height: 30px;
  }

  .client-logo {
    width: 120px;
    height: 70px;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 42px;
  }

  .skills-wrapper,
  .about-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    margin-left: 50px;
  }

  .timeline-year {
    margin-bottom: 15px;
  }

  .timeline-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .services-grid,
  .why-grid,
  .other-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .cta-card {
    padding: 30px 20px;
  }

  .cta-card h3 {
    font-size: 22px;
  }
}
