/* Modal Custom Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: var(--primary-red);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25);
}

.btn-primary {
    background-color: var(--primary-red);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.alert-info {
    background-color: #f0f7ff;
    border-color: #cce5ff;
    color: #004085;
    border-radius: 8px;
}

[data-theme="dark"] .modal-content {
    background-color: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .modal-footer {
    background-color: #2d3748;
    border-top-color: #4a5568;
}

[data-theme="dark"] .alert-info {
    background-color: #1a365d;
    border-color: #2c5282;
    color: #90cdf4;
}
:root {
    /* Light Theme (Default) */
    --primary-red: #dc2626;
    --secondary-red: #ef4444;
    --light-red: #fef2f2;
    --dark-red: #991b1b;
    --pure-white: #ffffff;
    --light-gray: #f8fafc;
    --text-gray: #64748b;
    --dark-gray: #334155;
    --bg-color: #ffffff;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --footer-bg: #e2e8f0;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-red: #f87171;
    --secondary-red: #ef4444;
    --light-red: #7f1d1d;
    --dark-red: #fecaca;
    --pure-white: #0f172a;
    --light-gray: #1e293b;
    --text-gray: #94a3b8;
    --dark-gray: #e2e8f0;
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --card-bg: #1e293b;
    --border-color: #334155;
    --footer-bg: #0f172a;
}

/* Ensure text remains readable on dark backgrounds */
[data-theme="dark"] .text-dark {
    color: var(--dark-gray) !important;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Navbar */
.navbar-custom {
    background: rgba(var(--bg-color-rgb), 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--light-gray);
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    margin-left: 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
    background-color: var(--light-gray);
    transform: rotate(30deg);
}

.navbar-custom.scrolled {
    background: var(--pure-white);
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-red) !important;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 8px;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 100;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28220, 38, 38, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

.navbar-nav {
    margin-top: 0.5rem;
}

.navbar-nav .nav-item {
    margin: 0.25rem 0;
}

.navbar-nav .nav-link {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--dark-gray) !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(220, 38, 38, 0.08);
    color: var(--primary-red) !important;
}

/* Mobile Menu Background */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        position: absolute;
        width: 94%;
        left: 3%;
        top: 100%;
    }
    
    .navbar-custom {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Mobile Spacing */
@media (max-width: 991.98px) {
    .section-padding {
        padding-top: 10rem !important;
    }
    
    .navbar-custom {
        padding: 1rem 0 !important;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding-top: 7rem !important;
        min-height: auto;
    }
    
    .hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-image {
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    .hero-image img {
        border-radius: 16px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Section Base Styles */
section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background-color: var(--pure-white);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: -1;
    background: inherit;
}

/* Hero Section */
/* Animated Background for Light Theme */
[data-theme="light"] .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 40% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 60% 40%, rgba(16, 185, 129, 0.08) 0%, transparent 25%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    z-index: 0;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.hero-section {
    background: linear-gradient(135deg, var(--light-red) 0%, var(--bg-color) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    z-index: 1;
    transition: background 0.3s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--light-red) 0%, var(--light-red) 50%, transparent 50%, transparent 100%);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red));
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-danger {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white !important;
}

.btn-danger:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

[data-theme="dark"] .btn-danger {
    background: #ef4444;
    border-color: #ef4444;
}

[data-theme="dark"] .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline-custom {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 13px 35px;
    font-weight: 600;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.btn {
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

/* Service Cards */
.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.service-card-body {
    padding: 1.5rem;
}

/* Testimonial */
.testimonial-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid var(--light-red);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--text-gray);
    padding: 3rem 0 1rem;
}

[data-theme="dark"] .footer {
    background: #0f172a;
    color: #e2e8f0;
}

.footer a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-red);
}

[data-theme="dark"] .footer a {
    color: #e2e8f0;
}

[data-theme="dark"] .footer a:hover {
    color: var(--secondary-red);
}

/* Section Backgrounds */
#fitur {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--bg-color) 100%);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

#fitur::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--light-red) 0%, var(--light-red) 50%, #f8fafc 50%, #f8fafc 100%);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: -1;
}

#layanan {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--light-gray) 100%);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

#layanan::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #f8fafc 50%, #f8fafc 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: -1;
}

#testimoni {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--light-gray) 100%);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

#testimoni::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 50%, #fef2f2 50%, #fef2f2 100%);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: -1;
}

#kontak {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    color: white;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

[data-theme="dark"] #kontak {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
}

#kontak::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #fef2f2 0%, #fef2f2 50%, var(--primary-red) 50%, var(--primary-red) 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: -1;
}

.bg-light {
    background-color: var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 20px;
    }

    .footer {
        padding: 20px;
    }
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Mobile Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        padding: 1rem 0;
        margin: 0;
        background-color: white;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        width: 100% !important;
    }
    
    [data-theme="dark"] .navbar-collapse {
        background-color: #1a202c;
        border-top: 1px solid #2d3748;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav {
        margin: 0;
        padding: 0 1.5rem;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 0;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: #333;
        display: block;
        width: 100%;
        box-sizing: border-box;
        font-size: 1.05rem;
        line-height: 1.5;
    }
    
    [data-theme="dark"] .navbar-nav .nav-link {
        color: #e2e8f0 !important;
        border-bottom: 1px solid #2d3748;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link.active {
        color: var(--primary-red);
        font-weight: 500;
    }
    
    [data-theme="dark"] .navbar-nav .nav-link.active {
        color: #feb2b2 !important;
    }
    
    .navbar-toggler {
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.5rem;
    }
    
    [data-theme="dark"] .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
    
    [data-theme="dark"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28226, 232, 240, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25);
        outline: none;
    }
    
    .navbar-nav {
        margin: 0 -1rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    .btn-danger {
        margin-top: 0.5rem;
        display: inline-block;
        width: 100%;
        text-align: center;
    }
    
    .theme-toggle {
        margin: 0.5rem 0;
        width: 100%;
        text-align: left;
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: transparent;
    }
    
    [data-theme="dark"] .theme-toggle {
        border-color: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
}

/* Custom Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

[data-theme="dark"] .hamburger-line {
    background-color: #fff;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}