/* 
 * Main CSS file for Localize Pros website
 * Contains all shared styles from across multiple pages
 */

/* Base Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Hero Section Styles */
.hero-pattern {
    background-color: #004D40;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(156, 224, 105, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100% 100%;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* Text Styling */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #9CE069 65%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.1em 0; /* Add padding to ensure gradient covers full text */
    display: inline-block; /* Ensure the gradient covers the entire text block */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #9CE069;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #004D40;
}

/* Form Styling */
.form-input:focus {
    border-color: #9CE069;
    box-shadow: 0 0 0 3px rgba(156, 224, 105, 0.2);
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #9CE069;
    background-color: rgba(156, 224, 105, 0.05);
}

/* Navigation Menu Styles */
.nav-dropdown {
    position: relative;
    z-index: 50;
}

.nav-dropdown:hover {
    z-index: 1000;
}

.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    max-height: 80vh;
    overflow-y: auto;
    min-width: 200px;
}

/* Create an invisible bridge between button and dropdown */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-link {
    color: #4B5563;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    position: relative;
}

.nav-link:hover {
    color: #006153;
    background-color: #9CE069;
}

/* Mobile Menu Styles */
.mobile-menu-button {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-dropdown-content {
        display: none;
    }
}

/* Ensure the navigation stays above other content */
nav {
    position: relative;
    z-index: 50;
}

/* Custom scrollbar for dropdowns */
.nav-dropdown-content::-webkit-scrollbar {
    width: 4px;
}

.nav-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.nav-dropdown-content::-webkit-scrollbar-thumb {
    background: #9CE069;
    border-radius: 4px;
}

.nav-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #006153;
}

/* Mobile dropdown styles */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-dropdown-content.show {
    max-height: 500px;
}

/* Responsive Typography */
h1 {
    font-size: 1.3rem;
    line-height: 2rem;
}

h2 {
    font-size: 1.2rem;
    line-height: 1.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

h3 {
    font-size: 1rem;
    line-height: 1.375rem;
}

p {
    font-size: 0.9375rem;
    line-height: 1.4rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.375rem;
        line-height: 1;
    }

    h2 {
        font-size: 2.25rem;
        line-height: 2.5rem;
        margin-top: initial;
        margin-bottom: initial;
        letter-spacing: normal;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    p {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

/* Card and Element Hover Effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 77, 64, 0.1), 0 10px 10px -5px rgba(0, 77, 64, 0.04);
}

/* Image Optimization & CLS Prevention */
img {
    max-width: 100%;
    height: auto;
}

/* Force image aspect ratio to prevent layout shifts (CLS) */
.img-container {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.img-ratio-4-3 {
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.img-ratio-16-9 {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

/* Utility Classes */
.bg-brand-green {
    background-color: #004D40;
}

.bg-brand-light {
    background-color: #00796B;
}

.bg-accent-green {
    background-color: #9CE069;
}

.text-brand-green {
    color: #004D40;
}

.text-brand-light {
    color: #00796B;
}

.text-accent-green {
    color: #9CE069;
}

/* Mobile-specific Styles */
@media (max-width: 768px) {
    #mobile-menu {
        z-index: 9999 !important;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: left;
    }
} 