/* Modern Char Dham Tours - Complete Redesign */
/* Clean, Modern, Animated Design System */

:root {
    /* Color Palette */
    --primary: #FF6B35;
    --secondary: #F7931E;
    --accent: #4A90E2;
    --dark: #2C3E50;
    --light: #ECF0F1;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #E9ECEF;
    --gray-200: #DEE2E6;
    --gray-300: #CED4DA;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --gray-900: #000000;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: var(--space-md);
    color: var(--gray-600);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--secondary);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--dark);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* Layout System */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--space-md);
}

.col {
    flex: 1;
    padding: 0 var(--space-md);
}

.col-1 { flex: 0 0 8.333%; }
.col-2 { flex: 0 0 16.667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333%; }
.col-5 { flex: 0 0 41.667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333%; }
.col-8 { flex: 0 0 66.667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333%; }
.col-11 { flex: 0 0 91.667%; }
.col-12 { flex: 0 0 100%; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh; /* Reduced by 25% from 100vh */
    padding-top: 80px; /* Account for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="60" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 800px;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--white);
    color: var(--primary);
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
    color: var(--primary);
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition-normal);
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.hero-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.hero-nav-prev {
    left: 30px;
}

.hero-nav-next {
    right: 30px;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-normal);
}

.hero-indicator:hover,
.hero-indicator.active {
    background: var(--white);
    border-color: var(--white);
}

/* Sections */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-bg {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
}

.section-dark {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: var(--white);
}

.section-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="section-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="rgba(255,107,53,0.05)"/><circle cx="45" cy="45" r="1" fill="rgba(247,147,30,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23section-pattern)"/></svg>');
    pointer-events: none;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--space-xl);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-md);
    transition: var(--transition-normal);
}

.card:hover .card-title {
    color: var(--primary);
}

.card-text {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-normal);
}

.card-link:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    flex: 0 0 33.333%;
    min-width: 0;
}

.carousel-slide {
    padding: var(--space-lg);
}

.carousel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.carousel-image {
    height: 200px;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.carousel-card:hover .carousel-image img {
    transform: scale(1.05);
}

.carousel-content {
    padding: var(--space-lg);
    text-align: center;
}

.carousel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition-normal);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.carousel-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-nav.prev { left: var(--space-lg); }
.carousel-nav.next { right: var(--space-lg); }

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition-normal);
}

.modal-close:hover {
    color: var(--dark);
}

.modal-body {
    padding: var(--space-xl);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--dark);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .nav {
        display: none;
    }

    .hero {
        height: 90vh;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.25rem);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel-nav {
        display: none;
    }

    .modal-content {
        margin: var(--space-lg);
        width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .card-content {
        padding: var(--space-lg);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn:focus,
.nav-link:focus,
.form-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero,
    .carousel-nav,
    .modal {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Modern Navigation System - Complete Redesign */

/* Header Container */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-container.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Top Bar */
.topblue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 0;
    position: relative;
    overflow: hidden;
}

.topblue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="top-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="30" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23top-pattern)"/></svg>');
    animation: topFloat 15s ease-in-out infinite;
}

@keyframes topFloat {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-10px); }
}

.topblue .container {
    position: relative;
    z-index: 2;
}

.topblue ul.nav li span {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.topblue ul.nav li span:hover {
    color: #ffd700;
    transform: translateY(-1px);
}

.topblue ul.nav li span i.fa-phone {
    font-size: 16px;
    margin-right: 8px;
    color: #ffd700;
    animation: phonePulse 2s infinite;
}

@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Main Header */
.header-background {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo - Positioned on the Left */
.logodiv {
    margin-right: auto;
    flex-shrink: 0;
    z-index: 10;
}

/* Modern Navigation Menu - Positioned on the Right */
#cssmenu {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logodiv .logo {
    display: block;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logodiv .logo:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.logodiv .logo img {
    width: 90px;
    height: 68px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

#cssmenu > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

#cssmenu > ul > li {
    position: relative;
}

#cssmenu > ul > li > a {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    margin: 0 2px;
}

#cssmenu > ul > li:hover > a,
#cssmenu > ul > li.active > a {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

#cssmenu > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

#cssmenu > ul > li:hover > a::after,
#cssmenu > ul > li.active > a::after {
    width: 70%;
}

/* Dropdown Menu - Fixed Z-Index and Positioning */
#cssmenu ul ul {
    position: absolute;
    left: 0;
    top: 100%;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 220px;
    padding: 12px 0;
    z-index: 2000; /* Higher than hero section */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#cssmenu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#cssmenu ul ul li {
    position: relative;
    transition: all 0.2s ease;
}

#cssmenu ul ul li a {
    padding: 12px 20px;
    font-size: 14px;
    background: transparent;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0;
    position: relative;
    display: block;
    font-weight: 500;
}

#cssmenu ul ul li:hover > a,
#cssmenu ul ul li a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(8px);
    padding-left: 28px;
}

#cssmenu ul ul li:hover > a::before {
    content: '→';
    position: absolute;
    left: 12px;
    color: #667eea;
    font-weight: bold;
}

/* Special Contact Button */
#cssmenu li a[href*="contact"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 20px;
    box-shadow: 0 4px 15px rgba(238, 90, 82, 0.3);
    transition: all 0.3s ease;
}

#cssmenu li a[href*="contact"]:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(238, 90, 82, 0.4);
    color: white;
}

#cssmenu li a[href*="contact"]::after {
    display: none;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    #cssmenu > ul > li > a {
        padding: 18px 20px;
        font-size: 14px;
    }

    .logodiv .logo img {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .topblue {
        display: none;
    }

    .header-background {
        padding: 10px 0;
    }

    .header-content {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logodiv {
        order: 1;
        position: static;
        transform: none;
        margin-right: auto;
    }

    .menu-toggle {
        order: 2;
        display: flex;
        z-index: 1501;
        margin-left: auto;
    }

    #cssmenu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1500;
        margin-left: 0;
    }

    #cssmenu.active {
        left: 0;
    }

    #cssmenu > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    #cssmenu > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    #cssmenu > ul > li > a {
        padding: 20px 30px;
        display: block;
        border-radius: 0;
        margin: 0;
    }

    #cssmenu ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(102, 126, 234, 0.05);
        border: none;
        border-radius: 0;
        margin-top: 10px;
    }

    #cssmenu ul ul li a {
        padding: 15px 40px;
        color: #495057;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1499;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    #cssmenu {
        width: 280px;
    }

    #cssmenu > ul > li > a {
        padding: 18px 25px;
        font-size: 16px;
    }

    #cssmenu ul ul li a {
        padding: 12px 35px;
        font-size: 15px;
    }

    .logodiv .logo img {
        width: 70px;
        height: 53px;
    }
}

/* Accessibility */
#cssmenu a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth Animations */
* {
    transition: all 0.3s ease;
}

/* Hero Section Spacing */
.hero {
    margin-top: 120px; /* Proper gap between header and hero */
}

/* Breadcrumb and Search Box Spacing for Fixed Header */
.breadcrumb-section,
.search-section {
    margin-top: 120px; /* Account for fixed header */
    position: relative;
    z-index: 999;
}

/* Ensure dropdowns stay above hero */
#cssmenu ul ul {
    z-index: 2000 !important;
}
