/* Root Variables for Theming */
:root {
    /* Primary Color Palette */
    --primary-color: #f4b400;  /* Vibrant Gold */
    --secondary-color: #1a1a1a;  /* Dark Charcoal */
    
    /* Theme Colors */
    --background-light: #ffffff;
    --background-dark: #0d0d0d;
    --text-light: #ddd;
    --text-dark: #333;
    
    /* Accent Colors */
    --accent-color: #f4b400;
    --accent-hover: #ffcc33;
    
    /* Typography */
    --font-primary: 'Arial', sans-serif;
    --font-secondary: 'Helvetica', sans-serif;
}

/* Dark Theme Variables */
[data-theme='dark'] {
    --background-light: #121212;
    --background-dark: #000000;
    --text-light: #ffffff;
    --text-dark: #e0e0e0;
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Navigation Styles */
.navbar {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 180, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-light) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--secondary-color);
    overflow: hidden;
    padding-top: 76px;
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto 0;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    height: 400px; /* Set fixed height for consistency */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    text-align: center;
}

/* Feature Cards */
.feature-card {
    background: linear-gradient(135deg, #2e2e2e, #1a1a1a);
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(244, 180, 0, 0.3);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--text-dark);
    padding: 1rem 2rem;
    font-weight: bold;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.4);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-images {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .hero-image {
        height: 33vh; /* Each image takes 1/3 of viewport height */
        border-radius: 8px;
    }
    
    .hero-content {
        padding: 4rem 1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-image {
        height: 250px; /* Fixed height for very small screens */
    }
    
    .hero-content {
        padding: 3rem 1rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
    }
}

/* Accessibility and Focus States */
*:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Scroll Bar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

/* Contact Icons */
.contact-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.icon-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.icon-image:hover {
    transform: scale(1.1);
}
/* Form Validation Styles */
.error-container {
    min-height: 1.25rem;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.notification-container .alert {
    max-width: 300px;
}

/* Optional: Enhance form input styles */
.form-control.bg-dark {
    background-color: #2e2e2e !important;
    border-color: var(--primary-color);
    color: var(--text-light) !important;
}

.form-control.bg-dark:focus {
    background-color: #3a3a3a !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(244, 180, 0, 0.25);
}

@media (max-width: 768px) {
    .hero-images {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0;
        padding: 0;
        max-width: 100%;
    }
    .hero-image {
        margin-bottom: 1rem;
        height: calc(100vh - 76px); /* Set height to fill the viewport minus the top padding */
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 0; /* Remove border-radius for full-width images */
        overflow: hidden; /* Add this to prevent image overflow */
    }
    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    /* ... rest of the mobile styles ... */
}
}

    .hero-content {
        padding: 3rem 1rem;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding-top: 76px;
    }

    /* Responsive Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    /* Improved Button Responsiveness */
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Slightly smaller for very small screens */
@media (max-width: 480px) {
    .hero-images {
        gap: 0.75rem;
    }

    .hero-image {
        height: 220px;
    }

    .hero-image img {
        max-height: 220px;
    }

    .hero-content {
        padding: 2rem 0.75rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .lead {
        font-size: 1rem;
    }
}

    /* Typography Adjustments */
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Improved Touch Targets */
    .btn, .nav-link, .contact-icon {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 15px;
        margin: 5px 0;
    }

    /* Navigation Improvements */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav {
        margin-top: 1rem;
        text-align: center;
    }

    .nav-item {
        margin-bottom: 0.5rem;
    }

    /* Responsive Form Elements */
    .form-control {
        font-size: 16px;
        padding: 12px;
    }

    /* Section Spacing */
    .section {
        padding: 3rem 1rem;
    }

    /* Improved Image Responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Touch Interaction Enhancements */
    * {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Ultra-Small Screen Adjustments */
@media (max-width: 480px) {
    .hero-image img {
        max-height: 200px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    /* Additional ultra-small screen optimizations */
    .contact-icons {
        bottom: 10px;
        right: 10px;
    }

    .icon-image {
        width: 40px;
        height: 40px;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
    }
}

/* Blog Page Specific Styles */
.blog-hero {
    position: relative;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 76px;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    text-align: center;
}

/* Update existing contact icons styles */
.contact-icon .icon-image {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: none;
    padding: 0;
    box-shadow: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-icon:hover {
    transform: translateY(-2px);
    background: rgba(26, 26, 26, 1);
}

.icon-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Blog Search Container */
.search-container .form-control {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(244, 180, 0, 0.3);
    color: var(--text-light);
}

.search-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(244, 180, 0, 0.25);
}

/* Blog Cards */
.blog-card {
    background: linear-gradient(135deg, #2e2e2e, #1a1a1a);
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(244, 180, 0, 0.3);
}

/* Responsive adjustments for blog */
@media (max-width: 768px) {
    .blog-hero-content {
        padding: 4rem 1rem;
    }
    
    .contact-icons {
        right: 16px;
        bottom: 16px;
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .icon-image {
        width: 20px;
        height: 20px;
    }
}

/* Dropdown Styles */
.dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid #f4b400;
}

.dropdown-menu a {
    color: #ddd !important;
}

.dropdown-menu a:hover {
    background-color: #2e2e2e !important;
    color: #f4b400 !important;
}

.dropdown-toggle::after {
    color: #f4b400;
}

/* Enhanced navbar dropdown styles */
.navbar .dropdown-menu {
    max-height: none !important; /* Remove any height limits */
    overflow: visible !important; /* Ensure content is not cut off */
    z-index: 1030;
    background-color: #1a1a1a;
    border: 1px solid #f4b400;
    padding: 8px 0;
    min-width: 200px; /* Make it wider to fit longer menu items */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
  
.navbar .dropdown-item {
    padding: 8px 16px;
    color: #ddd;
    white-space: nowrap; /* Prevent text wrapping */
}
/* Fixed dropdown styles - simplified approach */
.navbar .dropdown-menu {
    max-height: none;
    overflow: visible;
    z-index: 1030;
    background-color: #1a1a1a;
    border: 1px solid #f4b400;
}

.navbar .dropdown-item {
    padding: 8px 16px;
    color: #ddd;
}

/* Remove any potential conflicts */
.navbar .navbar-collapse {
    overflow: visible;
}
