/**
 * Custom CSS - PT. Sumber Arto Hutomo
 * Author: Claude
 * Theme: Emas Putih - Elegant & Premium
 */

/* ========================================
   CSS VARIABLES - Light Mode
   ======================================== */
:root {
    /* Gold Colors */
    --gold-primary: #D4AF37;
    --gold-light: #F4E4BC;
    --gold-dark: #B8860B;
    --gold-metallic: #C9A227;

    /* Neutral Colors */
    --dark: #1A1A1A;
    --gray: #6B7280;
    --light: #F8F8F8;
    --white: #FFFFFF;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #D4AF37 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);

    /* Spacing */
    --section-spacer: 5rem;
    --section-spacer-lg: 7rem;
}

/* ========================================
   CSS VARIABLES - Dark Mode
   ======================================== */
[data-bs-theme="dark"] {
    --gold-primary: #D4AF37;
    --gold-light: #F4E4BC;
    --gold-dark: #B8860B;

    --bg-dark: #0F0F0F;
    --bg-card: #1A1A1A;
    --text-gold: #D4AF37;

    --light: #1A1A1A;
    --white: #FFFFFF;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 0.9rem;
    font-weight: 600;
}

.navbar-brand span.small {
    font-weight: 400;
    font-size: 0.75rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide.bg-dark-gradient {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #1A1A1A 100%);
}

.hero-slide.bg-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 30%, #D4AF37 100%);
}

.stat-item {
    text-align: center;
}

.stat-item .counter {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ========================================
   COLORS & UTILITIES
   ======================================== */
.text-gold {
    color: var(--gold-primary) !important;
}

.bg-gold-gradient {
    background: var(--gradient-gold);
}

.bg-dark-gradient {
    background: var(--gradient-dark);
}

.border-gold {
    border-color: var(--gold-primary) !important;
}

.btn-gold {
    background: var(--gold-primary);
    color: #1A1A1A;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: #1A1A1A;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #1A1A1A;
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: #fff;
}

/* ========================================
   CARDS
   ======================================== */
.profile-card {
    border-radius: 1rem;
    overflow: hidden;
}

.profile-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-card {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--gold-light);
}

.timeline-year {
    position: absolute;
    left: -110px;
    top: 0;
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 1.25rem;
}

/* ========================================
   TECH STACK
   ======================================== */
.tech-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--light);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--gold-light);
    transform: translateY(-5px);
}

.tech-item i {
    margin-bottom: 0.5rem;
}

/* ========================================
   PORTFOLIO
   ======================================== */
.portfolio-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.portfolio-thumb {
    height: 200px;
    overflow: hidden;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.1);
}

.portfolio-body {
    padding: 1.5rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gold-light);
    color: #1A1A1A;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========================================
   CLIENTS
   ======================================== */
.client-logo {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.client-logo:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.client-logo i {
    font-size: 2.5rem;
    color: var(--gold-primary);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* ========================================
   FOOTER
   ======================================== */
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gold-primary);
    color: #1A1A1A;
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gold-primary);
    color: #1A1A1A;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-dark);
}

/* ========================================
   NAV PILLS (Portfolio Filter)
   ======================================== */
.nav-pills .nav-link {
    color: var(--gray);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background: var(--gold-primary);
    color: #1A1A1A;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(26, 26, 26, 0.98);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .timeline-year {
        position: static;
        margin-bottom: 0.5rem;
    }

    .timeline-item {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
    }

    .hero-slide {
        min-height: auto;
        padding: 6rem 0;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
    }

    .tech-stack {
        flex-direction: column;
        align-items: center;
    }

    .tech-item {
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   DARK MODE SPECIFIC
   ======================================== */
[data-bs-theme="dark"] body {
    background-color: var(--bg-dark);
    color: var(--white);
}

[data-bs-theme="dark"] .bg-light {
    background-color: var(--bg-card) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-bs-theme="dark"] .card {
    background-color: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .portfolio-card,
[data-bs-theme="dark"] .profile-card {
    background-color: var(--bg-card);
}

[data-bs-theme="dark"] .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

[data-bs-theme="dark"] .client-logo {
    background-color: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .tech-item {
    background-color: var(--bg-card);
}
