/* Custom CSS for Sertifikat PKL System - Inspired by taska.net.id */

:root {
    --primary-color: #0066ff;
    --secondary-color: #252b3b;
    --tertiary-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #252b3b;
    --gray-color: #6c757d;
    --border-radius: 4px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #444;
    background-color: #fafafa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
}

/* Navbar customization */
.navbar {
    padding: 15px 0;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Custom navbar toggler for white background */
.navbar-dark .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    padding: 0.25rem 0.5rem;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Logo Styles */
.navbar-brand {
    display: flex !important;
    align-items: center;
    background-color: transparent;
    padding: 0;
    margin-right: 30px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-main {
    height: auto;
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

/* Company Name Styles */
.navbar-brand .company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    margin-left: 15px;
    line-height: 1.2;
    display: inline !important; /* Ensure company name is always displayed */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.8)), url('../images/pattern.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: var(--secondary-color);
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

/* Card Styling */
.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #0055e0;
    border-color: #0055e0;
    box-shadow: 0 6px 15px rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

/* Form Controls */
.form-control {
    border-radius: var(--border-radius);
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #495057;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 576px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .logo-main {
        max-height: 30px;
    }
    
    .navbar-brand .company-name {
        font-size: 0.8rem;
        margin-left: 6px;
    }
    
    .hero-section {
        padding: 40px 0 30px;
        text-align: left;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .search-certificate {
        margin-top: 20px;
        padding: 20px;
    }
    
    .feature-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .features-section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .card-body {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .navbar-brand .company-name {
        font-size: 0.9rem;
        display: none; /* Hide company name on small devices */
    }
    
    .hero-section {
        padding: 50px 0 40px;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 15px;
    }
    
    footer {
        text-align: center;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.75rem 0.5rem;
    }
    
    .hero-section img {
        margin-top: 30px;
    }
}

/* Search certificate section */
.search-certificate {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* Features section */
.features-section {
    padding: 80px 0;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

/* Animation effects */
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimization based on screenshot 
 * Note: Additional mobile fixes can be found in taska-mobile-fixes.css
 */
@media (max-width: 576px) {
    .btn-mobile-primary {
        background-color: #0078ff;
        color: white;
        border-radius: 8px;
        padding: 12px 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        width: 100%;
        font-size: 1.1rem;
    }

    .btn-mobile-primary i {
        margin-right: 10px;
    }

    .btn-mobile-outline {
        background-color: transparent;
        border: 1px solid #0078ff;
        color: #0078ff;
        border-radius: 8px;
        padding: 12px 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        font-size: 1.1rem;
    }

    .btn-mobile-outline i {
        margin-right: 10px;
    }
    
    .btn-mobile-secondary {
        background-color: #6c757d;
        color: white;
        border-radius: 8px;
        padding: 12px 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        width: 100%;
        font-size: 1.1rem;
    }

    .btn-mobile-secondary i {
        margin-right: 10px;
    }
    
    /* Certificate and Tips boxes */
    .certificate-box {
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    .tips-box {
        background-color: #f8f9fa;
        border-left: 4px solid #0078ff;
        padding: 15px 20px;
        border-radius: 4px;
    }
    
    .tips-box h5 {
        color: #0078ff;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .tips-box ul {
        padding-left: 20px;
        margin-bottom: 0;
    }
    
    .tips-box li {
        margin-bottom: 5px;
    }
    
    /* Mobile hero section */
    .mobile-hero-heading {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 15px;
        color: #333;
    }
    
    .mobile-hero-text {
        font-size: 1rem;
        color: #666;
        margin-bottom: 30px;
    }
    
    /* Remove margin top for search certificate on mobile */
    .search-certificate {
        margin-top: 0;
        padding: 20px 15px;
    }
    
    /* Certificate result styling on mobile */
    .card-header {
        padding: 15px;
    }
    
    .card h5 {
        font-size: 1.1rem;
    }
    
    .card h6 {
        font-size: 1rem;
    }
    
    /* Make download button full width on mobile */
    .text-md-end .btn-primary, 
    .text-md-end .btn-success {
        display: block;
        width: 100%;
        margin-top: 15px;
    }
    
    /* Help section spacing on mobile */
    .list-unstyled li {
        margin-bottom: 8px;
    }
}

/* Search certificate specific styles */
.search-certificate {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

/* Animation effects */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}