/* Modern CSS untuk IndoTrademark.com */
/* Menggunakan Bootstrap 5 dan custom styling modern */

/* Import Bootstrap 5 */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Custom Variables */
:root {
    --primary-color: #007F3E;
    --secondary-color: #85bd27;
    --accent-color: #a8e258;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-color: #666;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Modern Header */
.modern-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 8px 0;
    font-size: 12px;
}

.header-main {
    padding: 15px 0;
}

.logo-modern {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.logo-modern:hover {
    transform: scale(1.05);
}

/* Navigation */
.navbar-modern {
    background: transparent !important;
    padding: 0;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white !important;
    transform: translateY(-2px);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switcher a {
    display: inline-block;
    width: 30px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.language-switcher a:hover {
    transform: scale(1.1);
}

.language-switcher a.active {
    border: 2px solid white;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-login:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    transform: translateY(-2px);
}

.btn-register {
    background: white;
    color: var(--primary-color);
    border: none;
}

.btn-register:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Search Form Modern */
.search-container {
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: var(--shadow);
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-select {
    border: none;
    background: transparent;
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 25px;
    background: var(--light-color);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 16px;
    color: var(--dark-color);
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    background: white;
    min-height: 600px;
    padding: 40px 0;
}

.content-left {
    padding-right: 30px;
}

.content-right {
    background: var(--light-color);
    border-radius: 10px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Page Headings */
.page-heading {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-content {
    line-height: 1.8;
    font-size: 16px;
}

/* Box Components */
.modern-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.box-heading {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Chat/Support Box */
.support-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.support-box h3 {
    color: white;
    margin-bottom: 15px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 5px;
}

.whatsapp-link:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    transform: translateY(-2px);
}

/* Testimonials */
.testimonials-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.testimonials-content {
    height: 150px;
    overflow: hidden;
    position: relative;
}

/* News Box */
.news-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.news-box:hover {
    transform: translateY(-5px);
}

.news-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-decoration: none;
}

.news-title:hover {
    color: var(--secondary-color);
}

.news-excerpt {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.modern-footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
    font-size: 14px;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.security-badge {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.security-badge:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-main {
        padding: 10px 0;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
    
    .search-container {
        margin: 15px 0;
        padding: 15px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
        text-align: center;
    }
    
    .content-left {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .content-right {
        position: static;
    }
    
    .page-heading {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .language-switcher {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .user-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .modern-box {
        padding: 15px;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 10px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #007F3E 0%, #85bd27 50%, #a8e258 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 0.4s both;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #a8e258;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-actions {
    animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-image {
    position: relative;
    z-index: 3;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: floatCard 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 1s;
}

.card-4 {
    bottom: 10%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.floating-card span {
    font-weight: 600;
    color: #333;
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007F3E;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007F3E, #85bd27);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(0,127,62,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007F3E;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    color: #666;
    font-weight: 500;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .floating-card {
        position: static;
        margin: 1rem;
        animation: none;
    }
    
    .hero-image {
        height: auto;
        margin-top: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light { background-color: var(--light-color) !important; }

.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; }

.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 15px !important; }
.rounded-xl { border-radius: 25px !important; }

/* Form Styling */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 127, 62, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating WhatsApp / WeChat buttons */
#wa-support a.wa-float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#wa-support a.wa-float-btn:hover {
    transform: scale(1.02);
}
#wa-support a.wa-float-btn .wa-btn-label {
    display: none;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
}
#wa-support a.wa-float-btn img {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    #wa-support a.wa-float-btn {
        width: auto;
        height: auto;
        gap: 0.5rem;
        padding: 0.5rem 0.875rem 0.5rem 0.625rem;
    }
    #wa-support a.wa-float-btn .wa-btn-label {
        display: inline;
    }
    #wa-support a.wa-float-btn img {
        width: 2.25rem;
        height: 2.25rem;
    }
}
#wa-support a.wa-float-btn--desktop-only {
    display: none;
}
@media (min-width: 768px) {
    #wa-support a.wa-float-btn--desktop-only {
        display: inline-flex;
        width: auto;
        height: auto;
        gap: 0.5rem;
        padding: 0.5rem 0.875rem 0.5rem 0.625rem;
    }
    #wa-support a.wa-float-btn--desktop-only .wa-btn-label {
        display: inline;
    }
    #wa-support a.wa-float-btn--desktop-only img {
        width: 2.25rem;
        height: 2.25rem;
    }
}
