/* ========================================
   GARASI INOVASI - Custom CSS Styles
   ======================================== */

/* ========== Font & Global Styles ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(217, 119, 6, 0.6);
    }
}

/* ========== Utility Classes ========== */
.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ========== Navbar Custom Styles ========== */
#navbar {
    transition: all 0.3s ease-in-out;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .text-gray-700 {
    color: #374151;
}

/* Mobile Menu Toggle */
#mobile-menu-btn span {
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* ========== Hero Section ========== */
#beranda {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#beranda h1 {
    animation: fadeInUp 0.8s ease-out;
}

#beranda p {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#beranda .flex {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Background Animation */
#beranda::before {
    animation: fadeinDown 0.8s ease-out;
}

/* ========== Card Hover Effects ========== */
.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-8px);
}

/* Katalog Card Premium Effect */
[class*="bg-white rounded-xl shadow-md"]:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Image Optimization ========== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    background-color: #f3f4f6;
    background-image: linear-gradient(
        90deg,
        rgba(243, 244, 246, 0),
        rgba(243, 244, 246, 1),
        rgba(243, 244, 246, 0)
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: calc(200% + 100px) 0;
    }
}

/* ========== Smooth Transitions ========== */
a, button {
    transition: all 0.3s ease-in-out;
}

/* ========== Button Styles ========== */
.bg-amber-500,
.bg-green-500,
.bg-gray-900 {
    transition: all 0.3s ease-in-out;
}

.bg-amber-500:hover {
    background-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.bg-green-500:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========== Section Spacing ========== */
section {
    scroll-margin-top: 80px;
}

/* ========== Floating WhatsApp Button ========== */
.fixed.bottom-6.right-6 {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.fixed.bottom-6.right-6:hover {
    transform: scale(1.1) translateY(-5px);
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    #beranda h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.875rem !important;
    }
    
    #mobile-menu {
        animation: slideInDown 0.3s ease-out;
    }
    
    .fixed.bottom-6.right-6 {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 640px) {
    #beranda h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
}

/* ========== AOS (Animate On Scroll) Overrides ========== */
[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

[data-aos="fade-left"].aos-animate {
    animation: slideInLeft 0.8s ease-out forwards;
}

[data-aos="fade-right"].aos-animate {
    animation: slideInRight 0.8s ease-out forwards;
}

[data-aos="zoom-in"].aos-animate {
    animation: zoomIn 0.8s ease-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== Scrollbar Styles ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========== Focus & Active States ========== */
a:focus,
button:focus {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* ========== Print Styles ========== */
@media print {
    nav, .fixed.bottom-6.right-6 {
        display: none;
    }
}

/* ========== Dark Mode Support ========== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
        color: #e2e8f0;
    }
}

/* ========== Performance & Loading ========== */
/* Lazy Load Placeholder */
.lazy-placeholder {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== Text Selection ========== */
::selection {
    background-color: #d97706;
    color: #ffffff;
}

::-moz-selection {
    background-color: #d97706;
    color: #ffffff;
}