/* ============================================
   CUSTOM CSS - WebPerusahaan.biz.id
   Premium Modern Design System
   ============================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-3: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PERFORMANCE ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR ===== */
#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition);
    z-index: 1030;
}

#mainNav.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
}

#mainNav .navbar-brand {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

#mainNav .brand-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

#mainNav .nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition);
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 10px;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 70%;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 36px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 180px 0 120px;
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.08);
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-section h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-image {
    animation: float 5s ease-in-out infinite;
}

/* ===== SECTION STYLES ===== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-desc {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-1);
    color: var(--white);
    transform: rotateY(360deg);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== PORTFOLIO CARDS ===== */
.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
    padding: 30px 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h5 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.portfolio-overlay span {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: var(--warning);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-1);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.cta-section .btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===== BLOG CARDS ===== */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--white);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-card .blog-content {
    padding: 25px;
}

.blog-card .blog-category {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.blog-card h5 a {
    color: var(--dark);
}

.blog-card h5 a:hover {
    color: var(--primary);
}

.blog-card .blog-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== CONTACT SECTION ===== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-control {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ===== FOOTER ===== */
.footer-section {
    background: var(--gradient-2);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 20px;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 1rem;
}

.social-icon:hover {
    background: var(--gradient-1);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 4px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-color: rgba(255,255,255,0.1) !important;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient-2);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 800;
}

.page-header .breadcrumb {
    justify-content: center;
    margin-top: 15px;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb .active {
    color: var(--white);
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.wa-float {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.wa-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8); }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: none;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    #mainNav .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        margin-top: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    #mainNav .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid #f1f5f9;
    }
    
    #mainNav .btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .hero-section {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .page-header {
        padding: 120px 0 50px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}