/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header Styles */
.top-header {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-left .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
}

.top-header-left .breadcrumb i {
    font-size: 10px;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.top-contact-item i {
    color: #2563eb;
    font-size: 12px;
}

.top-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #1d4ed8;
}

.social-link.search-icon {
    background: #2563eb;
    border-radius: 50%;
}

/* Header Styles */
.header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    flex-shrink: 0;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-item {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.immounic-logo .logo-main {
    font-size: 1.6rem;
    font-weight: bold;
    color: #e74c3c;
    line-height: 0.9;
    letter-spacing: 2px;
}

.immounic-logo .logo-sub {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: -2px;
}

.immounic-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
}

.immounic-logo:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: #2563eb;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    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: left 0.5s;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
}

.btn-primary:hover {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn:hover::before {
    left: 100%;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #2563eb;
}

/* Services Section */
.services {
    background: #f8f8f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-item {
    background: white;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.service-item:hover .service-icon {
    transform: rotateY(360deg);
    background: #1d4ed8;
}

.service-item:hover .service-icon::before {
    width: 100%;
    height: 100%;
}

.service-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

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

.service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

.service-item p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* About Section */
.about {
    background: white;
}

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

.about-text .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f8f8;
    transition: all 0.4s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

/* Projects Section */
.projects {
    background: #f8f8f8;
}

.projects-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

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

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.slide-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.slide-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-controls button {
    background: rgba(37, 99, 235, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    font-size: 18px;
}

.slider-controls button:hover {
    background: rgba(37, 99, 235, 1);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #2563eb;
}

/* Team Section */
.team {
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
    background: #f8f8f8;
    padding: 30px 20px;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.team-member:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #2563eb;
    transition: all 0.4s ease;
}

.team-member:hover .member-photo {
    transform: scale(1.1);
    border-color: #1d4ed8;
}

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

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

.member-info p {
    color: #2563eb;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

/* Partners Section */
.partners {
    background: #f8f8f8;
}

.partners-carousel {
    margin-top: 40px;
    overflow: hidden;
    transition: all 0.4s ease;
    max-height: 1000px;
    opacity: 1;
}

.partner-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    min-width: 200px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.partner-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.1), transparent);
    transition: height 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.partner-item:hover::before {
    height: 100%;
}

.partner-item p {
    margin-top: 15px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    font-size: 14px;
}

.partners-toggle {
    background: #2563eb;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    font-size: 18px;
    position: relative;
    z-index: 10;
}

.partners-toggle:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.partners-toggle i {
    transition: transform 0.3s ease;
}

.partners-toggle.collapsed i {
    transform: rotate(180deg);
}

.partners-carousel.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

/* Mobile responsive for partners toggle */
@media (max-width: 768px) {
    .partners-toggle {
        display: block;
    }

    .partners-carousel {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }

    .partners-carousel.expanded {
        max-height: 1000px;
        opacity: 1;
        margin-top: 20px;
    }
}

@media (min-width: 769px) {
    .partners-toggle {
        display: none;
    }
}

/* Contact Section */
.contact {
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(360deg);
    background: #1d4ed8;
}

.contact-item:hover .contact-icon::before {
    width: 100%;
    height: 100%;
}

.contact-icon i {
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.contact-item:hover .contact-icon i {
    transform: scale(1.1);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

.contact-details p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 0;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.map-container {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #f8f8f8;
    position: relative;
}

/* Swiss Map Styles */
.swiss-map-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fe 100%);
    overflow: hidden;
}

.swiss-map {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: mapFadeIn 1.5s ease-out;
}

/* Location Markers */
.location-marker {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.location-marker.fribourg {
    left: 35%;
    top: 65%;
}

.location-marker.solothurn {
    left: 45%;
    top: 35%;
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #2563eb;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: markerBounce 2s ease-in-out infinite;
}

.marker-tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: white;
}

.marker-tooltip h4 {
    color: #2563eb;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.marker-tooltip p {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.marker-tooltip span {
    color: #2563eb;
    font-size: 12px;
    font-weight: bold;
}

.location-marker:hover .marker-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.location-marker:hover .marker-dot {
    transform: translate(-50%, -50%) scale(1.2);
    background: #1d4ed8;
}

/* Service Areas */
.service-area {
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.2);
    animation: serviceAreaPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.service-area.area-1 {
    width: 80px;
    height: 80px;
    left: 30%;
    top: 60%;
    animation-delay: 0s;
}

.service-area.area-2 {
    width: 100px;
    height: 100px;
    left: 40%;
    top: 30%;
    animation-delay: 1.5s;
}

.service-area.area-3 {
    width: 60px;
    height: 60px;
    left: 55%;
    top: 50%;
    animation-delay: 3s;
}

/* Animations */
@keyframes mapFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes markerBounce {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-3px);
    }
}

@keyframes serviceAreaPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .swiss-map-container {
        height: 300px;
    }
    
    .swiss-map {
        max-width: 95%;
        max-height: 95%;
    }
    
    .marker-tooltip {
        min-width: 160px;
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .marker-tooltip h4 {
        font-size: 12px;
    }
    
    .service-area.area-1 {
        width: 60px;
        height: 60px;
    }
    
    .service-area.area-2 {
        width: 80px;
        height: 80px;
    }
    
    .service-area.area-3 {
        width: 50px;
        height: 50px;
    }
}

/* Footer Styles */
.footer-main {
    background: #f5f5f5;
    margin-top: 0;
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid #e0e0e0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-section h3 {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #2563eb;
}

.footer-section h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #666;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease;
    display: none;
}

.footer-section.collapsed h3::before {
    transform: translateY(-50%) rotate(90deg);
}

.footer-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.footer-section.collapsed .footer-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}
.footer-logo {
    margin: 15px 0;
}

.footer-logo-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-item {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.footer-logo-text.immounic-logo .footer-logo-main {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
    line-height: 0.9;
    letter-spacing: 2px;
}

.footer-logo-text.immounic-logo .footer-logo-sub {
    font-size: 0.6rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: -2px;
}

.footer-logo-text.immounic-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo-text.immounic-logo:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section h4 {
    color: #2563eb;
    font-size: 14px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    text-transform: uppercase;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #2563eb;
    transform: translateX(5px);
}

.footer-nav a:hover::before {
    width: 100%;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.footer-contact-item i {
    color: #2563eb;
    font-size: 14px;
    margin-top: 2px;
    width: 16px;
    transition: all 0.3s ease;
}

.footer-contact-item:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    background: #333;
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
    font-size: 13px;
}

.footer-bottom-content a {
    color: #2563eb;
    text-decoration: none;
}

.footer-bottom-content a:hover {
    text-decoration: underline;
}

/* Old Footer - Hidden */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
    display: none;
}

.footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer .footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer .footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* New Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply floating animation to service icons */
.service-icon {
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.2s);
}

/* Stagger the floating animation */
.service-item:nth-child(1) .service-icon { --delay: 0; }
.service-item:nth-child(2) .service-icon { --delay: 1; }
.service-item:nth-child(3) .service-icon { --delay: 2; }
.service-item:nth-child(4) .service-icon { --delay: 3; }
.service-item:nth-child(5) .service-icon { --delay: 4; }
.service-item:nth-child(6) .service-icon { --delay: 5; }

/* Smooth scroll enhancement */
html {
    scroll-behavior: smooth;
}

/* Loading animation for the page */
body {
    animation: fadeIn 0.8s ease-in;
}

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

/* Service Detail Pages Styles */
.service-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

.service-detail-text h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.service-detail-text h3 {
    font-size: 1.6rem;
    color: #2563eb;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
}

.service-detail-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: #666;
}

.service-list li i {
    color: #2563eb;
    margin-right: 12px;
    font-size: 14px;
}

.service-features,
.application-areas,
.advantages,
.safety-reasons,
.system-types,
.net-types,
.platform-types,
.safety-types,
.emergency-situations,
.materials,
.mato-components,
.properties,
.benefits,
.safety-features,
.safety-concept,
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.feature-item,
.area-item,
.advantage-item,
.reason-item,
.system-item,
.net-item,
.platform-item,
.safety-item,
.situation-item,
.material-item,
.component-item,
.property-item,
.benefit-item,
.safety-feature-item,
.concept-item,
.step-item {
    text-align: center;
    padding: 25px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover,
.area-item:hover,
.advantage-item:hover,
.reason-item:hover,
.system-item:hover,
.net-item:hover,
.platform-item:hover,
.safety-item:hover,
.situation-item:hover,
.material-item:hover,
.component-item:hover,
.property-item:hover,
.benefit-item:hover,
.safety-feature-item:hover,
.concept-item:hover,
.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i,
.area-item i,
.advantage-item i,
.reason-item i,
.system-item i,
.net-item i,
.platform-item i,
.safety-item i,
.situation-item i,
.material-item i,
.component-item i,
.property-item i,
.benefit-item i,
.safety-feature-item i,
.step-item i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 15px;
}

.feature-item h4,
.area-item h4,
.advantage-item h4,
.reason-item h4,
.system-item h4,
.net-item h4,
.platform-item h4,
.safety-item h4,
.situation-item h4,
.material-item h4,
.component-item h4,
.property-item h4,
.benefit-item h4,
.safety-feature-item h4,
.concept-item h4,
.step-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.feature-item p,
.area-item p,
.advantage-item p,
.reason-item p,
.system-item p,
.net-item p,
.platform-item p,
.safety-item p,
.situation-item p,
.material-item p,
.component-item p,
.property-item p,
.benefit-item p,
.safety-feature-item p,
.concept-item p,
.step-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.concept-number,
.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.cta-section {
    background: #f8f8f8;
    padding: 50px 30px;
    border-radius: 8px;
    margin-top: 60px;
}

.cta-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-header {
        display: none;
    }

    .header {
        top: 0;
        position: sticky;
        z-index: 1000;
    }

    .hamburger {
        display: flex;
    }
    
    .logo-group {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .logo-img {
        height: 35px;
    }

    .immounic-logo .logo-main {
        font-size: 1.2rem;
    }

    .immounic-logo .logo-sub {
        font-size: 0.55rem;
    }

    /* Mobile Navigation Improvements */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 20px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile Footer Optimizations */
    .footer-top {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-section {
        border-bottom: 1px solid #e0e0e0;
        padding: 20px 0;
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    .footer-section h3::before {
        display: block;
    }

    .footer-section .footer-content {
        max-height: 1000px;
        opacity: 1;
        margin-top: 15px;
    }

    /* Hide logos on mobile */
    .footer-logo {
        display: none;
    }

    /* Compact footer content */
    .footer-section p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .footer-nav li {
        margin-bottom: 6px;
    }

    .footer-nav a {
        font-size: 13px;
    }

    .footer-contact-item {
        font-size: 13px;
        gap: 8px;
    }

    /* Mobile Hero Improvements */
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 0 20px;
    }

    /* Mobile Service Cards */
    .service-item {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .service-icon i {
        font-size: 1.8rem;
    }

    /* Mobile Contact Form */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 1.1rem;
    }

    /* Mobile Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Mobile Projects */
    .slide img {
        height: 250px;
    }

    .slide-overlay {
        padding: 20px 15px 15px;
    }

    .slide-overlay h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .slide-overlay p {
        font-size: 0.95rem;
    }

    /* Mobile Partners - Much smaller and narrower */
    .partner-logos {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .partner-item {
        min-width: auto;
        width: 80%;
        padding: 10px 8px;
        margin: 0 auto;
        font-size: 11px;
    }

    .partner-item p {
        font-size: 11px;
        margin-top: 8px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-item {
        padding: 30px 20px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

    .partner-logos {
        flex-direction: column;
        gap: 30px;
    }

    .slider-controls {
        display: none;
    }

    .slide img {
        height: 300px;
    }

    .slide-overlay {
        padding: 30px 20px 20px;
    }

    .slide-overlay h3 {
        font-size: 1.4rem;
    }

    .slide-overlay p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-group {
        gap: 10px;
    }
    
    .logo-img {
        height: 30px;
    }

    .immounic-logo .logo-main {
        font-size: 1rem;
    }

    .immounic-logo .logo-sub {
        font-size: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .about-text p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    /* Ultra-compact footer for small screens */
    .footer-section {
        padding: 15px 0;
    }

    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .footer-section p {
        font-size: 12px;
    }

    .footer-nav a {
        font-size: 12px;
    }

    .footer-contact-item {
        font-size: 12px;
    }

    .footer-bottom {
        padding: 15px 0;
    }

    .footer-bottom-content {
        font-size: 11px;
    }
    .service-item,
    .team-member {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        min-width: auto;
    }
}

@media (max-width: 360px) {
    .logo-item:nth-child(2),
    .logo-item:nth-child(3) {
        display: none;
    }
    
    .logo-group {
        justify-content: flex-start;
    }

    .hero {
        height: 60vh;
        min-height: 450px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .service-item {
        padding: 25px 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}