/* 
    CV Duta Sarana Bersama - Construction & Infrastructure
    Design System & Styles
*/

:root {
    /* Color Palette - Light (Default) */
    --primary: #111827;
    --primary-light: #1f2937;
    --accent: #fbbf24;
    --accent-hover: #d97706;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-slate: #f8fafc;
    --bg-dark: #0f172a;
    --border-light: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 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);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Section Specifics */
    --bg-stats: #111827;
    --modal-overlay: rgba(15, 23, 42, 0.6);
    --modal-close-bg: #ffffff;
    --modal-close-text: #111827;
    --modal-img-placeholder: #eeeeee;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #fbbf24;
    /* Keep yellow as primary brand highlight */
    --primary-light: #fcd34d;
    --accent: #fbbf24;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --bg-white: #0f172a;
    --bg-slate: #1e293b;
    --bg-dark: #020617;
    --border-light: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Specific Contrast Fixes */
    --btn-text-on-accent: #0f172a;
    --input-bg: #1e293b;
    --input-text: #f1f5f9;

    /* Section Specifics Dark */
    --bg-stats: #020617;
    --modal-overlay: rgba(2, 6, 23, 0.95);
    --modal-close-bg: #1e293b;
    --modal-close-text: #f1f5f9;
    --modal-img-placeholder: #1e293b;
}

/* Light Mode Defaults for the new variables */
:root {
    --btn-text-on-accent: #111827;
    --input-bg: #ffffff;
    --input-text: #1f2937;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-word: border-box;
    box-sizing: border-box;
}

html {
    /* native smooth scroll dihapus agar tidak konflik dengan Lenis */
}

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

h1,
h2 {
    font-family: var(--font-serif);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 700;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-padding) 0;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s ease;
}

.nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

header.scrolled {
    top: 12px;
    /* Stay floating slightly */
}

header.scrolled .nav-container {
    background: var(--glass-bg);
    padding: 10px 24px;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-slate);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
    mix-blend-mode: multiply;
    /* Makes white background transparent in light mode */
}

/* Invert logo on dark backgrounds and handle non-transparent backgrounds */
[data-theme="dark"] .logo-img,
footer .logo-img {
    filter: invert(1);
    mix-blend-mode: screen;
    /* Makes inverted black background transparent in dark mode */
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span {
    font-weight: 800;
    font-size: 14px;
    color: var(--primary);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

[data-theme="dark"] .logo-text span {
    color: var(--accent);
    /* Ensure it uses the bright accent in dark mode */
}

.nav-links {
    display: none;
    list-style: none;
    gap: 32px;
}

@media (max-width: 768px) {
    .header-actions .btn-cta {
        display: none;
        /* Sembunyikan di mobile, biar lewat menu aja */
    }
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    background: var(--bg-white);
    padding: 32px;
    border-radius: 24px;
    margin-top: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    border: 1px solid var(--border-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-slate);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle {
    background: var(--primary);
    color: var(--bg-dark);
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.02em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active {
    font-weight: 700;
    text-shadow: 0 0 10px rgba(17, 24, 39, 0.1);
}

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

.btn-cta {
    background: var(--accent);
    color: var(--btn-text-on-accent);
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    color: var(--btn-text-on-accent);
}

.cta-icon {
    background: white;
    color: var(--primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.75)),
        url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop');
    /* Realistic construction img */
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    color: white;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
    }

    .hero-btns a {
        width: 100%;
        text-align: center;
    }
}

.btn-primary {
    background: var(--accent);
    color: var(--btn-text-on-accent);
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--bg-white);
    color: var(--accent);
    transform: translateY(-2px);
    border: 1px solid var(--accent);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

.hero-wave path {
    fill: var(--bg-white);
}

/* About Section */
.about-grid {
    display: grid;
    gap: 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    /* Biar tag-nya ada di atas */
    gap: 8px;
}

.section-tag {
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 8px;
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.section-accent {
    position: relative;
    overflow: hidden;
}

.section-accent::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent);
    opacity: 0.03;
    border-radius: 50%;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 24px;
}

/* Projects Section */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.projects-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
}

.project-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    group: hover;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card.active {
    opacity: 1;
    transform: translateY(0);
}

.card-img-wrap {
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.btn-detail {
    display: inline-block;
    padding: 8px 24px;
    background: var(--bg-slate);
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.project-card:hover .btn-detail {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

/* Services Section */
.services-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.active {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background: var(--glass-bg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
    font-size: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature-item.active {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-slate);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 24px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:hover .feature-icon {
    background: var(--accent);
    color: white;
    transform: rotate(10deg);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Stats Section */
.stats-section {
    background: var(--bg-stats);
    color: white;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    gap: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background: var(--bg-slate);
    padding: 40px;
    border-radius: 24px;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 24px;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--primary);
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 1, 0.2, 1), 
                transform 1.2s cubic-bezier(0.2, 1, 0.2, 1);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Partners Section */
.partners-wrap {
    text-align: center;
}

.partners-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    opacity: 0.6;
}

.partner-logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact-section {
    background: var(--bg-dark);
    padding: 100px 0;
}

/* Footer Gold Icons */
.social-icon-gold {
    color: white;
    transition: var(--transition);
}

.social-icon-gold:hover {
    color: var(--accent);
    transform: translateY(-3px);
    background: var(--bg-slate);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, opacity 0.3s ease;
    display: none;
    opacity: 0.8;
}

@media (pointer: fine) {
    .custom-cursor {
        display: block;
    }
}

.custom-cursor.hover {
    transform: scale(2.5);
    background: var(--bg-white);
    border: 1px solid var(--accent);
    opacity: 0.5;
}

/* Scrollbar Refinement */
::-webkit-scrollbar {
    width: 10px;
}

/* Lenis Helper */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.contact-grid {
    display: grid;
    gap: 60px;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-details {
    margin-top: 48px;
    display: grid;
    gap: 32px;
}

.detail-item {
    display: flex;
    gap: 20px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.detail-item h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
}

.detail-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.contact-form-wrap {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

/* Footer (Updated) */
footer {
    background: var(--bg-dark);
    color: var(--text-main);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    gap: 60px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-info .logo-wrap {
    margin-bottom: 32px;
    display: inline-flex;
}

.footer-info .logo-text span {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--accent);
    /* Always gold in dark footer */
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    /* Always light in dark footer */
    line-height: 1.8;
    max-width: 320px;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 0;
}

.footer-info p {
    font-size: 0.95rem;
    max-width: 380px;
}

.footer-content h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

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

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color: #128c7e;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Sembunyikan teks di mobile biar jadi icon aja */
@media (max-width: 768px) {
    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 15px;
        bottom: 20px;
        right: 20px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Partners Marquee */
.partners-section {
    padding: 60px 0;
    background: var(--bg-slate);
    overflow: hidden;
    /* Supaya yang keluar layar tidak kelihatan */
}

.marquee {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
}

.marquee-content {
    display: flex;
    gap: 60px;
    padding: 20px 0;
    animation: scrolling 20s linear infinite;
    /* Ganti 20px jadi 20s */
}


.marquee-content:hover {
    animation-play-state: paused;
    /* Berhenti pas kursor di atasnya */
}

.partner-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.4;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Keyframes Animasi Jalan */
@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Geser separuh panjang track */
}

/* Background effect */
.bg-slate {
    background-color: var(--bg-slate);
    background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
}

.bg-dots {
    background-color: var(--bg-white);
    background-image: radial-gradient(var(--text-light) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    position: relative;
}

.bg-lines {
    background-color: var(--bg-white);
    background-image: repeating-linear-gradient(45deg, var(--bg-slate), var(--bg-slate) 1px, transparent 1px, transparent 15px);
    position: relative;
}

/* --- REVISI SECTION ACCENT (BIAR ADA GLOW EMASNYA) --- */

.section-accent {
    position: relative;
    overflow: hidden;
}

/* --- GLASSMORPHISM CARDS (EFEK KACA) --- */

.service-card,
.testimonial-card,
.project-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition) !important;
    position: relative;
    z-index: 2;
    padding: 24px;
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    background: var(--bg-white) !important;
    border-color: var(--accent) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Styling Bintang & Avatar */
.testimonial-stars {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    overflow: hidden;
    /* Tambahkan ini */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Biar gambar nggak gepeng */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Garis pemisah halus */
}

/* ==========================================================================
   PROJECT MODAL (POPUP)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    /* Naikkan biar di atas header */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    color: var(--text-main);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--modal-close-bg);
    color: var(--modal-close-text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr 1fr;
    }
}

.modal-img-wrap {
    height: 250px;
    background: var(--modal-img-placeholder);
}

@media (min-width: 768px) {
    .modal-img-wrap {
        height: auto;
        min-height: 400px;
    }
}

.modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .modal-text {
        padding: 50px;
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.modal-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-specs {
    background: var(--bg-slate);
    padding: 20px;
    border-radius: 16px;
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.spec-item {
    font-size: 14px;
    color: var(--text-main);
}

.spec-item strong {
    color: var(--primary);
    display: inline-block;
    width: 70px;
}