@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;600;700&display=swap');

:root {
    --blue: #004289;
    --blue-dark: #002a5c;
    --blue-light: #e6eff9;
    --accent: #0077cc;
    --dark: #0a0f1a;
    --dark-2: #111827;
    --gray: #888;
    --light: #f8f9fb;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ─── PROGRESS BAR ─── */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--blue);
    z-index: 2000;
    width: 0%;
    transition: width 0.1s linear;
}

/* ─── HEADER ─── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header-logo {
    height: 60px;
    display: block;
}

nav {
    display: flex;
    gap: 0;
}

nav a {
    text-decoration: none;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 14px;
    border-radius: 4px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
    background: rgba(0, 66, 137, 0.05);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 7% 60px;
    overflow: hidden;
    background: var(--dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url('https://cloud.weyerganshighcare.de/apps/files_sharing/publicpreview/tRqkRZB8KPXYgns?file=/Website%20%26%20more/High_Care_Medical_Header_eng.jpg&fileId=84434&x=2940&y=1912&a=true&etag=534037a72306a605781f5348e9bbcf41');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(10, 15, 26, 0.88) 0%,
            rgba(10, 15, 26, 0.5) 55%,
            rgba(10, 15, 26, 0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    border: 1px solid rgba(0, 66, 137, 0.5);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 28px;
    background: rgba(0, 66, 137, 0.1);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 200;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: white;
}

.hero-accent {
    color: var(--blue);
    font-weight: 300;
}

.hero p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 66, 137, 0.4);
}

.hero-device {
    display: none;
}

.device-placeholder {
    width: 300px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-placeholder svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(0, 66, 137, 0.5));
}

/* ─── CONTAINER ─── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 7%;
}

/* ─── SECTIONS ─── */
.effects-section {
    background: var(--blue);
    padding: 100px 0;
}

.cards-section {
    background: var(--light);
    padding: 100px 0;
}

.cards-section .section-header.dark h2 {
    color: var(--dark);
}

.cards-section .section-header.dark .tag {
    color: var(--blue);
}

.cards-section .section-header.dark .section-intro-text {
    color: #555;
}

.tech-section {
    position: relative;
    background: var(--dark-2);
    padding: 100px 0;
    overflow: hidden;
}

.tech-section .section-header.light h2 {
    color: white;
}

.tech-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 90% 50%, rgba(0, 66, 137, 0.2) 0%, transparent 70%);
}

/* ─── SECTION HEADERS ─── */
.section-header {
    margin-bottom: 60px;
}

.section-header.light .tag,
.section-header.dark .tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-header.light .tag {
    color: rgba(255, 255, 255, 0.6);
}

.section-header.dark .tag.blue {
    color: var(--blue);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 200;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-header.light h2 {
    color: white;
}

.section-intro-text {
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 600px;
    font-weight: 300;
}

/* ─── EFFECTS GRID ─── */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.effect-item {
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.effect-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.effect-icon {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.08);
}

.effect-icon svg {
    width: 30px;
    height: 30px;
}

.effect-icon svg * {
    stroke: white;
}

.effect-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.effect-item p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ─── HOVER CARDS ─── */
.hover-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hover-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    min-height: 260px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hover-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card-icon {
    font-size: 5rem;
    opacity: 0.5;
    transition: var(--transition);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 10, 30, 0.95);
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border: 1px solid rgba(0, 66, 137, 0.4);
    border-radius: 16px;
}

.hover-card:hover .card-overlay {
    opacity: 1;
}

.hover-card:hover .card-icon {
    transform: scale(1.2);
    opacity: 0.2;
}

.card-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.card-overlay p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 10px;
}

.card-tag {
    margin-top: 14px;
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue);
    border-top: 1px solid rgba(0, 66, 137, 0.4);
    padding-top: 12px;
}

/* ─── TECH GRID ─── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 66, 137, 0.25);
    border-radius: 12px;
    padding: 32px 28px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(24px);
}

.tech-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-card:hover {
    border-color: var(--blue);
    background: rgba(0, 66, 137, 0.1);
    transform: translateY(-4px);
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.tech-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
}

.tech-card strong {
    color: white;
}

.tech-highlight {
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(0, 66, 137, 0.15);
    border: 1px solid rgba(0, 66, 137, 0.3);
    border-radius: 16px;
    padding: 50px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.tech-highlight.visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight-text {
    flex: 1;
}

.highlight-text h3 {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    color: white;
    margin-bottom: 20px;
}

.highlight-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    margin-bottom: 12px;
}

.badge-hex {
    width: 120px;
    height: 135px;
    background: var(--blue);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.badge-hex span {
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* ─── FOOTER ─── */
footer {
    background: #070b14;
}

.footer-top {
    padding: 80px 0;
}

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

.footer-grid-single {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 66, 137, 0.25);
}

.contact-logo-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 24px;
}

.footer-logo {
    height: 50px;
    display: block;
}

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

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    line-height: 1.5;
}

.contact-detail svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--blue);
}

.contact-detail a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.contact-detail a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(0, 66, 137, 0.35);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
    background: rgba(0, 66, 137, 0.05);
}

.social-btn:hover {
    border-color: var(--blue);
    background: rgba(0, 66, 137, 0.2);
    color: white;
}

/* ─── CONTACT FORM ─── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 14px 18px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group select option {
    background: #111;
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: rgba(0, 66, 137, 0.1);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 66, 137, 0.4);
}

.form-note {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

/* ─── FOOTER BOTTOM ─── */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

/* ─── BACK TO TOP ─── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .effects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hover-cards {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-highlight {
        flex-direction: column;
        text-align: center;
    }

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

    nav {
        display: none;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-device {
        display: none;
    }

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

@media (max-width: 600px) {
    .effects-grid {
        grid-template-columns: 1fr;
    }

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