/* ============================================
   CSS Variables - Brand Colors
   ============================================ */
:root {
    --primary-blue: #1a3a5f;
    --accent-green: #7ed321;
    --dark-blue: #0f2a47;
    --light-blue: #2c5a8a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --success-green: #25D366;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-premium: 0 20px 60px rgba(26, 58, 95, 0.15);
}

/* ============================================
   Base Styles
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-gray);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    letter-spacing: -0.03em;
    font-weight: 800;
}

/* ============================================
   Bootstrap Overrides
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, #6bb81a 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(126, 211, 33, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6bb81a 0%, var(--accent-green) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(126, 211, 33, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(126, 211, 33, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.text-accent {
    color: var(--accent-green) !important;
}

.bg-accent {
    background-color: var(--accent-green) !important;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.99) !important;
    backdrop-filter: blur(20px);
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 80px;
    width: auto;
    max-width: 200px;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 60px;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), #6bb81a);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    background: rgba(126, 211, 33, 0.08);
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.55) 0%, rgba(15, 42, 71, 0.65) 50%, rgba(26, 58, 95, 0.5) 100%);
    z-index: 2;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(126, 211, 33, 0.1) 0%, transparent 50%);
    z-index: 1;
}

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

.hero-content {
    animation: fadeInUp 1s ease;
}

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

.hero-stats {
    animation: fadeInRight 1s ease 0.3s both;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-premium);
}

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

.scroll-indicator {
    z-index: 3;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================
   Trust Badges
   ============================================ */
.trust-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    border-radius: 12px;
}

.trust-item:hover {
    transform: translateY(-8px);
    background: rgba(126, 211, 33, 0.05);
}

.trust-item i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-item:hover i {
    background: linear-gradient(135deg, var(--accent-green), #6bb81a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.15);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(233, 236, 239, 0.8);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), #6bb81a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-premium) !important;
    border-color: var(--accent-green);
    background: linear-gradient(to bottom, var(--white) 0%, rgba(248, 249, 250, 0.5) 100%);
}

.service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(126, 211, 33, 0.3));
}

.service-card ul li {
    transition: padding-left 0.3s ease;
}

.service-card:hover ul li {
    padding-left: 5px;
}

/* ============================================
   Process Steps
   ============================================ */
.process-step {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    border-radius: 16px;
}

.process-step:hover {
    transform: translateY(-12px);
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.05), rgba(26, 58, 95, 0.05));
}

.process-number {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue)) !important;
    box-shadow: 0 4px 15px rgba(26, 58, 95, 0.3);
}

.process-step:hover .process-number {
    background: linear-gradient(135deg, var(--accent-green), #6bb81a) !important;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(126, 211, 33, 0.4);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item:hover img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2) 0%, rgba(26, 58, 95, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item::before {
    content: 'View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(233, 236, 239, 0.8);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 120px;
    color: rgba(126, 211, 33, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-green);
    background: linear-gradient(to bottom, var(--light-gray) 0%, var(--white) 100%);
}

.avatar {
    font-size: 1.2rem;
}

/* ============================================
   Accordion (FAQ)
   ============================================ */
.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-blue);
    background-color: var(--white);
    border-radius: 12px !important;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.05), rgba(26, 58, 95, 0.05));
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.accordion-button:hover {
    background: rgba(126, 211, 33, 0.05);
    transform: translateX(5px);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(126, 211, 33, 0.15), var(--shadow-sm);
    border-color: var(--accent-green);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a3a5f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ============================================
   Contact Section
   ============================================ */
.contact-info-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(233, 236, 239, 0.8);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(126, 211, 33, 0.1), transparent);
    transition: left 0.6s;
}

.contact-info-card:hover::before {
    left: 100%;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.03), rgba(26, 58, 95, 0.03));
}

.contact-icon-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue)) !important;
    box-shadow: 0 4px 15px rgba(26, 58, 95, 0.3);
}

.contact-info-card:hover .contact-icon-wrapper {
    background: linear-gradient(135deg, var(--accent-green), #6bb81a) !important;
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 25px rgba(126, 211, 33, 0.4);
}

.contact-form-card {
    border: 1px solid rgba(233, 236, 239, 0.8);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.875rem 1.25rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 0.25rem rgba(126, 211, 33, 0.15), 0 4px 12px rgba(126, 211, 33, 0.1);
    transform: translateY(-2px);
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(126, 211, 33, 0.5);
}

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15);
}

.whatsapp-float div {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    backdrop-filter: blur(10px);
}

.whatsapp-float:hover div {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.7);
    transform: rotate(5deg);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ============================================
   Footer
   ============================================ */
footer a {
    transition: color 0.3s ease;
}

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

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

/* ============================================
   Animations & Transitions
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease;
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .whatsapp-float div {
        width: 55px !important;
        height: 55px !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .whatsapp-float,
    .btn {
        display: none !important;
    }
}

/* ============================================
   Accessibility
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* ============================================
   Loading States
   ============================================ */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

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

/* ============================================
   Premium Section Styling
   ============================================ */
section {
    position: relative;
}

.section-header {
    position: relative;
    padding-bottom: 1rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), #6bb81a);
    border-radius: 2px;
}

.badge {
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* ============================================
   Premium Typography Enhancements
   ============================================ */
.lead {
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.8;
}

.text-muted {
    color: #6c757d !important;
    font-weight: 400;
}

/* ============================================
   Premium Card Enhancements
   ============================================ */
.rounded-4 {
    border-radius: 1.5rem !important;
}

/* ============================================
   Premium Background Patterns
   ============================================ */
.bg-light {
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(126, 211, 33, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 58, 95, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-light > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   Premium Button Enhancements
   ============================================ */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    font-weight: 600;
}

/* ============================================
   Premium Scrollbar (Webkit browsers)
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-green), #6bb81a);
}

/* ============================================
   Premium Selection
   ============================================ */
::selection {
    background: rgba(126, 211, 33, 0.3);
    color: var(--dark-gray);
}

::-moz-selection {
    background: rgba(126, 211, 33, 0.3);
    color: var(--dark-gray);
}
