/* Variables */
:root{--primary:#059669;--primary-dark:#047857;--primary-light:#10b981;--secondary:#4f46e5;--accent:#f59e0b}

/* Global styles */
body{font-family:'Poppins',sans-serif;background-color:#f9fafb;padding-top:70px}/* Account for fixed nav */
.page-header{padding-top:40px}/* Extra padding for page headers */

/* Navigation styles */
nav{z-index:1000;position:fixed;top:0;left:0;right:0;background:linear-gradient(135deg,#fff 0%,#f8fafc 100%);backdrop-filter:blur(10px);border-bottom:1px solid rgba(229,231,235,0.8);box-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06);transition:all 0.3s ease}
nav .max-w-7xl{height:64px}
nav .flex.justify-between{height:100%;align-items:center}
nav .flex-shrink-0.flex.items-center{height:100%}
nav:hover{box-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05)}

/* Navigation brand styling */
nav a[href="index.html"]{background:linear-gradient(135deg,#059669,#10b981);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-weight:700;text-shadow:0 2px 4px rgba(5,150,105,0.2);transition:all 0.3s ease}

nav a[href="index.html"]:hover{transform:scale(1.05)}

/* Navigation links styling */
nav .hidden.sm\:flex{display:flex;align-items:center;height:100%}

nav .hidden.sm\:flex a{position:relative;font-weight:500;transition:all 0.3s ease;border-radius:8px;padding:8px 16px;display:flex;align-items:center;height:100%}

nav .hidden.sm\:flex a:hover{background:linear-gradient(135deg,rgba(5,150,105,0.1),rgba(16,185,129,0.1));transform:translateY(-1px);box-shadow:0 4px 8px rgba(5,150,105,0.2)}

/* Language switcher styling */
nav .flex.items-center{height:100%;align-items:center}

nav .flex.items-center button{transition:all 0.3s ease;border-radius:4px;padding:4px 8px;font-weight:500}

nav .flex.items-center button:hover{background:linear-gradient(135deg,rgba(5,150,105,0.1),rgba(16,185,129,0.1));transform:translateY(-1px);box-shadow:0 4px 8px rgba(5,150,105,0.2)}

/* Navigation hover effects */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

/* Card Animations */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Form Input Animations */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: scale(1.02);
}

/* Hero Section Animation */
.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    animation: fadeInRight 1s ease-out;
}

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

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

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* Testimonial Section */
.testimonial {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Footer Enhancement */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Z-Index Hierarchy Fix */
.z-index-modal {
    z-index: 9999;
}

.z-index-dropdown {
    z-index: 1100;
}

.z-index-nav {
    z-index: 1000;
}

.z-index-overlay {
    z-index: 900;
}

.z-index-content {
    z-index: 100;
}

.z-index-background {
    z-index: 1;
}

/* Mobile Menu Fixes */
#mobile-menu {
    z-index: 1050;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dropdown Menu Fixes */
.dropdown-menu {
    z-index: 1100;
    position: absolute;
}

/* Hero Section Z-Index Fix */
.hero-section {
    position: relative;
    z-index: 10;
    padding-top: 80px; /* Account for fixed nav */
}

/* Body padding already set in global styles */

/* Ensure proper stacking context */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}