/* Font Face Declarations */
@font-face {
    font-family: 'PP Fraktion Sans';
    src: url('../../assets/fonts/PPFraktionSans-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'PP Formular Condensed Black';
    src: url('../../assets/fonts/PPFormula-CondensedBlack.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

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

body {
    font-family: "PP Fraktion Sans", Arial, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    background: #ffffff;
}

/* Main content grid */
.main-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 35px;
    position: relative;
    z-index: 1;
}

/* Header component */
.header {
    width: 1359px;
    max-width: 1360px;
    height: 110px;
    margin: 40px auto 50px auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 0px 80px 0px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 30px;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    width: 37.24px;
    height: 32.831px;
    margin-right: 10px;
}

.header-company {
    color: #1B1B1B;
    font-size: 36px;
    font-weight: 800;
}

/* Navigation Styles */
.header-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background: #F8F8F8;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    /* Inactive link styles */
    color: #1B1B1B;
    text-align: center;
    font-family: "PP Fraktion Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 450;
    line-height: normal;
}

.nav-link:hover {
    background: #f0f0f0;
}

/* Active link styles */
.nav-link.active {
    color: #1B1B1B;
    text-align: center;
    font-family: "PP Fraktion Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 645;
    line-height: normal;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 30px;
    border: 2px solid #F23A33;
    background: #F23A33;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    box-shadow: 0px 0px 20px rgba(242, 58, 51, 0.4);
    transform: translateY(-2px);
}

.menu-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

/* Hide hamburger when active, show X */
.menu-icon .hamburger-icon {
    opacity: 1;
}

.menu-icon .close-icon {
    position: absolute;
    opacity: 0;
}

.menu-icon.active .hamburger-icon {
    opacity: 0;
}

.menu-icon.active .close-icon {
    opacity: 1;
}

/* Mobile Menu Overlay - Fixed positioning */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150; /* Lower than menu */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -75%;
    width: 75%;
    height: 100vh;
    background: rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.2);
    z-index: 200; /* Higher than overlay */
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 30px;
}

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

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(242, 58, 51, 0.2);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-logo img {
    width: 30px;
    height: auto;
}

.mobile-menu-logo-text {
    color: #1B1B1B;
    font-size: 24px;
    font-weight: 800;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 30px;
    border: 2px solid #F23A33;
    background: #F23A33;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
}

.mobile-menu-close:hover {
    box-shadow: 0px 0px 20px rgba(242, 58, 51, 0.4);
    transform: translateY(-2px);
}

/* Menu icon in close button */
.mobile-menu-close .menu-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close .menu-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

/* Close button always shows X icon */
.mobile-menu-close .menu-icon .hamburger-icon {
    opacity: 0;
}

.mobile-menu-close .menu-icon .close-icon {
    position: absolute;
    opacity: 1;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    margin-top: 80px; /* Add space for the close button */
}

.mobile-nav-link {
    display: flex;
    padding: 15px 20px;
    justify-content: flex-start;
    align-items: center;
    border-radius: 12px;
    background: #F8F8F8;
    text-decoration: none;
    color: #1B1B1B;
    font-family: "PP Fraktion Sans";
    font-size: 18px;
    font-weight: 450;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: #f0f0f0;
}

.mobile-nav-link.active {
    font-weight: 645;
    background: rgba(242, 58, 51, 0.1);
}

.mobile-menu-login {
    display: flex;
    height: 60px;
    padding: 24px 60px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    border: 2px solid #F23A33;
    background: #F23A33;
    text-decoration: none;
    color: #FFF;
    font-size: 18px;
    font-weight: 800;
    margin-top: auto;
    transition: all 0.3s ease;
}

.mobile-menu-login:hover {
    box-shadow: 0px 0px 20px rgba(242, 58, 51, 0.4);
    transform: translateY(-2px);
}

.header-login {
    display: flex;
    width: 135.895px;
    height: 60px;
    padding: 24px 60px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    border: 2px solid #F23A33;
    background: #F23A33;
    text-decoration: none;
    color: #FFF;
    font-size: 18px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.header-login:hover {
    box-shadow: 0px 0px 20px rgba(242, 58, 51, 0.4);
    transform: translateY(-2px);
}

.header-login-icon {
    width: 11px;
    height: 11px;
}

/* Hero section */
.text-image-intra {
   grid-column: 1 / -1;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 35px;
   margin-top: 75px;
   margin-bottom: 100px;
}

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

.text-image-intra-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.text-image-intra-bigtitle1 {
    color: #F23A33;
    font-size: 64px;
    font-weight: 900;
    line-height: 100%;
    font-family: "PP Formular Condensed Black", "PP Fraktion Sans", Arial, sans-serif;
}

.text-image-intra-bigtitle2 {
    color: #FFB09D;
    font-size: 64px;
    font-weight: 900;
    line-height: 100%;
    font-family: "PP Formular Condensed Black", "PP Fraktion Sans", Arial, sans-serif;
}

.text-image-intra-body {
    color: #1B1B1B;
    font-size: 18px;
    font-weight: 390;
}

.text-image-intra-button {
    display: inline-flex;
    height: 60px;
    padding: 24px 60px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    border: 2px solid #F23A33;
    background: #F23A33;
    text-decoration: none;
    color: #FFF;
    font-size: 18px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.text-image-intra-button:hover {
    box-shadow: 0px 0px 20px rgba(242, 58, 51, 0.4);
    transform: translateY(-2px);
}

/* Updated intro image styles */
.text-image-intra-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 30px;
}

.text-image-intra-image-link {
    display: block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-image-intra-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    z-index: 2;
    animation: floatUpDown 4s ease-in-out infinite;
}

.text-image-intra-image-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(242, 58, 51, 0.4) 0%, rgba(242, 58, 51, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 1;
    opacity: 0;
}

.text-image-intra-image-link:hover::before {
    width: 120%;
    height: 120%;
    opacity: 1;
}

.text-image-intra-image-link:hover .text-image-intra-image {
    transform: translateY(-5px);
    filter: drop-shadow(0px 25px 50px rgba(0, 0, 0, 0.2)) drop-shadow(0px 0px 30px rgba(242, 58, 51, 0.3));
}

/* Network Button Styles */
.network-button {
    display: inline-flex;
    padding: 15px 30px;
    justify-content: center;
    align-items: center;
    border-radius: 72px;
    border: 1px solid #F7F7F7;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 0px 80px 0px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(4px);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.network-button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 0px 100px 0px rgba(0, 0, 0, 0.15);
}

.network-button-logo {
    width: 162px;
    height: 27px;
    object-fit: contain;
}

.text-image-intra-image2 {
    width: 100%;
    height: 400px;
    background-image: url('../img/contact_img.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

/* Card Component */
.card {
    grid-column: 2 / 12;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 0px 80px 0px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(4px);
    margin: 100px 0;
}

.card-container {
    display: flex;
    align-items: stretch;
    gap: 35px;
    padding: 52.5px;
}

.card-image {
    width: 342px;
    height: 410px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.card-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex: 1;
    min-width: 0;
}

.card-title {
    color: #1B1B1B;
    font-size: 36px;
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-body {
    color: #000;
    font-size: 20px;
    font-weight: 390;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-email {
    display: inline-flex;
    height: 50px;
    padding: 18px 30px;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    border: 2px solid #F23A33;
    background: #F23A33;
    text-decoration: none;
    color: #FFF;
    font-size: 18px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.card-email:hover {
    box-shadow: 0px 0px 20px rgba(242, 58, 51, 0.4);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    width: 1352px;
    max-width: 1360px;
    height: 110px;
    margin: 100px auto 50px auto;
    border-radius: 12px;
    border: 1px solid #F23A33;
    background: #F23A33;
    box-shadow: 0px 0px 80px 0px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-left {
    color: #FFF;
    font-size: 18px;
    font-weight: 645;
}

.footer-scroll-top {
    display: flex;
    width: 187px;
    height: 60px;
    padding: 24px 60px;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    background: #FFF;
    text-decoration: none;
    color: #FFB09D;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.footer-scroll-top:hover {
    box-shadow: 0px 0px 20px rgba(242, 58, 51, 0.3);
    transform: translateY(-2px);
}

.text-image-intra-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.text-image-intra-contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    padding-left: 20px;
}

.text-image-intra-contact-item::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #F23A33;
    font-weight: bold;
}

.text-image-intra-contact-name {
    font-weight: 600;
    color: #1B1B1B;
}

.text-image-intra-contact-email {
    color: #F23A33;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-left: 20px;
}

.text-image-intra-contact-email:hover {
    color: #FFB09D;
    text-decoration: underline;
}

/* New Feature Component */
.feature-component {
    grid-column: 1 / -1;
    margin: 80px 0;
}

.feature-title-container {
    margin-bottom: 40px;
}

.feature-bigtitle1 {
    color: #F23A33;
    font-size: 64px;
    font-weight: 900;
    line-height: 100%;
    font-family: "PP Formular Condensed Black", "PP Fraktion Sans", Arial, sans-serif;
    margin-bottom: 10px;
}

.feature-bigtitle2 {
    color: #FFB09D;
    font-size: 64px;
    font-weight: 900;
    line-height: 100%;
    font-family: "PP Formular Condensed Black", "PP Fraktion Sans", Arial, sans-serif;
}

.feature-content {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 35px;
    align-items: start;
}

.feature-text {
    grid-column: 1 / 4;
    color: #1B1B1B;
    font-size: 18px;
    font-weight: 390;
    line-height: 1.6;
}

.feature-image {
    grid-column: 4 / -1;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.10);
    object-fit: contain;
}

/* Responsive styles for contact list */
@media (max-width: 768px) {
    .text-image-intra-contact-list {
        gap: 12px;
    }

    .text-image-intra-contact-name {
        font-size: 15px;
    }

    .text-image-intra-contact-email {
        font-size: 14px;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-text {
        grid-column: 1;
        font-size: 14px;
    }

    .feature-image {
        grid-column: 1;
        height: auto;
    }

    /* Network button responsive */
    .network-button {
        padding: 12px 24px;
    }

    .network-button-logo {
        width: 130px;
        height: 22px;
    }

    /* Mobile menu overlay for smaller screens */
    .mobile-menu-overlay {
        width: 100%;
    }
    
    .mobile-menu {
        width: 85%;
        right: -85%;
    }
}

@media (max-width: 480px) {
    .text-image-intra-contact-list {
        gap: 10px;
    }

    .text-image-intra-contact-name {
        font-size: 14px;
    }

    .text-image-intra-contact-email {
        font-size: 13px;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-text {
        grid-column: 1;
        font-size: 14px;
    }

    .feature-image {
        grid-column: 1;
        height: auto;
    }

    /* Network button responsive */
    .network-button {
        padding: 10px 20px;
    }

    .network-button-logo {
        width: 110px;
        height: 20px;
    }

    /* Mobile menu overlay for smallest screens */
    .mobile-menu-overlay {
        width: 100%;
    }
    
    .mobile-menu {
        width: 85%;
        right: -85%;
    }
}

/* Responsive breakpoints */
@media (max-width: 1360px) {
    .main-grid {
        margin: 0 30px;
    }

    .header,
    .footer {
        width: calc(100vw - 60px);
        max-width: 1360px;
    }

    .header {
        margin-top: 15px;
    }

    .text-image-intra {
        margin-top: 150px;
    }
}

@media (max-width: 1200px) {
    .main-grid {
        margin: 0 40px;
        gap: 30px;
    }

    .header,
    .footer {
        width: calc(100vw - 80px);
        padding: 0 30px;
    }

    .header {
        margin-top: 20px;
    }

    .footer {
        margin: 60px auto 30px auto;
    }

    .text-image-intra {
        margin-top: 120px;
        margin-bottom: 60px;
    }

    .card {
        margin: 60px 0;
    }

    .card-container {
        padding: 25px;
        gap: 25px;
    }

    .card-image {
        width: 280px;
        height: 340px;
    }

    .card-title {
        font-size: 28px;
    }

    .card-body {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .header-company {
        font-size: 28px;
    }

    /* Show mobile menu button, hide desktop nav */
    .mobile-menu-button {
        display: flex;
    }

    .header-nav,
    .header-login {
        display: none;
    }

    .text-image-intra {
        margin-top: 80px;
        margin-bottom: 50px;
    }

    .feature-bigtitle1,
    .feature-bigtitle2 {
        font-size: 48px;
    }

    .feature-content {
        gap: 25px;
    }

    .feature-image {
        height: auto;
    }

    .card {
        margin: 50px 0;
    }

    .card-container {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }

    .card-image {
        width: 60%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 171/205;
        margin: 0 auto;
    }

    .card-text-container {
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-body {
        font-size: 15px;
    }

    .footer {
        margin: 50px auto 30px auto;
    }
}

@media (max-width: 768px) {
    .main-grid {
        margin: 0 20px;
        gap: 20px;
        grid-template-columns: repeat(6, 1fr);
    }

    .header {
        width: calc(100vw - 40px);
        height: 80px;
        margin-top: 15px;
        padding: 0 20px;
        top: 15px;
    }

    .header-company {
        font-size: 24px;
    }

    .header-login {
        padding: 15px 25px;
        font-size: 14px;
        height: 50px;
    }

    .header-login-icon {
        width: 9px;
        height: 9px;
    }

    /* Mobile menu button height adjustment to match other buttons */
    .mobile-menu-button {
        width: 45px;
        height: 45px;
    }

    /* Adjust icon size inside mobile menu button */
    .mobile-menu-button .menu-icon {
        width: 21px;
        height: 21px;
    }

    /* Adjust close button in menu to match */
    .mobile-menu-close {
        width: 45px;
        height: 45px;
    }

    /* Adjust icon size inside close button */
    .mobile-menu-close .menu-icon {
        width: 21px;
        height: 21px;
    }

    .footer {
        width: calc(100vw - 40px);
        height: auto;
        min-height: 80px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        margin: 40px auto 20px auto;
    }

    .footer-left {
        font-size: 14px;
        text-align: center;
    }

    .footer-scroll-top {
        height: 45px;
        width: 150px;
        padding: 15px 30px;
        font-size: 14px;
    }

    .text-image-intra {
        margin-top: 50px;
        margin-bottom: 40px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .text-image-intra-left {
        align-items: flex-start;
        gap: 15px;
    }

    .text-image-intra-bigtitle1,
    .text-image-intra-bigtitle2,
    .feature-bigtitle1,
    .feature-bigtitle2 {
        font-size: 36px;
    }

    .feature-component {
        margin: 30px 0;
    }

    .feature-title-container {
        margin-bottom: 20px;
    }

    .feature-text {
        font-size: 14px;
    }

    .feature-image {
        height: auto;
    }

    .text-image-intra-body {
        font-size: 14px;
    }

    .text-image-intra-button {
        padding: 15px 30px;
        font-size: 14px;
        height: 45px;
    }

    .card {
        grid-column: 1 / 7;
        margin: 30px 0;
    }

    .card-container {
        padding: 15px;
        gap: 15px;
    }

    .card-image {
        width: 40%;
        max-width: 160px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-body {
        font-size: 13px;
    }

    .card-email {
        padding: 12px 20px;
        font-size: 12px;
        height: 40px;
    }

    /* Mobile menu adjustments for smaller screens */
    .mobile-menu-logo-text {
        font-size: 20px;
    }

    .mobile-nav-link {
        font-size: 16px;
        padding: 12px 16px;
    }

    .mobile-menu-login {
        font-size: 16px;
        padding: 18px 40px;
        height: 50px;
    }
}