:root {
    /* MGD Brand Colors */
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent: #39FF14; /* MGD Green */
    --accent-dim: rgba(57, 255, 20, 0.1);
    --card-bg: rgba(20, 20, 20, 0.6);
    --border-color: rgba(57, 255, 20, 0.2);
    
    /* Typography */
    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom one */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100vw;
    height: 100%;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline.hovered {
    width: 50px;
    height: 50px;
    background-color: var(--accent-dim);
    border-color: var(--accent);
    mix-blend-mode: exclusion;
}

/* --- WebGL Background --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

/* --- Layout --- */
.container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo img {
    height: 50px; /* Adjust size based on your logo file */
    width: auto; 
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-block;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s var(--easing);
}

.nav-link:hover::after {
    width: 100%;
}

.magnetic-wrap {
    display: inline-block;
    transition: transform 0.3s var(--easing);
}

/* --- Hero Section --- */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-logo-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-logo-container img {
    max-width: 200px; /* Simplified MGD Logo size */
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(57,255,20,0.3));
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: #ccc;
    line-height: 1.6;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.cta-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transition: width 0.4s var(--easing);
}

.cta-btn:hover {
    color: #000;
}

.cta-btn:hover::before {
    width: 100%;
}

/* --- Marquee Section --- */
.marquee-section {
    padding: 3rem 0;
    background: var(--accent);
    color: #000;
    transform: rotate(-1deg) scale(1.02);
    margin: 4rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.marquee-content {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

.marquee-text {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 4rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Projects Section --- */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    border-left: 5px solid var(--accent);
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title img {
    height: 40px; /* Secondary logo stamp */
    opacity: 0.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    padding: 2rem 0 6rem 0;
    perspective: 1000px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    height: 550px;
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s linear;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.4s, transform 0.6s;
    z-index: 1;
    filter: grayscale(100%);
}

.project-card:hover .card-bg-img {
    opacity: 0.7;
    transform: scale(1.1);
    filter: grayscale(0%);
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.2), transparent 60%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

.card-content {
    position: relative;
    z-index: 3;
    transform: translateZ(40px);
}

.card-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    color: #fff;
}

.card-tags {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Style khusus untuk wrapper icon Service */
.service-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    /* Opsional: Beri background lingkaran transparan */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.service-icon-wrapper i {
    font-size: 2.5rem; /* Ukuran ikon */
    color: var(--accent); /* Ikuti warna aksen global */
}

/* --- Footer --- */
footer {
    margin-top: 5rem;
    padding: 6rem 0 3rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-family: var(--font-body);
    transition: color 0.3s;
}

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

.copyright {
    font-size: 0.8rem;
    color: #555;
}

/* --- Bottom Scroll Light --- */
.bottom-light-beam {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 -10px 30px 5px var(--accent);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    h1 { font-size: 12vw; }
    .nav-links { display: none; }
    .projects-grid { grid-template-columns: 1fr; }
    .hero-logo-container img { max-width: 150px; }
}
/* --- Client Logos --- */
.client-logos {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.client-logos h4 {
    color: #666;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.logo-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.5;
}
.logo-item {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    transition: 0.3s;
}
.logo-item:hover {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Stats Section --- */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 6rem 0;
    text-align: center;
}
.stat-card {
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    border: 1px solid var(--border-color);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Service Preview --- */
.service-preview-section {
    margin: 6rem 0;
}
.service-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.service-preview-item {
    padding: 2rem;
    border-left: 1px solid var(--border-color);
    transition: 0.3s;
}
.service-preview-item:hover {
    border-left: 4px solid var(--accent);
    background: var(--card-bg);
}
.sp-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.sp-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Testimonial --- */
.testimonial-section {
    margin: 8rem 0;
    text-align: center;
}
.quote-mark {
    font-size: 4rem;
    color: var(--accent);
    line-height: 0;
    font-family: serif;
}
.testimonial-text {
    font-size: 1.8rem;
    font-family: var(--font-body);
    font-weight: 300;
    margin: 2rem 0;
    font-style: italic;
}
.testimonial-author {
    color: var(--accent);
    font-weight: 700;
}
/* --- Logo Marquee (Scrolling Logos) --- */
.client-marquee-section {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    background: #080808; /* Sedikit lebih terang dari background utama */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.client-marquee-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #080808;
    padding: 0 1rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #555;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    z-index: 2;
}

.logo-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeLogos 30s linear infinite;
}

.logo-marquee-item {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #555; /* Warna abu-abu */
    margin-right: 5rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
}

.logo-marquee-item:hover {
    color: var(--accent); /* Berubah jadi hijau saat di-hover */
    text-shadow: 0 0 15px var(--accent);
    cursor: default;
}

/* Animation Keyframes */
@keyframes marqueeLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); } 
    /* Nilai -33.33% karena kita menduplikasi konten 3x (100% / 3) */
}

/* Footer Section Styling */
footer {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #b0b0b0;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #4a9eff;
}


/* --- Styling khusus untuk Sub-Service Grid di dalam Card --- */
.service-details .sub-service-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default 1 kolom untuk mobile */
    gap: 1.2rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* Agar jadi 2 kolom jika layar cukup lebar (optional) */
@media (min-width: 768px) {
    .service-details .sub-service-grid {
        grid-template-columns: 1fr 1fr; 
    }
}

.sub-service-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    transition: all 0.3s;
}

.sub-service-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    transform: translateX(5px);
}

.sub-service-item h5 {
    color: var(--accent);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-service-item p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

/* Galeri Gambar Detail */
.project-gallery {
    padding: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Kolom */
    gap: 2rem;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 16 / 9; /* Membuat rasio gambar tetap (Landscape) */
    overflow: hidden;
    border-radius: 4px;
    transition: 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--easing);
    filter: grayscale(100%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Mobile Responsive: 1 Kolom */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Premium Startup Footer Styling
================================ */

footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  color: #fff;
  padding: 80px 20px 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ff88, transparent);
}

footer::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: 50%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(0,255,136,.08), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
  gap: 60px;
  text-align: left;
}

/* Brand */

.footer-brand img {
  width: 56px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.9;
  color: #9a9a9a;
  max-width: 380px;
  margin-bottom: 24px;
}

/* Social SVG icons */

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: #bbb;
  transition: fill .3s ease;
}

.social-links a:hover {
  border-color: #00ff88;
  background: rgba(0,255,136,.08);
  transform: translateY(-3px);
}

.social-links a:hover svg {
  fill: #00ff88;
}

/* Columns */

.footer-col h3 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #00ff88;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links li {
  text-align: left;
}

.footer-links li a {
  color: #b0b0b0;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  transition: color .25s ease;
}

.footer-links li a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00ff88;
  opacity: .6;
  transition: width .25s ease;
}

.footer-links li a:hover {
  color: #fff;
}

.footer-links li a:hover::before {
  width: 100%;
}

/* Footer Bottom */

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #777;
  letter-spacing: .3px;
}

.footer-bottom p {
  margin: 0;
  text-align: left;
}

.footer-legal {
  display: flex;
  gap: 22px;
  margin-left: auto;
  text-align: right;
}

.footer-legal a {
  color: #777;
  text-decoration: none;
  transition: color .25s ease;
}

.footer-legal a:hover {
  color: #00ff88;
}

/* Responsive */

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- Style Kartu Utama (Clean) --- */
.service-card-main {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.3s var(--easing);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Rata kiri */
}

.service-card-main:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

/* --- MODAL OVERLAY --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px); /* Efek blur modern */
    z-index: 9999;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* --- MODAL CONTENT BOX --- */
.modal-content {
    background: #0f0f0f; /* Sedikit lebih terang dari body */
    width: 90%;
    max-width: 900px;
    max-height: 85vh; /* Agar tidak keluar layar */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem;
    position: relative;
    overflow-y: auto; /* Scroll jika konten panjang */
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s var(--easing);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent);
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

#modal-icon {
    font-size: 3rem;
    color: var(--accent);
}

#modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
}

/* Scrollbar khusus di modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: #000;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}