/* Custom Fonts */
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-diamond {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond-shape {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    transform: rotate(45deg);
    border-radius: 2px;
    position: absolute;
}

.diamond-shape-2 {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    transform: rotate(45deg);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 8px;
}

/* Main Hero Layout */
.hero-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: white; /* Base background */
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* Image Slider Styles */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vertical Navigation Dots */
.slider-nav {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.nav-dot.active {
    background-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.nav-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-dot.active::after {
    opacity: 1;
}

/* Responsive adjustments for slider navigation */
@media (max-width: 768px) {
    .slider-nav {
        right: 20px;
        gap: 10px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .nav-dot::after {
        width: 4px;
        height: 4px;
    }
}

.hero-background-overlay {
    position: absolute;
    inset: 0;
    background-color: #1e3a8a;
    opacity: 0.75;
}

.hero-foreground {
    position: absolute;
    inset: 0;
    background-color: transparent; /* Foreground is now a clipped container */
    z-index: 20;
    clip-path: polygon(0 0, 45% 0, 100% 100%, 0 100%);
}
/* This pseudo-element creates the white background inside the clipped area */
.hero-foreground::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: white;
    z-index: 21;
}
/* This pseudo-element creates the blue border */
/* .hero-foreground::after {
    content: '';
    position: absolute;
    top: 0;
    left: 45%;
    height: 141.42%;
    width: 12px;
    background: linear-gradient(to bottom, #3B82F6, #1E40AF);
    transform: rotate(-41.9deg);
    transform-origin: top left;
    z-index: 22;
} */




/* Subtle background texture for the white area */
.subtle-background {
    position: absolute;
    inset: 0;
    background-image: url('images/consultant.jpg');
    background-size: cover;
    opacity: 0.05;
    filter: grayscale(100%) brightness(1.5);
    z-index: 22; /* Must be above the white background but below content */
    clip-path: polygon(0 0, 45% 0, 100% 100%, 0 100%);
}

.hero-foreground .flex {
    position: relative;
    z-index: 23; /* Ensure content is on top of the texture */
}


/* Navigation Links */
.nav-link {
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}
/* Logic for nav link color based on position */
.hero-container nav a {
    color: white;
}
.hero-foreground nav a {
    color: #374151;
}
.nav-link:hover {
    color: #93c5fd;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #3b82f6;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}
.button-icon {
    margin-left: 12px;
    transition: transform 0.3s ease;
}
.cta-button:hover .button-icon {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-foreground, .subtle-background {
        clip-path: polygon(0 0, 45% 0, 100% 100%, 0 100%);
    }
    .hero-foreground::after {
        left: 45%;
    }
}

@media (max-width: 768px) {
    .hero-foreground, .subtle-background {
        clip-path: none;
    }
    .hero-foreground::after, .hero-background {
        display: none;
    }
    header nav {
        display: none;
    }
    .flex.items-center.h-full {
        justify-content: center;
        text-align: center;
    }
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1E293B;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Mobile Menu */
#mobile-menu {
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced Hover Effects */
nav a {
    position: relative;
    overflow: hidden;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Parallax Effect */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced Typography */
h2 {
    animation: fadeInUp 1s ease-out;
}

p {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Services Section Styles */
.services-section {
    position: relative;
}

.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
    color: #3b82f6;
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.expand-btn {
    position: relative;
    overflow: hidden;
}

.expand-btn:hover {
    transform: scale(1.05);
}

.expand-icon {
    transition: transform 0.3s ease;
}

.expand-btn.expanded .expand-icon {
    transform: rotate(45deg);
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.service-details.show {
    max-height: 300px;
    opacity: 1;
}

/* About Section Styles */
.about-section {
    position: relative;
}

.about-content {
    animation: fadeInLeft 1s ease-out;
}

.about-image {
    animation: fadeInRight 1s ease-out;
}

/* Animated Play Button */
.play-btn {
    position: relative;
    z-index: 10;
}

.play-ripple {
    animation: ripple 2s infinite;
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.play-btn:hover .play-ripple {
    animation-play-state: paused;
}

/* Fade In Animations */
@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);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 2rem;
    }
    
    .about-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .play-btn {
        width: 16px;
        height: 16px;
    }
    
    .play-btn svg {
        width: 6px;
        height: 6px;
    }
}

/* Portfolio Section Styles */
.portfolio-section {
    position: relative;
}

.portfolio-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.portfolio-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.5s ease-in-out;
}

.portfolio-card {
    width: 350px;
    flex-shrink: 0;
    transition: all 0.5s ease;
    opacity: 0.5;
    transform: scale(0.85);
    filter: blur(2px);
    z-index: 1;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.portfolio-card.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    z-index: 3;
}

.portfolio-card:hover {
    opacity: 1 !important;
    transform: scale(1) !important;
    filter: blur(0) !important;
    z-index: 10;
}

.portfolio-card .card-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.05);
}

.portfolio-card .card-content {
    padding: 1.5rem;
}

.portfolio-card .card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.portfolio-card .card-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-card .card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-card .tag {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.portfolio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.portfolio-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.portfolio-prev {
    left: 10px;
}

.portfolio-next {
    right: 10px;
}

.portfolio-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.portfolio-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-dots .dot:hover {
    background: #9ca3af;
}

.portfolio-dots .dot.active {
    background: #3b82f6;
}

/* Testimonials Section Styles */
.testimonials-section {
    position: relative;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.testimonial-quote {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.author-info {
    text-align: center;
}

.testimonial-prev,
.testimonial-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
    left: 1rem;
}

.testimonial-next {
    right: 1rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.testimonial-dot.active {
    background: white !important;
}

/* Case Studies Section Styles */
.case-study-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.case-study-card:hover .card-image img {
    transform: scale(1.1);
}

.case-study-card img {
    transition: transform 0.3s ease;
}

.case-study-card:hover img {
    transform: scale(1.05);
}

/* Slider Navigation Styles */
.portfolio-prev,
.portfolio-next,
.testimonial-prev,
.testimonial-next {
    z-index: 10;
    backdrop-filter: blur(10px);
}

.portfolio-prev:hover,
.portfolio-next:hover,
.testimonial-prev:hover,
.testimonial-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Animation for section entrance */
.portfolio-section,
.testimonials-section,
.case-studies-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.portfolio-section.animate-in,
.testimonials-section.animate-in,
.case-studies-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Video modal responsive container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

/* Responsive Design for New Sections */
@media (max-width: 1024px) {
    .portfolio-container {
        padding: 0 50px;
    }
    
    .portfolio-card {
        width: 300px;
    }
    
    .portfolio-cards {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        padding: 0 20px;
        overflow: hidden;
    }
    
    .portfolio-cards {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .portfolio-card {
        width: 100%;
        max-width: 350px;
        opacity: 1 !important;
        transform: scale(1) !important;
        filter: blur(0) !important;
    }
    
    .portfolio-card:not(.active) {
        display: none;
    }
    
    .portfolio-card h3 {
        font-size: 1.25rem;
    }
    
    .portfolio-card p {
        font-size: 0.875rem;
    }
    
    .testimonial-slide p {
        font-size: 1.125rem;
    }
    
    .portfolio-prev,
    .portfolio-next,
    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
    }
    
    .portfolio-prev svg,
    .portfolio-next svg,
    .testimonial-prev svg,
    .testimonial-next svg {
        width: 20px;
        height: 20px;
    }
} 
/* ############################## */

/* Logo styling */
.logo-container {
    display: flex;
    align-items: center;
}

/* Enhanced Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(0);
    min-height: 80px;
    overflow: visible;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 70px;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.show {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Navbar container */
.navbar > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: inherit;
}

/* Index page specific navbar (transparent on hero) */
.hero-container .navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-container .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Index page navbar text colors */
.hero-container .navbar:not(.scrolled) .nav-link {
    color: white;
}

.hero-container .navbar:not(.scrolled) .nav-link:hover {
    color: #93c5fd;
}

.hero-container .navbar:not(.scrolled) .nav-link.active {
    color: #93c5fd;
}

.hero-container .navbar:not(.scrolled) .logo-container h1 {
    color: white;
}

.hero-container .navbar:not(.scrolled) .logo-container p {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: #2563eb;
    transform: translateY(-1px);
}

.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .nav-link {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-dropdown .nav-link::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151 !important;
    background-color: transparent !important;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    font-weight: 500;
}

.dropdown-menu .nav-link:last-child {
    border-bottom: none;
}

.dropdown-menu .nav-link:hover {
    background-color: rgba(37, 99, 235, 0.05) !important;
    color: #2563eb !important;
}

.dropdown-menu .nav-link:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-menu .nav-link:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dropdown-menu .nav-link::after {
    display: none;
}

/* Mobile-specific dropdown styles */
@media (max-width: 768px) {
    .nav-dropdown {
        display: none;
    }
    
    /* Ensure hamburger button is visible */
    .hamburger {
        display: flex !important;
    }
    
    /* Ensure desktop nav is hidden */
    nav.hidden {
        display: none !important;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Styles - Consolidated */

/* Hamburger Menu Styles */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
    transition: all 0.3s ease;
}

.hamburger:focus {
    outline: none;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Index page hamburger lines should be white on transparent navbar with better visibility */
.hero-container .navbar:not(.scrolled) .hamburger-line {
    background: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Better visibility for hamburger on index page when scrolled */
.hero-container .navbar.scrolled .hamburger-line {
    background: #374151 !important;
    box-shadow: none !important;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: white !important;
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    background: white !important;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: white !important;
}

/* Close button for mobile menu */
.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    z-index: 10001;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Improved mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.95));
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
    left: 0;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 90%;
    max-width: 320px;
    padding: 2rem 1rem;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu-nav .nav-link {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
    line-height: 1.2;
}

.mobile-menu-nav .nav-link:hover,
.mobile-menu-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.mobile-menu-nav .nav-link::after {
    display: none;
}

/* Prevent body scrolling when mobile menu is open */
body.overflow-hidden {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Ensure no horizontal scrolling on mobile */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }
}

/* Additional mobile menu fixes for viewport height issues */
@media (max-width: 768px) {
    .mobile-menu {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height for modern browsers */
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure mobile menu is properly contained */
    .mobile-menu.active {
        right: 0 !important;
        left: 0 !important;
    }
    
    /* Fix for mobile browsers with dynamic viewport */
    .mobile-menu-nav {
        width: 85% !important;
        max-width: 300px !important;
        max-height: 75vh !important;
        overflow-y: auto;
        padding: 1.5rem 0.75rem !important;
        gap: 0.75rem !important;
    }
    
    .mobile-menu-nav .nav-link {
        font-size: 1rem !important;
        padding: 0.75rem 0.875rem !important;
        margin-bottom: 0 !important;
        min-height: 40px !important;
        line-height: 1.3 !important;
    }
    
    /* Better hamburger visibility on mobile */
    .hamburger {
        display: flex !important;
        z-index: 10000 !important;
    }
    
    /* Ensure hamburger is visible on all pages */
    .navbar .hamburger {
        display: flex !important;
    }
    
    /* Hide desktop navigation on mobile */
    .navbar nav.hidden {
        display: none !important;
    }
}

/* Fixed navbar spacing adjustments */
body:not(.hero-container) {
    padding-top: 80px; /* Space for fixed navbar on non-index pages */
}

/* Index page should not have body padding */
body:has(.hero-container) {
    padding-top: 0;
}

/* Hero sections on non-index pages should account for fixed navbar */
.about-hero-section,
.services-hero-section,
.portfolio-hero-section,
.blog-hero-section,
.careers-hero-section,
.csr-hero-section,
.recognition-hero-section,
.investments-hero-section,
.project-management-hero-section,
.guides-publications-hero-section,
.case-studies-hero-section {
    margin-top: -80px;
    padding-top: 80px;
}

/* Ensure proper spacing for sections after hero */
.about-hero-section + section,
.services-hero-section + section,
.portfolio-hero-section + section,
.blog-hero-section + section,
.careers-hero-section + section,
.csr-hero-section + section,
.recognition-hero-section + section,
.investments-hero-section + section,
.project-management-hero-section + section,
.guides-publications-hero-section + section,
.case-studies-hero-section + section {
    margin-top: 0;
}

/* Contact Section Styles */
.contact-section {
    position: relative;
    min-height: 600px;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.6));
    z-index: 1;
}

.contact-section .relative {
    position: relative;
    z-index: 2;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: white;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.contact-form label {
    font-weight: 600;
    color: #374151;
}

.contact-form button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-form button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.contact-form button svg {
    transition: transform 0.3s ease;
}

.contact-form button:hover svg {
    transform: translateX(3px);
}

/* Contact Info Cards */
.contact-section .bg-white\/10 {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-section .bg-white\/10:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Form Container */
.contact-section .bg-white\/95 {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Contact Section */
@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-section h2 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .contact-section .grid {
        gap: 2rem;
    }
    
    .contact-form .grid {
        grid-template-columns: 1fr;
    }
    
    .contact-section .bg-white\/10:hover {
        transform: translateY(-5px);
    }
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.1;
}

.footer-column {
    position: relative;
    z-index: 1;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-link {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-link:hover svg {
    transform: translateX(3px);
}

.footer-nav a {
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.footer-nav a:hover {
    border-bottom-color: #60a5fa;
}

.contact-info svg {
    flex-shrink: 0;
}

.footer-gallery {
    gap: 8px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item::before {
    content: '👁';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::before {
    opacity: 1;
}

.footer-bottom {
    background: rgba(30, 58, 138, 0.3);
}

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

.social-link:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Responsive Footer Design */
@media (max-width: 768px) {
    .footer-section {
        padding: 3rem 0;
    }
    
    .footer-column {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-gallery {
        justify-content: center;
    }
    
    .contact-info {
        text-align: left;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

/* Logo container stability */
.logo-container {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.logo-container img {
    height: 300px;
    width: auto;
    object-fit: contain;
}

/* Navigation links container */
.navbar nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar nav > div {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Prevent navbar collapse on small screens */
@media (max-width: 768px) {
    .navbar {
        min-height: 70px;
    }
    
    .navbar.scrolled {
        min-height: 60px;
    }
    
    .logo-container {
        min-height: 40px;
    }
    
    .logo-container img {
        height: 200px;
    }
    
    .logo-container h1 {
        font-size: 1rem;
    }
    
    .logo-container p {
        font-size: 0.6rem;
    }
    
    /* Ensure hamburger menu is always visible and functional */
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 10001;
    }
    
    /* Hide desktop navigation completely on mobile */
    nav.hidden.md\\:flex,
    .hidden.md\\:flex {
        display: none !important;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Team Section Styles */
.team-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.team-member {
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
}

.team-member-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.team-member-card:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.member-image img {
    border: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.team-member:hover .member-image img {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.view-team-btn {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.view-team-btn:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.team-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-dot:hover {
    transform: scale(1.2);
}

/* Team Modal Styles */
#team-modal {
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

#team-modal.hidden {
    animation: fadeOut 0.3s ease-out;
}

.team-modal-content {
    animation: slideInUp 0.4s ease-out;
}

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

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Member Profile Content */
.member-profile h4 {
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.member-profile p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.member-profile ul {
    list-style: none;
    padding: 0;
}

.member-profile ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.member-profile ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

/* Responsive Team Section */
@media (max-width: 768px) {
    .team-grid .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .team-member-card {
        padding: 1rem;
    }
    
    .member-image img {
        width: 4rem;
        height: 4rem;
    }
    
    .team-member-card h3 {
        font-size: 1rem;
    }
    
    .team-member-card p {
        font-size: 0.75rem;
    }
    
    #team-modal .bg-white {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    #team-modal .grid {
        grid-template-columns: 1fr;
    }
    
    #modal-member-image {
        width: 8rem !important;
        height: 8rem !important;
    }
} 


