/* ========================================
   Content Sections - ASUS ProArt Inspired
   ======================================== */

/* -------- Fullscreen Video Section -------- */
.fullscreen-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.fullscreen-video__player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.fullscreen-video__fade {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 5;
}

.fullscreen-video.visible .fullscreen-video__fade {
    opacity: 0;
}

.fullscreen-video__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 15%,
        transparent 85%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.fullscreen-video__mute-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.fullscreen-video__mute-btn:hover {
    background: rgba(10, 173, 191, 0.6);
    border-color: var(--color-accent-blue);
    transform: scale(1.1);
}

.fullscreen-video__mute-btn .icon-muted {
    display: none;
}

.fullscreen-video__mute-btn.muted .icon-unmuted {
    display: none;
}

.fullscreen-video__mute-btn.muted .icon-muted {
    display: block;
}

/* -------- Page Header (Subpages) -------- */
.page-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + 4rem) clamp(1rem, 4vw, 3rem) 4rem;
    background: var(--color-bg-secondary);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-tertiary) 100%);
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.page-header h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-header-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.15;
}

.page-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

/* Decorative gradient orbs for page header */
.page-header::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--color-accent-blue);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
    top: -200px;
    right: -100px;
    z-index: 0;
}

/* -------- Service Cards Grid (ASUS-Style) -------- */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--color-accent-gradient);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(8px);
}

.service-card:hover {
    border-color: var(--color-accent-blue);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(10, 173, 191, 0.2);
}

.service-card:hover::before {
    opacity: 0.6;
}

.service-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
    filter: brightness(1);
    transform: scale(1.1); /* Für Parallax */
}

.service-card:hover .service-card-image img {
    filter: brightness(1.1);
}

.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(10, 13, 20, 0.9) 100%
    );
    pointer-events: none;
}

.service-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    padding: 12px;
    background: var(--color-accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.service-card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    flex: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: var(--color-accent-blue);
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap var(--transition-fast);
}

.service-card:hover .service-card-link {
    gap: 0.75rem;
}

.service-card-link svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link svg {
    transform: translateX(4px);
}

/* -------- Info Sections (Alternating Layout) -------- */
.info-section-wrapper {
    padding: var(--section-padding) 0;
    background: var(--color-bg-primary);
}

.info-section-wrapper:nth-child(even) {
    background: var(--color-bg-secondary);
}

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.info-section.reverse {
    direction: rtl;
}

.info-section.reverse > * {
    direction: ltr;
}

.info-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.info-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--color-accent-gradient);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.info-section:hover .info-image::before {
    opacity: 0.5;
}

.info-image img,
.info-image video {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    transition: filter 0.5s ease, box-shadow 0.5s ease;
    background: var(--color-bg-card);
    filter: brightness(0.95);
    transform: scale(1.1); /* Für Parallax */
}

.info-section:hover .info-image img,
.info-section:hover .info-image video {
    filter: brightness(1.05);
    box-shadow: 0 25px 60px rgba(10, 173, 191, 0.2);
}

/* Glow effect behind image */
.info-image::after {
    content: '';
    position: absolute;
    inset: 20%;
    background: var(--color-accent-blue);
    filter: blur(60px);
    opacity: 0;
    z-index: -2;
    transition: opacity var(--transition-smooth);
}

.info-section:hover .info-image::after {
    opacity: 0.2;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--color-text-primary);
    position: relative;
}

.info-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent-gradient);
    margin-top: 1rem;
    border-radius: 3px;
}

.info-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.info-text .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* -------- Features List -------- */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* -------- Stats Section -------- */
.stats-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-tertiary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    margin-top: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* -------- Gallery Section -------- */
.gallery-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(10, 173, 191, 0.25);
}

.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
    filter: brightness(0.9) saturate(1);
    transform: scale(1.1); /* Für Parallax */
}

.gallery-item:hover img {
    filter: brightness(1.05) saturate(1.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent-gradient);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
    mix-blend-mode: overlay;
}

.gallery-item:hover::before {
    opacity: 0.3;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 13, 20, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay span {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item,
    .gallery-item--large {
        grid-column: span 1;
        grid-row: span 1;
        height: 200px;
    }
}

/* -------- Responsive -------- */
@media (max-width: 900px) {
    .info-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-section.reverse {
        direction: ltr;
    }

    .info-image {
        order: -1;
    }

    .info-text {
        text-align: center;
    }

    .info-text h2::after {
        margin-left: auto;
        margin-right: auto;
    }

    .info-text .btn {
        align-self: center;
    }

    .features-list {
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    /* Video Section Mobile */
    .fullscreen-video {
        height: 100svh; /* Safe viewport height für mobile Browser */
    }

    .fullscreen-video__mute-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }

    /* Page Header Mobile */
    .page-header {
        min-height: 40vh;
        padding: calc(70px + 2rem) 1.5rem 3rem;
    }

    .page-header h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}

@media (max-width: 600px) {
    .service-card-content {
        padding: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    /* Hero Video Mobile */
    .fullscreen-video {
        height: 100svh;
    }

    .fullscreen-video__mute-btn {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .fullscreen-video__mute-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Page Header Small Mobile */
    .page-header {
        min-height: 35vh;
        padding: calc(65px + 1.5rem) 1rem 2rem;
    }

    .page-header h1 {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Info Section Mobile */
    .info-section-wrapper {
        padding: clamp(2.5rem, 8vw, 4rem) 0;
    }

    .info-section {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .info-image img,
    .info-image video {
        border-radius: 16px;
    }

    .info-text h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .info-text p {
        font-size: 1rem;
    }

    .info-text .btn {
        width: 100%;
        justify-content: center;
    }

    /* Services Grid Mobile */
    .services-section {
        padding: clamp(2.5rem, 8vw, 4rem) 0;
    }

    .services-grid {
        padding: 0 1rem;
    }

    /* Stats Section Mobile */
    .stats-grid {
        gap: 1rem;
        padding: 0 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
}

/* Touch-Feedback für interaktive Elemente */
@media (hover: none) and (pointer: coarse) {
    .service-card:active {
        transform: scale(0.98);
    }

    .info-section:hover .info-image img,
    .info-section:hover .info-image video {
        transform: none;
        filter: brightness(0.95);
    }

    .info-section:hover .info-image::before,
    .info-section:hover .info-image::after {
        opacity: 0;
    }
}
