/* ==================================================
   CSS VARIABLES (DESIGN SYSTEM)
   ================================================== */
:root {
    --primary: #FF7A00;
    --primary-hover: #e06c00;
    --dark: #111111;
    --background: #F8F8F8;
    --white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 60px rgba(255, 122, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================================================
   RESET & BASE STYLES
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================================================
   BACKGROUND EFFECTS (Premium Look)
   ================================================== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10%;
    right: -5%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ffb366 0%, transparent 70%);
    bottom: -20%;
    left: -10%;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 15px auto 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================================================
   FLOATING NAVBAR
   ================================================== */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled .nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 20px;
    background: transparent;
    transition: var(--transition);
}

.logo img {
  width: 90px;
  height: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover {
    color: var(--primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    transition: var(--transition);
}

.btn-theme-toggle:hover {
    color: var(--primary);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { bottom: 0; width: 60%; right: 0; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger-menu.active span:nth-child(2) { transform: rotate(-45deg); bottom: 9px; width: 100%; }

/* ==================================================
   HERO SECTION
   ================================================== */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-subheading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-heading {
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 122, 0, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-5px);
}

.hero-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: var(--transition);
}

.hero-img:hover {
    transform: scale(1.03);
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
    animation: float 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--primary);
    font-size: 1.5rem;
}

.floating-badge span {
    font-weight: 600;
    color: var(--dark);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==================================================
   ABOUT SECTION
   ================================================== */
.section-about {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card {
    background: var(--white);
    border-radius: 30px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.about-heading {
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.heading-accent {
    width: 60px;
    height: 4px;
    background: var(--dark);
    margin: 12px 0 20px; 
    border-radius: 2px;
}

.text-description {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.text-description strong {
    color: var(--dark);
}

.about-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==================================================
   SHOWCASE (VIDEO & GRAPHIC DESIGN)
   ================================================== */
.section-showcase {
    padding: 100px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.showcase-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .card-image img {
    transform: scale(1.05);
}

/* Video Grid Specific */
.video-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.card-image .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.showcase-card:hover .play-overlay {
    color: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.card-info {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.card-info h3 {
    font-size: 1.2rem;
    color: var(--dark);
}

.view-project {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 600;
}

/* Graphic Design Grid Specific */
.design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.featured-design {
    grid-column: span 2;
}

.design-item .card-image {
    aspect-ratio: 4/5;
}

.featured-design .card-image {
    aspect-ratio: 21/9;
}

/* ==================================================
   CONTACT SECTION
   ================================================== */
.section-contact {
    padding: 100px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--dark);
    transition: var(--transition);
}

.contact-card h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.contact-card:hover i {
    color: var(--primary);
}

/* Primary Contact (WhatsApp) */
.primary-card {
    background: var(--primary);
    color: var(--white);
}

.primary-card i, 
.primary-card h4, 
.primary-card p {
    color: var(--white);
}

.primary-card:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-hover);
}

.primary-card:hover i {
    color: var(--white);
}

/* ==================================================
   FOOTER
   ================================================== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 5%;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
}

/* ==================================================
   RESPONSIVE (TABLET & MOBILE)
   ================================================== */
@media (max-width: 992px) {
    .hero-content-wrapper,
    .glass-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
        /* Paksa teks heromu rata kiri */
    .hero-text {
        text-align: left !important;
        order: 2;
    }

    /* Paksa tombolnya ikut rata kiri dan sejajar lurus di bawah teks */
    .hero-cta {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 20px;
        margin: 30px 0 0 0 !important;
        width: 100% !important;
    }
    
    .hero-image-wrapper {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .floating-badge {
        left: 10px;
        bottom: 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        width: 100%;
        top: 0;
        border-radius: 0;
    }

    .nav-container {
        border-radius: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
    }

    .hamburger-menu {
        display: block;
    }

    .navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 1000;
    }

    .navigation.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .section-hero {
        padding-top: 150px;
    }
    
    .glass-card {
        padding: 40px 20px;
    }

    .about-image-wrapper {
        margin-top: 20px;
    }

    .design-grid {
        grid-template-columns: 1fr;
    }

    .featured-design {
        grid-column: span 1;
    }
    
    .featured-design .card-image,
    .design-item .card-image {
        aspect-ratio: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
} /* << KURUNG PENUTUP MEDIA QUERY HP ADA DI SINI SEKARANG */

/* ==================================================
   TRANSISI SMOOTH UNTUK DARK MODE
   ================================================== */

/* ==================================================
   FIX UNIVERSAL: ANTI-DELAY IPAD & GRID DIJAMIN AMAN
   ================================================== */

/* Transisi singkat biar smooth tapi gak nge-freeze di iPad */
.glass-card, .showcase-card, .contact-card {
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

h1, h2, h3, p, i, a {
    transition: color 0.2s ease-in-out;
}

/* Saat Dark Mode Aktif */
body.dark-mode {
    background-color: #111111 !important;
    color: #EEEEEE !important;
}

body.dark-mode .glass-card,
body.dark-mode .showcase-card,
body.dark-mode .contact-card {
    background-color: rgba(30, 30, 30, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode .section-title, body.dark-mode .hero-heading {
    color: #EEEEEE !important;
}

body.dark-mode p, body.dark-mode .text-muted {
    color: #A0A0A0 !important;
}

/* 🔥 SOLUSI GRID: Mengubah warna grid jadi putih transparan saat Dark Mode aktif */
body.dark-mode .grid-pattern {
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    opacity: 0.4;
}

/* Optimasi performa untuk iPad/iOS Safari agar tidak lag karena filter blur */
@media (max-width: 1024px) {
    .glow {
        filter: blur(50px); /* Kurangi intensitas blur di tablet agar rendering ringan */
        opacity: 0.3;
    }
    .site-header.scrolled .nav-container {
        backdrop-filter: none; /* Matikan backdrop-filter blur di iPad jika masih terasa berat */
        background: rgba(255, 255, 255, 0.95);
    }
    
/* BARIS KODE LAMA KAMU DI ATAS... */


/* ==================================================
   PUNYA ABIDZAR - PERBAIKAN NAVBAR & GRID (JULI 2026)
   ================================================== */
body.dark-mode .site-header .nav-container {
    background: rgba(20, 20, 20, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .site-header.scrolled .nav-container {
    background: rgba(17, 17, 17, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .nav-link {
    color: #EEEEEE !important;
}

body.dark-mode .nav-link:hover {
    color: var(--primary) !important;
}

body.dark-mode .logo, 
body.dark-mode #theme-toggle-btn i, 
body.dark-mode #hamburger-btn i {
    color: #EEEEEE !important;
}
