/* Custom CSS for PT. Cipta Mandiri Bestari Website */

/* Global Styles */
:root {
    --primary-color: #D4AF37;
    --secondary-color: #B8941F;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #6c757d;
    --light-gray: #f8f9fa;
    --success-color: #28a745;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-title .highlight {
    color: var(--primary-color);
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 2rem auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background: var(--light-color);
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--light-color) !important;
    box-shadow: var(--shadow);
}

.navbar .logo {
    height: 48px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--dark-color) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    color: var(--dark-color);
}

.navbar.scrolled .navbar-toggler {
    color: var(--dark-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.7) 50%, transparent 100%);
}

.hero-content {
    padding: 120px 0 80px 0;
}

.hero-logo {
    height: 96px;
    width: auto;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    color: var(--light-color);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image-container {
    position: relative;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(60px);
    animation: pulse 2s infinite;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.5s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: linear-gradient(to bottom, var(--light-color) 0%, #f0f0f0 100%);
    padding: 80px 0;
}

.about-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.6) 0%, transparent 100%);
}

.about-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-content h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Performance Section */
.performance-section {
    background: var(--dark-color);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.performance-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

.performance-pattern {
    width: 100%;
    height: 100%;
    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='%23D4AF37' fill-opacity='1'%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");
}

.performance-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: rotate 2s linear infinite;
}

.progress-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.progress-card:hover {
    transform: scale(1.02);
}

.progress-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

.progress-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #F4D03F 100%);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.performance-footer {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 2rem;
}

/* Partners Section */
.partners-section {
    background: var(--light-color);
    padding: 80px 0;
}

.partners-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.partner-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-card:hover .partner-logo {
    filter: grayscale(0);
}

.partners-footer {
    font-size: 1.1rem;
    color: var(--gray-color);
    text-align: center;
    margin-top: 2rem;
}

/* Services Section */
.services-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, var(--light-color) 100%);
    padding: 80px 0;
}

.service-card {
    background: var(--light-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}

.service-card:nth-child(2) .service-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.service-card:nth-child(3) .service-header {
    background: linear-gradient(90deg, #28a745 0%, #1e7e34 100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.service-content {
    padding: 2rem;
    text-align: center;
}

.service-icon {
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to bottom, var(--light-color) 0%, #f0f0f0 100%);
    padding: 80px 0;
}

.contact-info {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-details p {
    color: var(--gray-color);
    margin: 0;
}

.btn-success {
    background: var(--success-color);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-form-container {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 30px 0;
}

.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--primary-color);
}

.contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    background: transparent;
    padding: 0;
}

.contact-details .contact-item i {
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-details .contact-item a {
    color: #adb5bd;
    text-decoration: none;
}

.contact-details .contact-item a:hover {
    color: var(--primary-color);
}

.contact-details .contact-item span {
    color: #adb5bd;
}

.footer-divider {
    border-color: #495057;
    margin: 2rem 0;
}

.footer-bottom {
    padding-top: 1rem;
}

.copyright {
    color: #adb5bd;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-legal a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 100px 0 60px 0;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }

    .progress-card {
        margin-bottom: 2rem;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn-primary, .btn-success {
        width: 100%;
        margin-bottom: 1rem;
    }

    .partner-card {
        height: 100px;
    }

    .partner-logo {
        max-height: 60px;
    }
}
