/* =========================================================
   GLOBAL VARIABLES
   ========================================================= */
:root {
    --primary: #2ecc71;
    --secondary: #27ae60;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --light-bg: #f9fafb;
    --border-light: #e5e7eb;
}

/* =========================================================
   GLOBAL TYPOGRAPHY & BODY
   ========================================================= */
* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================================
   NAVBAR (Optimized for WP + Bootstrap)
   ========================================================= */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.site-header .navbar {
    background: transparent !important;
    padding: 1rem 0;
}

.site-header .navbar-brand {
    font-weight: 800;
    color: var(--primary) !important;
    font-size: 1.7rem;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.site-header .navbar-brand:hover {
    transform: scale(1.05);
}

.site-header .navbar-brand i {
    margin-right: 8px;
}

/* Universal navbar link styling - override WordPress defaults */
.site-header .navbar-nav .nav-link,
.site-header .navbar-nav a {
    font-weight: 600 !important;
    color: var(--dark) !important;
    padding: 0.7rem 1.2rem !important;
    margin: 0 0.3rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.site-header .navbar-nav .nav-link::after,
.site-header .navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav a:hover {
    color: var(--primary) !important;
    background: rgba(46, 204, 113, 0.05) !important;
    text-decoration: none !important;
}

.site-header .navbar-nav .nav-link:hover::after,
.site-header .navbar-nav a:hover::after {
    width: calc(100% - 24px);
}

.site-header .navbar-nav .nav-link:focus,
.site-header .navbar-nav a:focus {
    color: var(--primary) !important;
    text-decoration: none !important;
}

/* Menu item styling - untuk WordPress menu items */
.site-header .navbar-nav .menu-item a {
    font-weight: 600 !important;
    color: var(--dark) !important;
    padding: 0.7rem 1.2rem !important;
    margin: 0 0.3rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.site-header .navbar-nav .menu-item a:hover {
    color: var(--primary) !important;
    background: rgba(46, 204, 113, 0.05) !important;
}

/* Prevent default link styling */
.site-header a {
    text-decoration: none !important;
}

/* =========================================================
   BUTTONS (Global but safe for WP)
   ========================================================= */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary,
button.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.25);
}

.btn-primary:hover,
button.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, #229954 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.btn-outline-primary,
.btn-outline-success {
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #1e8449 100%);
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 150px 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    animation: drift 20s infinite linear;
}

@keyframes drift {
    from { transform: translateX(0px); }
    to { transform: translateX(60px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.features-section {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    padding: 100px 0;
}

.features-section h2 {
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card-body {
    padding: 0;
}

.card-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.card-text {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.7;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1) rotateY(10deg);
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    padding: 100px 0;
}

.about-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.about-logo {
    max-width: 100%;
    width: 200px;
    height: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(46, 204, 113, 0.15));
}

.about-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(46, 204, 113, 0.25));
}

.about-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-section h2 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
}

.about-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
}

.about-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(46, 204, 113, 0.3);
}

.about-box h3 {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-box ul {
    list-style: none;
    padding: 0;
}

.about-box li {
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    padding-left: 30px;
    position: relative;
}

.about-box li:last-child {
    border-bottom: none;
}

.about-box li i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.about-box li:hover {
    padding-left: 35px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: linear-gradient(135deg, var(--dark) 0%, #1a252f 100%);
    color: white;
    padding: 80px 0 30px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.site-footer h5 {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.site-footer p {
    color: #d1d5db;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.site-footer a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.site-footer .text-center p {
    font-size: 0.95rem;
    color: #9ca3af;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .site-header .navbar-nav .nav-link {
        padding: 0.5rem 0.8rem !important;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .features-section h2 {
        font-size: 2.2rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .site-header .navbar-brand {
        font-size: 1.4rem;
    }

    .site-header .navbar-nav {
        padding-top: 1rem;
    }

    .site-header .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
    }

    .features-section {
        padding: 60px 0;
    }

    .features-section h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-logo {
        width: 160px;
        height: 160px;
    }

    .about-section-title {
        font-size: 1.8rem;
    }

    .about-box {
        padding: 30px;
        margin-top: 30px;
    }

    .about-logo {
        max-width: 150px;
    }

    .site-footer {
        padding: 50px 0 20px;
    }

    .site-footer h5 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .btn {
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
    }

    .features-section h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .features-section h2::after {
        width: 40px;
    }

    .card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .about-box {
        padding: 20px;
        margin-top: 20px;
    }

    .about-logo {
        width: 120px;
        height: 120px;
    }

    .about-section-title {
        font-size: 1.5rem;
        margin-top: 15px !important;
    }

    .about-box h3 {
        font-size: 1.4rem;
    }

    .about-box li {
        font-size: 0.9rem;
        padding: 10px 0;
        padding-left: 25px;
    }

    .site-footer {
        padding: 40px 0 15px;
    }

    .site-footer h5 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .site-footer p {
        font-size: 0.9rem;
    }
}

/* =========================================================
   ANIMATIONS & EFFECTS
   ========================================================= */
@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.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-md {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   PAGE TEMPLATES (Home, About, Contact)
   ========================================================= */
.site-content {
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* =========================================================
   LINKS & TEXT
   ========================================================= */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

p {
    transition: color 0.3s ease;
}

/* =========================================================
   CONTACT PAGE STYLES
   ========================================================= */
.contact-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid transparent;
}

.contact-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-top-color: var(--primary);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-box:hover .contact-icon {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-light);
}
