/*
Theme Name: KMS Energy Theme
Theme URI: https://kucingmeongsemesta.com
Author: PT. Kucing Meong Semesta
Author URI: https://kucingmeongsemesta.com
Description: Modern energy solutions company theme with responsive design
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kms-theme
Tags: business, energy, corporate, responsive, modern

This theme is designed for PT. Kucing Meong Semesta
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   Gradient Utilities
   ========================================================================== */

.gradient-bg {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Hero Pattern Background
   ========================================================================== */

.hero-pattern {
    background-color: #1e40af;
    background-image: 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");
}

/* ==========================================================================
   Card Hover Effect
   ========================================================================== */

.card-hover {
    transition: all 0.3s ease;
}

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

/* ==========================================================================
   Animations
   ========================================================================== */

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

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   Statistics Number
   ========================================================================== */

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   WordPress Core Compatibility
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}


.logo-container {
    display: inline-block;
}

.logo-title {
    font-size: 50px;
    font-weight: 900;
    font-style: italic;
    color: #2E3192;
    letter-spacing: -4px;
    line-height: 1;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 6px;
}


.logo-subtitle {
    font-size: 12px;
    color: #5B8EFF;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 8px;
    display: block;
}

.text-primary {
    color: #2E3192;
}

/* Target semua gambar di dalam hero-image-widget */
.hero-image-widget img {
    border-radius: 1.5rem !important; /* rounded-3xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; /* shadow-2xl */
    width: 100% !important; /* w-full */
    height: 500px !important; /* h-[500px] */
    object-fit: cover !important; /* object-cover */
}

/* Class float-animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Di file style.css atau custom.css */
.profile-image-widget {
    width: 100%;
    height: 16rem; /* h-64 */
}

.profile-image-widget img {
    /*width: 100%;*/
    height: 280px;
    object-fit: cover; /* object-cover */
    border-radius: 1rem; /* rounded-2xl */
}

/* Container wrapper */
.kms-vision-image-wrapper {
    width: 100%;
    height: 24rem; /* h-96 = 384px / 24rem */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gambar di dalam wrapper - VERSI 1: object-fit cover dengan center positioning */
.kms-vision-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Ini yang membuat gambar fokus ke tengah */
    display: block;
}

/* VERSI 2: Jika ingin gambar selalu memenuhi container tanpa terpotong */
.kms-vision-image-wrapper .vision-image-contain {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Tidak memotong gambar */
    object-position: center center;
    background-color: #f5f5f5; /* Background fallback jika gambar transparan */
}

/* VERSI 3: Jika gambar lebih kecil dari container dan ingin di tengah dengan background */
.kms-vision-image-wrapper .vision-image-centered {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* Background color untuk container jika gambar tidak memenuhi */
.kms-vision-image-wrapper.has-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Untuk Image Widget WordPress */
.kms-vision-image-wrapper .wp-block-image,
.kms-vision-image-wrapper .wp-caption {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.kms-vision-image-wrapper .wp-block-image img,
.kms-vision-image-wrapper .wp-caption img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fallback untuk browser lama */
@supports not (object-fit: cover) {
    .kms-vision-image-wrapper {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .kms-vision-image-wrapper img {
        display: none; /* Sembunyikan img tag, gunakan background */
    }
}


/* Style untuk semua gambar di area service */
#kms-image-service-1-widget img,
.kms-service-image-default img,
.service-image-container img {
    border-radius: 1.5rem !important; /* rounded-3xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; /* shadow-xl */
    width: 100% !important;
    height: 16rem !important; /* h-64 */
    object-fit: cover !important;
    transition: all 0.3s ease !important;
}

/* Hover effect */
#kms-image-service-1-widget img:hover,
.kms-service-image-default img:hover,
.service-image-container img:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Untuk WordPress Image Widget */
#kms-image-service-1-widget .wp-block-image,
#kms-image-service-1-widget .wp-caption {
    width: 100% !important;
    margin: 0 !important;
}

#kms-image-service-1-widget .wp-block-image img,
#kms-image-service-1-widget .wp-caption img {
    width: 100% !important;
    height: 16rem !important;
    object-fit: cover !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Untuk Custom HTML Widget */
#kms-image-service-1-widget .custom-html-widget img {
    width: 100% !important;
    height: 16rem !important;
    object-fit: cover !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* AOS Animation attribute */
[data-aos] {
    visibility: hidden;
}

[data-aos].aos-animate {
    visibility: visible;
}

