/* 
 * CUSTOM CSS UNTUK FASHION IMPORT WEBSITE
 * File: assets/css/style.css
 * Deskripsi: Styling colorful dan modern untuk website baju import
 */

/* ========== GLOBAL STYLES ========== */
:root {
    /* Color palette colorful */
    --primary-color: #FF5757;
    --secondary-color: #FFC300;
    --accent-color: #8A49F4;
    --success-color: #00D9A5;
    --dark-color: #2D3436;
    --light-color: #F8F9FA;
    --gradient-1: linear-gradient(135deg, #FF5757 0%, #FF9A56 100%);
    --gradient-2: linear-gradient(135deg, #8A49F4 0%, #C44CF4 100%);
    --gradient-3: linear-gradient(135deg, #FFC300 0%, #FF5757 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: #fff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

/* Animasi underline untuk nav link */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-2);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-text h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-text p {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
}

/* Animasi slide dari kiri */
@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    animation: slideLeft 0.8s ease-out forwards;
}

.animate-slide-left:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-left:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0;
}

/* Animasi float untuk gambar */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Button styles */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 87, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 87, 0.5);
    background: var(--gradient-1);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Wave animation untuk background */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* ========== FEATURES SECTION ========== */
.features-section {
    background: var(--light-color);
}

.feature-card {
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card:nth-child(1) .feature-icon {
    background: var(--gradient-1);
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--gradient-2);
}

.feature-card:nth-child(3) .feature-icon {
    background: var(--gradient-3);
}

/* ========== PRODUCTS SECTION ========== */
.products-section {
    background: white;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h5 {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ========== TESTIMONIAL SECTION ========== */
.testimonial-section {
    background: var(--gradient-2);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stars {
    color: var(--secondary-color);
}

.customer-info {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.customer-info strong {
    font-size: 1.1rem;
}

.customer-info span {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ========== NEWSLETTER SECTION ========== */
.newsletter-section {
    background: var(--light-color);
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 15px 20px;
    border-radius: 50px 0 0 50px;
    border: 2px solid var(--primary-color);
    border-right: none;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-color);
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 87, 87, 0.4);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 50px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .feature-card,
    .product-card,
    .testimonial-card {
        margin-bottom: 20px;
    }
}

/* ========== UTILITY CLASSES ========== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}