/* Custom Styles for Kancelaria Pitera */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

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

html {
    margin: 0;
    padding: 0;
    background-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* Space for fixed navbar */
    margin: 0;
    background-color: transparent;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(108, 117, 125, 0.95)),
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1920&h=100&fit=crop') center/cover !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.navbar > .container {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    padding: 5px 15px;
    background-color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.navbar-brand .logo-img {
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(108, 117, 125, 0.9)),
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1920&h=1080&fit=crop') center/cover;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

@supports not (object-fit: cover) {
    .hero-video {
        display: none;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.67), rgba(108, 117, 125, 0.7));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero-section p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icons with gradient colors */
.text-primary,
.bi-check-circle-fill.text-primary,
.bi-person-fill.text-primary,
.bi-award-fill.text-primary,
.bi-book-fill.text-primary,
.bi-shield-fill.text-primary,
.bi-heart-fill.text-primary,
.bi-geo-alt-fill.text-primary,
.bi-telephone-fill.text-primary,
.bi-envelope-fill.text-primary {
    color: rgba(31, 44, 64, 0.95);
}

/* Dropdown menu styling */
.dropdown-menu {
    background-color: rgba(31, 44, 64, 0.95);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dropdown-item.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: rgba(31, 44, 64, 0.95);
    border-color: rgba(31, 44, 64, 0.95);
    color: white;
}

.btn-primary:hover {
    background-color: rgba(31, 44, 64, 1);
    border-color: rgba(31, 44, 64, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 44, 64, 0.4);
}

.btn-outline-primary {
    border-color: rgba(31, 44, 64, 0.95);
    color: rgba(31, 44, 64, 0.95);
}

.btn-outline-primary:hover {
    background-color: rgba(31, 44, 64, 0.95);
    border-color: rgba(31, 44, 64, 0.95);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 44, 64, 0.4);
}

/* Page Header */
.page-header {
    margin-top: 76px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(108, 117, 125, 0.95)),
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1920&h=400&fit=crop') center/cover !important;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Values Section */
.value-card {
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.value-card i {
    transition: transform 0.3s ease;
}

.value-card:hover i {
    transform: scale(1.1);
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
}

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

.service-card img {
    transition: transform 0.3s ease;
    height: 200px;
    object-fit: cover;
}

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

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

/* Contact Section */
.contact-info,
.contact-form {
    height: 100%;
}

.contact-info a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0a58ca;
}

.contact-form .form-control {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Google Map Styles */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .value-card,
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .navbar-brand .logo-img {
        height: 55px;
        max-width: 200px;
    }
    
    .navbar-brand {
        padding: 3px 10px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 80px;
    }
    
    .navbar-brand {
        padding: 3px 8px;
    }
    
    .navbar-brand .logo-img {
        height: 50px;
        max-width: 180px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .value-card i {
        font-size: 2.5rem !important;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* Statistics Section */
.stat-card {
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-card i {
    transition: transform 0.3s ease;
}

.stat-card:hover i {
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.5rem;
    color: rgba(31, 44, 64, 0.95);
}

