:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #6B7280;
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    scroll-padding-top: 80px; /* For smooth scrolling with fixed header */
}

/* Header & Navigation */
.nav-container {
    height: 80px;
    padding: 0 1.5rem;
}

.nav-menu {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Buttons */
.button {
    position: relative;
    z-index: 5;
    display: inline-block;
    cursor: pointer;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.button-outline {
    background-color: transparent;
    border: 2px solid white;
}

.button-outline:hover {
    background-color: white;
    color: var(--primary);
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Service Cards Improved */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    max-width: 1440px;
    margin: 0 auto;
}

.service-card {
    width: 300px;  /* Fixed width instead of minmax */
    position: relative;
    min-height: 380px;
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:nth-child(1) { 
    background-color: #EFF6FF; 
}
.service-card:nth-child(1):hover { 
    background-color: #DBEAFE; 
}

.service-card:nth-child(2) { 
    background-color: #F0FDF4; 
}
.service-card:nth-child(2):hover { 
    background-color: #DCFCE7; 
}

.service-card:nth-child(3) { 
    background-color: #FDF2F8; 
}
.service-card:nth-child(3):hover { 
    background-color: #FCE7F3; 
}

.service-card:nth-child(4) { 
    background-color: #FEF3C7; 
}
.service-card:nth-child(4):hover { 
    background-color: #FDE68A; 
}

.service-card:nth-child(5) { 
    background-color: #F3F4F6; 
}
.service-card:nth-child(5):hover { 
    background-color: #E5E7EB; 
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card box-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover box-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95) 20%);
    padding: 2rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.service-card:hover .service-details {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/hero-pattern.svg') center/cover;
    opacity: 0.1;
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Service Detail Sections */
.service-detail .container {
    max-width: 1280px;
    margin: 0 auto;
}

/* About Section */
.about .container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Contact Section */
.contact .container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Forms */
input, select, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Team Section */
.team-member img {
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

/* Animations - update to use a class that doesn't set opacity to 0 */
@keyframes fadeIn {
    from { opacity: 0.1; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Remove the existing fade-in class as it causes issues */
.fade-in {
    animation: none; /* Disable the animation that could be causing problems */
    opacity: 1 !important; /* Ensure visibility */
}

/* Responsive Fixes */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Footer Improvements */
.footer-links a {
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

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

.social-links a:hover {
    color: white;
    transform: translateY(-3px);
}
