/*
  Project: Euro24 IT - Responsive Website
  Author: Nayeem Islam
  Version: 3.2 (Fixed Mobile Navbar)
  Date: 2025-08-11
*/

/* 1. Base Styles & Variables */
:root {
    --primary-color: #0d6efd;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --body-font: 'Poppins', sans-serif;
    --section-padding: 60px 0;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 70px;
}

/* 2. Optimized Navigation Bar */
.navbar {
    padding: 0.3rem 0;
    background-color: var(--dark-color) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 60px;
}

.navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
    max-width: 100%;
    display: inline-block;
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    margin-left: auto;
    border: none;
    z-index: 100;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Mobile menu (under 992px) */
@media (max-width: 991.98px) {
    .navbar .container-fluid {
        flex-wrap: nowrap;
    }
    
    .navbar-brand {
        flex-grow: 1;
    }
    
    .navbar-toggler {
        order: 2;
        margin-left: 0.5rem;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-color);
        z-index: 1000;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav {
        padding-left: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .navbar .container-fluid {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    
    .navbar-logo {
        height: 60px;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Small screens adjustment */
@media (max-width: 575.98px) {
    .navbar {
        min-height: 60px;
        padding: 0.375rem 0;
    }
    
    .navbar-logo {
        height: 45px;
    }
    
    .navbar .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* 3. Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    min-height: 100vh;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.1);
    text-align: center;
    display: block;
}

/* Hero Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.animate-fade-in { animation: fadeInUp 1s ease-out; }
.animate-fade-in-delay { animation: fadeInUp 1s ease-out 0.3s both; }
.animate-fade-in-delay-2 { animation: fadeInUp 1s ease-out 0.6s both; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* 4. General Content & Cards */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.service-icon i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* 5. Buttons */
.btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* 6. Responsive Adjustments */
@media (max-width: 991.98px) {
    .section-title { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 767.98px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero-buttons .btn { width: 100%; text-align: center; }
}

@media (max-width: 575.98px) {
    body { line-height: 1.5; }
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 0.95rem; }
    .hero-buttons .btn { padding: 0.7rem 1.5rem; }
}

/* 7. Other Sections */
.stat-item h4 { font-size: 2.5rem; font-weight: 700; }
.feature-item { padding: 1rem; border-radius: 10px; transition: background-color 0.3s ease; }
.feature-item:hover { background-color: #f8f9fa; }
.feature-icon i { font-size: 1.5rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: rgba(0, 123, 255, 0.1); }
.client-logo img { max-height: 80px; width: auto; filter: grayscale(100%); transition: filter 0.3s ease; }
.client-logo:hover img { filter: grayscale(0%); }
.contact-form { background: rgba(255, 255, 255, 0.1); padding: 3rem; border-radius: 15px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); }
.form-control, .form-select { 
    padding: 1rem; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 10px; 
    background-color: rgba(255, 255, 255, 0.1); 
    color: white; 
    font-size: 1rem; 
}

.form-control::placeholder { 
    color: rgba(255, 255, 255, 0.7); 
}

.form-control:focus, .form-select:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); 
    background-color: rgba(255, 255, 255, 0.2); 
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.invalid-feedback {
    color: #ffc107;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert {
    border-radius: 10px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
    color: #fff;
}
.form-select option { background-color: var(--dark-color); color: white; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background-color: var(--primary-color); color: white; text-decoration: none; transition: all 0.3s ease; }
.social-link:hover { background-color: var(--dark-color); transform: translateY(-3px); color: white; }
footer .social-links a { color: white; }
footer .social-links a:hover { color: var(--primary-color); }

/* Form Validation Styling */
.invalid-feedback {
    display: block;
    color: #dc3545;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}