/* Variables - Supabase Theme Clone (Light Default) */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f9fafb; 
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    
    /* Orange Accent */
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --accent-orange-light: #ffedd5;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --nav-bg: rgba(255, 255, 255, 0.9);
}

/* Dark Mode System Overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #141416; /* Deep slate gray */
        --bg-secondary: #0b0b0d; /* Darker bg */
        --bg-card: #1c1c1f; /* Card bg */
        --text-primary: #f9fafb;
        --text-secondary: #9ca3af;
        --border-color: #374151;
        --border-hover: #4b5563;
        
        --accent-orange-light: rgba(249, 115, 22, 0.15);
        
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
        
        --nav-bg: rgba(20, 20, 22, 0.9);
    }
    
    .logo-img { filter: invert(1); } /* Auto-invert black logo in dark mode */
}

/* Reset & Base */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body { 
    background-color: var(--bg-main); 
    color: var(--text-primary); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}

.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* Typography */
h1 { 
    font-size: clamp(2.5rem, 4vw, 4rem); 
    font-weight: 700; 
    line-height: 1.15; 
    margin-bottom: 24px; 
    letter-spacing: -0.03em; 
}

h2 { 
    font-size: clamp(2rem, 3vw, 2.5rem); 
    font-weight: 600; 
    margin-bottom: 24px; 
    letter-spacing: -0.02em; 
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

p { 
    font-size: 1.125rem; 
    color: var(--text-secondary); 
    margin-bottom: 24px; 
}

.text-orange { color: var(--accent-orange); }

/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px 18px; 
    border-radius: var(--radius-sm); 
    font-weight: 500; 
    font-size: 0.95rem; 
    text-decoration: none; 
    transition: all 0.2s; 
    cursor: pointer; 
}

.btn-primary { 
    background-color: var(--accent-orange); 
    color: #fff; /* Text stays white on orange bg */
    border: 1px solid var(--accent-orange); 
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { 
    background-color: var(--accent-orange-hover); 
    border-color: var(--accent-orange-hover);
}

.btn-secondary { 
    background-color: var(--bg-card); 
    color: var(--text-primary); 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { 
    background-color: var(--bg-secondary); 
    border-color: var(--border-hover);
}

.btn-outline { 
    background-color: transparent; 
    color: var(--text-secondary); 
    border: 1px solid transparent; 
}
.btn-outline:hover {
    color: var(--text-primary);
}

/* Navbar */
.navbar { 
    padding: 16px 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: var(--nav-bg);
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--border-color); 
}
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo-img { height: 48px; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.05em; text-decoration: none; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* Hamburger Menu & Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 101;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
/* Hamburger Active State (X Animation) */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 81px; /* below navbar */
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    
    /* Animation setup */
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu .nav-links, .mobile-menu .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.mobile-menu .nav-links a { font-size: 1.1rem; }
.mobile-menu .btn { width: 100%; }

/* Mobile Menu Overlay Blur Backdrop */
.menu-backdrop {
    position: fixed;
    top: 81px; /* Starts below navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 81px);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    z-index: 98;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-backdrop.active {
    visibility: visible;
    opacity: 1;
}
body.menu-open {
    overflow: hidden;
}

/* Badges */
.badge-group { display: flex; margin-bottom: 24px; }
.badge { 
    padding: 6px 12px; 
    border-radius: 100px; 
    font-size: 0.85rem; 
    font-weight: 500; 
    border: 1px solid var(--border-color); 
    color: var(--text-secondary); 
    background: var(--bg-card);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.highlight-badge { border-color: var(--accent-orange-light); color: var(--accent-orange); background: var(--accent-orange-light); }
.badge-dot { width: 6px; height: 6px; background-color: var(--accent-orange); border-radius: 50%; }

/* Layout Globals */
.section { padding: 96px 0; }
.bg-secondary { background-color: var(--bg-secondary); }
.border-top { border-top: 1px solid var(--border-color); }
.text-center { text-align: center; }
.section-header { margin-bottom: 64px; }
.section-desc { font-size: 1.25rem; max-width: 600px; margin: 0 auto; }
.section-subtitle { color: var(--accent-orange); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; display: block; margin-bottom: 12px; }
.justify-center { justify-content: center; }
.mt-32 { margin-top: 32px; }

/* Hero Section */
.hero { padding: 80px 0 120px; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hero-content { flex: 1; max-width: 600px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 32px; }

/* Hero Visual Card */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.clean-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    box-shadow: var(--shadow-xl);
}
.visual-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: var(--radius-sm); 
}
.clean-card-overlay {
    position: absolute;
    bottom: -20px; 
    left: 40px; 
    right: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.stat-row { display: flex; flex-direction: column; gap: 12px; }
.stat h4 { margin: 0; font-size: 0.95rem; color: var(--text-primary); }
@keyframes pulseText { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.stat span { font-size: 0.85rem; color: var(--text-secondary); animation: pulseText 2.5s infinite; }
.progress-bar-container { width: 100%; height: 6px; background: var(--bg-secondary); border-radius: 100px; overflow: hidden; }
@keyframes loadProgress { 0% { width: 0%; opacity: 1; } 85% { width: 100%; opacity: 1; } 95% { width: 100%; opacity: 0; } 100% { width: 0%; opacity: 0; } }
.progress-bar { width: 0%; height: 100%; background: var(--accent-orange); border-radius: 100px; animation: loadProgress 8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

/* Tentang Kami */
.tentang-container { display: flex; align-items: center; gap: 60px; }
.tentang-text { flex: 1; }
.tentang-visual { flex: 1; }
.tentang-img-wrapper {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.tentang-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layanan Kami (Grid Cards) */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    padding: 32px; 
    border-radius: var(--radius-md); 
    transition: all 0.2s; 
    box-shadow: var(--shadow-sm);
}
.service-card:hover { 
    box-shadow: var(--shadow-md); 
    border-color: var(--border-hover);
}
.border-orange { border-color: var(--accent-orange-light); }
.service-icon { margin-bottom: 20px; color: var(--text-primary); }
.service-list { list-style: none; margin-top: 24px; }
.service-list li { margin-bottom: 12px; color: var(--text-secondary); position: relative; padding-left: 24px; font-size: 0.95rem; }
.service-list li::before { 
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 6px;
    width: 14px; height: 14px; 
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 20 20" fill="%23f97316" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd"/></svg>');
    background-size: cover;
}

/* Kenapa Memilih Kami (Bento Grid) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}
.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-orange-light);
}
.bento-item-large {
    grid-column: span 2;
}
.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-orange);
    border: 1px solid var(--border-color);
}
.bento-item h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.bento-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item-large {
        grid-column: span 1;
    }
}

/* Portfolio Visual Gallery */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    display: block;
    height: 250px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.portfolio-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    transition: background 0.3s;
}
.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.portfolio-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}
.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
}
.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
}

/* AI Video */
.ai-highlight-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 64px; 
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
}
.ai-highlight-text { max-width: 600px; text-align: center; }
.target-list strong { display: block; margin-bottom: 16px; color: var(--text-primary); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag { padding: 6px 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary); }

/* CTA Section */
.cta-section { padding: 120px 0; }
.cta-box h2 { font-size: 2.5rem; margin-bottom: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--border-color); padding: 48px 0; background: var(--bg-main); }
.footer-container { display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; justify-content: space-between; }
.footer-logo-col { max-width: 300px; }
.footer-desc { font-size: 0.9rem; margin-top: 16px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.copyright { color: var(--text-secondary); font-size: 0.85rem; margin: 0;}

@media (max-width: 1024px) {
    .hero-container, .tentang-container { flex-direction: column; text-align: center; }
    .hero-visual { width: 100%; margin-top: 40px; }
    .hero-content, .ai-highlight-text { display: flex; flex-direction: column; align-items: center; }
    
    /* Hide desktop nav, show hamburger */
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: flex; }
    .logo-img { height: 40px; }
}

@media (max-width: 768px) {
    .logo-img { height: 32px; } /* Smaller logo on smartphone */
    .hero { padding: 40px 0; }
    h1 { font-size: 2.5rem; }
    .hero-ctas { flex-direction: column; width: 100%; align-items: center; }
    .btn { width: auto; min-width: 260px; max-width: 100%; justify-content: center; }
    .ai-highlight-card { padding: 32px 24px; }
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}
html, body {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
