/* Base Styles */
:root {
    --primary-color: #e67e22;
    --secondary-color: #2c3e50;
    --accent-color: #f1c40f;
    --text-color: #f5f5f5;
    --light-bg: rgba(249, 249, 249, 0.7);
    --white: #ffffff;
    --dark-bg: #2c3e50;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --card-base-color: #34495e; /* Dark blue-gray that complements the dark background */
}

/* Reset for most basic styling */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    min-height: 100%;
    -webkit-font-smoothing: antialiased; /* Improve text rendering */
    -moz-osx-font-smoothing: grayscale; /* Improve text rendering */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
    background: #000; /* Fallback color if image fails */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

section {
    padding: 80px 0;
    position: relative;
    background: none !important;
    margin: 0; /* Ensure there's no margin causing separation */
    z-index: 1; /* Keep consistent z-index */
}

/* Remove section overlays */
.about::before, .services::before, .testimonials::before, .contact::before, section::before {
    display: none !important; /* Hide all section overlays completely */
}

/* Make sure sections have transparent backgrounds */
.about, .services, .testimonials, .contact, section {
    background: none !important;
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 5%;
    background-color: transparent; /* Change to transparent by default */
    box-shadow: none; /* Remove shadow by default */
    z-index: 1000;
    transition: var(--transition);
    height: auto;
}

/* Add explicit styles for scrolled header */
header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 8px 5%;
}

.logo-container {
    display: none;
}

nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.burger {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white); /* Changed to white for dark header */
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: none !important; /* Use none instead of transparent/none */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0;
    position: relative;
    z-index: 1; /* Keep z-index consistent with other sections */
}

/* Remove the semi-transparent overlay that creates the separation */
.hero::before {
    display: none; /* Hide this overlay completely */
}

.hero-content {
    max-width: 1000px;
    padding: 0 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent !important; /* Ensure transparency */
}

.hero-image {
    margin-bottom: 30px;
    max-width: 100%;
    position: relative;
    z-index: 2;
    background: transparent !important; /* Ensure transparency */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    background: transparent !important; /* Ensure transparency */
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero h2::after {
    content: none;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* About Section */
.about {
    background-color: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text p {
    color: var(--text-color);
}

.image-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

/* Enhanced 3D effect for the about section image */
.about-image .image-container {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image .image-container:hover,
.about-image .image-container:active {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 
        -15px 10px 25px rgba(0, 0, 0, 0.3),
        0 10px 10px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.about-image .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.about-image .image-container:hover::after,
.about-image .image-container:active::after {
    opacity: 1;
}

/* Specific styles for touch devices */
@media (hover: none) {
    .about-image .image-container {
        transform: translateY(-5px) rotateY(3deg);
        box-shadow: 
            -10px 8px 20px rgba(0, 0, 0, 0.25),
            0 5px 5px rgba(0, 0, 0, 0.15);
    }
    
    .about-image .image-container:active {
        transform: translateY(-2px) rotateY(1deg);
        box-shadow: 
            -5px 5px 15px rgba(0, 0, 0, 0.2),
            0 3px 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .about-image .image-container::after {
        opacity: 0.5; /* Always show some reflection on touch devices */
    }
    
    .about-image .image-container:active::after {
        opacity: 0.7; /* Enhance reflection on touch */
    }
}

.image-container:hover {
    transform: translateY(-10px);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

@media screen and (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Service cards with background images on hover */
.service-card {
    background-color: transparent; /* Remove background color */
    backdrop-filter: none; /* Remove blur effect */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(221, 221, 221, 0.5);
}

/* Background overlay for each card */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    /* Smoother transitions */
    transition: opacity 0.4s ease;
    z-index: -2;
    will-change: opacity;
}

/* Individual card backgrounds */
.service-card:nth-child(1)::before {
    background-image: url('images/cards/1.jpg');
}

.service-card:nth-child(2)::before {
    background-image: url('images/cards/2.jpeg');
}

.service-card:nth-child(3)::before {
    background-image: url('images/cards/3.jpeg');
}

.service-card:nth-child(4)::before {
    background-image: url('images/cards/4.jpg');
}

.service-card:nth-child(5)::before {
    background-image: url('images/cards/5.jpg');
}

.service-card:nth-child(6)::before {
    background-image: url('images/cards/6.jpg');
}

/* Add overlay for better text readability over background image */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    /* Smoother transitions */
    transition: opacity 0.4s ease;
    z-index: -1;
    will-change: opacity;
}

/* Move combined hover/active styles to separate selectors */
.service-card.active::before {
    opacity: 1; /* Full opacity on active */
}

.service-card.active::after {
    opacity: 0.6; /* Make overlay more transparent on active */
}

/* Disable hover effects on mobile/touch devices */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover::before {
        opacity: 1; /* Full opacity on hover */
    }
    
    .service-card:hover::after {
        opacity: 0.6; /* Make overlay more transparent on hover */
    }

    .service-card:hover {
        transform: translateY(-10px);
        height: 250px; /* Increased height on hover */
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        border-color: var(--primary-color); /* Orange border on hover */
        justify-content: flex-start; /* Move content to top on hover */
    }
    
    .service-card:hover .service-icon {
        transform: scale(1.3);
    }
    
    .service-card:hover .service-svg {
        filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
    }
    
    .service-card:hover p {
        opacity: 1;
        max-height: 150px; /* Increased to accommodate larger text */
        margin-top: 15px; /* Slightly increased margin */
    }
    
    /* Enhance 3D effect slightly on hover */
    .service-card:hover h3 {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 
                    0px 2px 4px rgba(0, 0, 0, 0.5),
                    2px 4px 6px rgba(255, 255, 255, 0.2);
        transform: translateY(-10px); /* Move heading up on hover */
    }
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-svg {
    width: 100%;
    height: 100%;
    max-width: 65px;
    max-height: 65px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* Make sure SVGs inherit the color from parent */
.service-svg svg {
    stroke: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--white); /* Keep text white for contrast */
    font-size: 1.8rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6), 
                 0px 2px 3px rgba(0, 0, 0, 0.4),
                 2px 2px 6px rgba(255, 255, 255, 0.15); /* Subtle 3D effect */
}

.service-card p {
    margin-bottom: 0;
    color: var(--white);
    opacity: 0;
    /* Don't transition max-height, just use opacity */
    max-height: 150px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
    /* Smoother transition for opacity */
    transition: opacity 0.4s ease-out;
}

/* Chef Services Section */
.chef-services {
    text-align: center;
    padding: 100px 0;
}

.chef-services h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.chef-services-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.chef-services-text {
    flex: 1.5;
}

.chef-services-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.chef-services-image {
    flex: 1;
}

.chef-services .image-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(2deg);
    transition: var(--transition);
    border: 5px solid var(--white);
}

.chef-services .image-container:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Media query for mobile responsiveness */
@media screen and (max-width: 768px) {
    /* Ensure hero transparency on mobile specifically */
    .hero, 
    .hero-content, 
    .hero-image, 
    .hero-image img {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Rest of mobile styles */
    body {
        font-size: 0.95rem; /* Slightly larger for better readability */
        line-height: 1.5; /* Adjusted line height for mobile */
        /* Background color is now in the HTML inline style */
    }

    /* Fix z-index stacking for all sections on mobile */
    section {
        z-index: 1;
        position: relative;
        background: transparent !important;
        padding: 60px 0;
    }

    /* Other existing mobile styles */
    h2 {
        font-size: 2rem;
        margin-bottom: 30px; /* Reduced margin for better spacing */
    }
    
    h2::after {
        width: 50px; /* Slightly shorter underline on mobile */
        bottom: -8px; /* Closer to text */
    }
    
    p {
        margin-bottom: 12px; /* Reduced paragraph spacing */
    }
    
    /* Mobile header adjustments */
    header {
        justify-content: flex-end;
        padding: 10px 5%;
    }
    
    nav {
        justify-content: flex-end;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 50px; /* Adjusted for smaller header */
        height: calc(100vh - 50px);
        background-color: rgba(0, 0, 0, 0.95); /* Better opacity for readability */
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 40px;
        box-shadow: var(--box-shadow);
        z-index: 999;
    }
    
    .nav-links li {
        margin: 20px 0; /* Increased for better touch targets */
        width: 80%; /* Make touch target wider */
        text-align: center;
    }
    
    .nav-links a {
        display: block; /* Make the entire area clickable */
        padding: 10px 0; /* Increase tap target size */
        font-size: 1.1rem; /* Slightly larger font for better readability */
    }
    
    .burger {
        display: block;
        padding: 10px; /* Increase tap target size */
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .about-content,
    .contact-content {
        display: flex; /* Ensure flex is used instead of grid */
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 90%;
        margin: 0 auto;
    }
    
    /* Mobile service card styles */
    .service-card {
        padding: 20px 15px;
        min-height: 180px;
        height: auto;
        margin-bottom: 15px;
        /* Optimize for smooth animations */
        will-change: transform, box-shadow;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-font-smoothing: subpixel-antialiased;
        transition: transform 0.4s ease-out, 
                    border-color 0.4s ease-out,
                    box-shadow 0.4s ease-out;
    }
    
    .service-card h3 {
        font-size: 1.6rem;
        margin-bottom: 8px; /* Reduced for better spacing on mobile */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), /* Slightly reduced 3D effect for mobile */
                     0px 2px 2px rgba(0, 0, 0, 0.3),
                     1px 1px 4px rgba(255, 255, 255, 0.12);
    }
    
    /* For mobile, use a class to toggle visibility and background */
    .service-card.active p {
        opacity: 1 !important; /* Ensure mobile active style takes precedence */
        /* Don't animate max-height as it's expensive - use static value */
        max-height: 150px;
        margin-top: 15px;
        font-size: 1rem;
        text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.4);
        /* Smoother transition for opacity */
        transition: opacity 0.45s ease-out;
    }
    
    /* Add orange border for active cards on mobile */
    .service-card.active {
        height: auto !important; /* Force height override */
        min-height: 250px;
        border-color: var(--primary-color);
        justify-content: flex-start;
        transform: translate3d(0, -5px, 0) !important; /* Force transform override */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25) !important; /* Force shadow override */
        /* Smoother, slower transitions */
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                    border-color 0.4s ease,
                    box-shadow 0.4s ease;
    }
    
    /* Enhance 3D effect slightly for active cards on mobile */
    .service-card.active h3 {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important; /* Force override */
        transform: translate3d(0, -8px, 0) !important; /* Force transform override */
        /* Smoother transition */
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    /* Update overlay behavior for mobile */
    .service-card.active::after {
        opacity: 0.6 !important; /* Match desktop hover effect - semi-transparent overlay */
    }
    
    /* Ensure backgrounds appear with full opacity on tap for mobile */
    .service-card.active::before {
        opacity: 1 !important; /* Force opacity override - full image visibility */
    }
    
    /* Add style for testimonial card active state on mobile */
    .testimonial-card.active {
        border-color: var(--primary-color); /* Orange border on active state */
        background-color: rgba(255, 255, 255, 0.2); /* Slightly brighter when active */
    }
    
    /* Mobile form field styles */
    input, textarea {
        background-color: rgba(255, 255, 255, 0.12); /* Even more subtle on mobile */
        padding: 12px; /* Increased padding for better touch targets */
        font-size: 16px; /* Prevent iOS auto-zoom on input fields */
    }
    
    input:focus, textarea:focus {
        background-color: rgba(255, 255, 255, 0.18); /* Slightly brighter when focused */
    }
    
    /* Rest of mobile styling */
    .footer-logo-img {
        max-height: 200px;
    }
    
    /* Better touch targets for testimonial controls */
    .prev-btn, .next-btn {
        padding: 12px; /* Increased padding for better touch */
    }
    
    .tracker-indicator {
        width: 15px; /* Larger indicators */
        height: 15px;
        margin: 0 8px; /* More space between indicators */
    }
    
    /* Improve form button touch target */
    .btn {
        padding: 14px 30px; /* Slightly larger padding for better touch */
        font-size: 1.1rem; /* Larger text for button */
    }
    
    /* Improve text contrast on mobile */
    .about-text p, 
    .chef-services-text p,
    .testimonial-text p {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Add subtle text shadow for readability */
    }
    
    /* Ensure form text is readable */
    ::placeholder {
        opacity: 0.8; /* More visible placeholder text */
    }
    
    /* Improve readability of footer text */
    .footer-bottom p {
        opacity: 0.9; /* Higher contrast */
        font-size: 0.9rem; /* Slightly larger */
    }
    
    /* For mobile, reduce animation to minimize visual issues */
    .fade-in {
        transform: translateY(10px); /* Even smaller transform for mobile */
    }
    
    /* Chef services mobile specific styles */
    .chef-services-content {
        flex-direction: column;
    }
    
    .chef-services-text {
        order: 2;
    }
    
    .chef-services-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .chef-services h2 {
        font-size: 1.8rem;
    }
    
    /* 3D effect for the about image is now handled by @media (hover: none) */
}

/* Testimonials Section */
.testimonials {
    text-align: center;
    background-color: transparent;
    padding: 80px 0;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
    min-height: 250px;
    /* Add fixed height to prevent section jumping */
    height: 300px;
}

.testimonial {
    padding: 20px;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Add absolute positioning for all testimonials to prevent layout shifts */
    position: absolute;
}

.testimonial.active {
    z-index: 3;
    position: relative; /* Only active testimonial is in normal flow */
}

.testimonial.previous {
    z-index: 1;
}

.testimonial.next {
    z-index: 2;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.15); /* Match input fields */
    backdrop-filter: blur(2px); /* Adding subtle blur effect */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(221, 221, 221, 0.5); /* Match input field borders */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color); /* Orange border on hover */
    background-color: rgba(255, 255, 255, 0.2); /* Slightly brighter when hovered */
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    color: var(--white); /* Changed to white for better contrast on dark background */
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    opacity: 0.3; /* Slightly increased opacity for better visibility on dark background */
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    font-weight: 500;
    color: var(--primary-color); /* Keep this color as it works well on dark background */
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 15px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.testimonial-tracker {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tracker-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tracker-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    background-color: transparent;
    padding: 60px 0; /* Reduced padding to decrease section height */
}

.contact h2 {
    margin-bottom: 30px; /* Increased from 20px to add more space between heading and contact info */
}

.contact-content {
    display: flex; /* Changed from grid to flex for better alignment */
    justify-content: space-between;
    gap: 40px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start to move content higher */
    padding-top: 0; /* Remove any top padding */
}

.contact-form {
    flex: 2; /* Give form more space */
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px; /* Increased from 15px for more spacing between items */
}

.contact-item i {
    font-size: 2rem; /* Increased from 1.5rem */
    color: var(--primary-color);
    margin-right: 20px; /* Increased from 15px */
    min-width: 30px; /* Increased from 25px */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item p {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    font-size: 1.2rem; /* Added to increase text size */
    font-weight: 500; /* Added to make text slightly bolder */
}

.form-group {
    margin-bottom: 15px; /* Reduced spacing */
}

/* Mobile responsiveness for contact section */
@media screen and (max-width: 768px) {
    .contact {
        padding: 40px 0; /* Further reduced padding on mobile */
    }
    
    .contact-content {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 15px; /* Reduced gap for mobile */
    }
    
    .contact-info {
        order: -1; /* Place contact info above form on mobile */
        margin-bottom: 15px; /* Reduced from 20px to move elements closer */
    }
    
    .contact-item {
        margin-bottom: 20px; /* Increased from 10px but still less than desktop */
    }
    
    .contact-item i {
        font-size: 1.8rem; /* Slightly smaller than desktop but still larger than before */
    }
    
    .form-group {
        margin-bottom: 12px;
    }
}

/* Override previous mobile styles that might conflict */
@media screen and (max-width: 768px) {
    .about-content,
    .contact-content {
        display: flex; /* Ensure flex is used instead of grid */
        flex-direction: column;
    }
}

/* Footer */
footer {
    background: none !important;
    padding: 60px 0 20px;
    color: var(--white);
    position: relative;
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.footer-logo:before {
    display: none;
}

.footer-logo-img {
    max-height: 200px;
    width: auto;
    filter: none;
    transition: none;
}

.footer-logo p {
    margin-top: 10px;
    text-shadow: none;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.impressum-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: var(--transition);
    padding: 5px 10px;
}

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

/* Remove footer overlay completely */
footer::before {
    display: none;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* Reduced transform distance */
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: none !important; /* Ensure no background */
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
    background: none !important; /* Ensure no background */
}

/* Media Queries */
@media screen and (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    /* Adjust form elements for very small screens */
    input, textarea {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
    
    /* Further spacing improvements */
    .btn {
        padding: 12px 25px; /* Slightly smaller button on very small screens */
    }
    
    /* Prevent text overflow */
    .testimonial-text p {
        font-size: 0.95rem;
    }
    
    /* Further improvements for very small screens */
    .container {
        width: 95%; /* Use more screen space */
        padding: 0 10px;
    }
    
    section {
        padding: 40px 0; /* Less vertical padding */
    }
    
    h2 {
        font-size: 1.8rem; /* Slightly smaller headings */
    }
    
    /* Better spacing for contact items */
    .contact-item {
        margin-bottom: 15px;
    }
}

/* Form status messages */
.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.15); /* More subtle green */
    border: 1px solid rgba(76, 175, 80, 0.4); /* More transparent border */
    color: rgba(255, 255, 255, 0.9); /* Brighter text for readability */
}

.form-status.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.15); /* More subtle red */
    border: 1px solid rgba(244, 67, 54, 0.4); /* More transparent border */
    color: rgba(255, 255, 255, 0.9); /* Brighter text for readability */
}

/* Update header scroll effect in case it's referenced in JS */
header.scrolled {
    padding: 8px 5%;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Ensure backgrounds appear with full opacity on tap for mobile */
.service-card.active::before {
    opacity: 1;
}

/* Update overlay behavior for mobile */
.service-card.active::after {
    opacity: 0.6 !important; /* Match desktop hover effect - semi-transparent overlay */
}

/* Add after your reset styles */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

/* Add to your existing styles section */
.contact-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex; /* Ensures inline alignment */
    align-items: center;
    font-size: 1.2rem; /* Match the size of contact item text */
    font-weight: 500; /* Match the weight of contact item text */
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .contact-link {
        display: inline-block;
        padding: 5px 0; /* Larger touch target */
    }
}

/* Form elements */
input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(221, 221, 221, 0.5); /* More transparent border */
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.15); /* Significantly reduced white opacity */
    color: var(--white); /* Changed to white for better contrast on darker background */
    backdrop-filter: blur(2px); /* Adding subtle blur effect */
    transition: all 0.3s ease;
}

/* Add focus state for better UX */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.2); /* Slightly brighter when focused */
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.4); /* Subtle glow with primary color */
}

/* Style for placeholder text */
::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* For mobile view */
@media screen and (max-width: 768px) {
    .contact h2 {
        margin-bottom: 15px; /* Even less margin on mobile */
    }
    
    .contact-content {
        gap: 15px; /* Reduced gap for mobile to move elements closer */
    }
}

/* Impressum Page Styles */
.impressum-section {
    padding: 120px 0 80px;
    min-height: calc(100vh - 200px);
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.impressum-content h1 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.impressum-content h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.impressum-block {
    margin-bottom: 30px;
}

.impressum-block h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.impressum-block p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

.back-btn {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-5px);
}

/* Impressum page mobile styles */
@media screen and (max-width: 768px) {
    .impressum-section {
        padding: 100px 0 60px;
    }
    
    .impressum-content {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .impressum-content h1 {
        font-size: 2rem;
    }
    
    .impressum-block h3 {
        font-size: 1.1rem;
    }
    
    .impressum-block p {
        font-size: 0.95rem;
    }
} 