:root {
    --primary-color: #0066cc;
    --secondary-color: #333333;
    --accent-color: #00cc99;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--secondary-color);
    padding-top: 76px;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1528728329032-2972f65dfb3f') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item {
    position: relative;
}

/* Desktop hover dropdown */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

/* Mobile dropdown handling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .dropdown-menu {
        border: none;
        background-color: rgba(0,0,0,0.02);
        padding-left: 1rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
    }
}

.nav-link {
    color: var(--secondary-color);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    transform: translateX(5px);
}

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

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

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

/* Service Cards */
.service-card {
    padding: 2rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.feature-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    color: #666;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card {
    padding: 2rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

/* Contact Form */
.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }

    h1.display-4 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .benefit-item {
        margin-bottom: 1rem;
    }

    .case-study {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 66px; /* Adjusted for smaller header */
    }

    .hero {
        min-height: 50vh;
    }

    h1.display-4 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .section-padding {
        padding: 2rem 0;
    }

    .card {
        margin-bottom: 1rem;
    }

    .chat-message {
        max-width: 90%;
    }
}

/* Ensure images are responsive */
.img-fluid {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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