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

:root {
    --rapha-teal: #00CCC0;
    --rapha-blue: #0066CC;
    --rapha-purple: #6C5CE7;
    --rapha-green: #00B894;
    --rapha-red: #FF3B3B;
    --dark-bg: #0a0e27;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: var(--dark-bg);
    min-height: 100vh;
    cursor: none;
}

/* Custom Cursor */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--rapha-teal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-glow::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 204, 192, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 204, 192, 0.08), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(108, 92, 231, 0.08), transparent 50%);
    z-index: 0;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 30px 20px;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 20px;
}

.medical-icon-small {
    font-size: 50px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(0, 204, 192, 0.6));
}

.brand-name-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.brand-name-header .rapha {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rapha-teal), var(--rapha-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
}

.brand-name-header .medical {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 6px;
}

.header-tagline {
    font-size: 18px;
    color: var(--rapha-teal);
    font-weight: 600;
    letter-spacing: 2px;
}

/* Coming Soon Badge */
.coming-soon-badge {
    text-align: center;
    margin: 30px 0;
}

.badge-text {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--rapha-teal), var(--rapha-blue));
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 4px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 204, 192, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Hexagon Network */
.hexagon-network {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 1100px;
    margin: 0 auto;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hex-line {
    stroke: var(--rapha-teal);
    stroke-width: 2;
    opacity: 0.3;
    stroke-dasharray: 5, 5;
    animation: dashAnimation 20s linear infinite;
}

@keyframes dashAnimation {
    to {
        stroke-dashoffset: -100;
    }
}

/* Hexagon Items */
.hex-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.hex-shape {
    width: 180px;
    height: 180px;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: visible;
    cursor: pointer;
    flex-shrink: 0;
}

.hex-center .hex-shape {
    width: 240px;
    height: 240px;
}

/* Hexagon border outline */
.hex-shape::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, var(--rapha-teal), var(--rapha-blue), var(--rapha-purple));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: rotateGradient 3s linear infinite;
    animation-play-state: paused;
}

.hex-item:hover .hex-shape::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes rotateGradient {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.hex-center .hex-title {
    font-size: 22px;
    margin-bottom: 8px;
}

.hex-center .hex-subtitle {
    font-size: 16px;
    margin-bottom: 8px;
}

.hex-center .hex-jobs {
    font-size: 14px;
}

.hex-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.75), rgba(0, 102, 204, 0.75));
    opacity: 0.92;
    transition: opacity 0.4s ease;
}

.hex-item:hover .hex-overlay {
    opacity: 0.75;
}

.hex-item:hover .hex-image {
    transform: scale(1.05);
}

/* Hexagon Label - Text beside hexagon */
.hex-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
    max-width: 220px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid rgba(0, 204, 192, 0.3);
    transition: all 0.3s ease;
}

.hex-item:hover .hex-label {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(0, 204, 192, 0.6);
    transform: translateX(5px);
}

.hex-title {
    font-size: 18px;
    font-weight: 900;
    color: #FF4444;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 68, 68, 0.5);
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.hex-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.3;
}

.hex-jobs {
    font-size: 12px;
    font-weight: 800;
    color: #FF4444;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 68, 68, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Hexagon Positioning - Wide spacing */
.hex-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hex-top-left {
    top: 8%;
    left: 8%;
}

.hex-top-right {
    top: 8%;
    right: 8%;
}

.hex-middle-left {
    top: 50%;
    left: 1%;
    transform: translateY(-50%);
}

.hex-middle-right {
    top: 50%;
    right: 1%;
    transform: translateY(-50%);
}

.hex-bottom-left {
    bottom: 8%;
    left: 15%;
}

.hex-bottom-right {
    bottom: 8%;
    right: 15%;
}

/* Hover Effects - Static hexagons with animated outlines */
.hex-item:hover .hex-shape {
    box-shadow: 0 20px 50px rgba(0, 204, 192, 0.4);
}

.hex-item:hover {
    z-index: 10;
}

.hex-center .hex-label {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-width: 240px;
    max-width: 260px;
}

.hex-center:hover .hex-label {
    transform: translateX(-50%);
}

/* Footer Info */
.footer-info {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
}

.footer-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* Floating Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: particleFloat 12s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 15%;
    background: var(--rapha-teal);
    box-shadow: 0 0 15px var(--rapha-teal);
}

.particle:nth-child(2) {
    top: 70%;
    left: 25%;
    background: var(--rapha-blue);
    box-shadow: 0 0 15px var(--rapha-blue);
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 30%;
    right: 20%;
    background: var(--rapha-purple);
    box-shadow: 0 0 15px var(--rapha-purple);
    animation-delay: 4s;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 15%;
    background: var(--rapha-green);
    box-shadow: 0 0 15px var(--rapha-green);
    animation-delay: 6s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 50%;
    background: var(--rapha-teal);
    box-shadow: 0 0 15px var(--rapha-teal);
    animation-delay: 3s;
}

.particle:nth-child(6) {
    top: 20%;
    left: 60%;
    background: var(--rapha-blue);
    box-shadow: 0 0 15px var(--rapha-blue);
    animation-delay: 5s;
}

.particle:nth-child(7) {
    bottom: 30%;
    left: 10%;
    background: var(--rapha-purple);
    box-shadow: 0 0 15px var(--rapha-purple);
    animation-delay: 7s;
}

.particle:nth-child(8) {
    top: 40%;
    right: 40%;
    background: var(--rapha-green);
    box-shadow: 0 0 15px var(--rapha-green);
    animation-delay: 1s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(30px, -40px) scale(1.3);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -80px) scale(0.9);
        opacity: 1;
    }
    75% {
        transform: translate(40px, -40px) scale(1.2);
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hexagon-network {
        transform: scale(0.9);
    }
}

@media (max-width: 1024px) {
    .hexagon-network {
        height: 1000px;
        transform: scale(0.8);
    }

    .hex-shape {
        width: 160px;
        height: 160px;
    }

    .hex-center .hex-shape {
        width: 220px;
        height: 220px;
    }

    .brand-name-header .rapha {
        font-size: 36px;
    }

    .brand-name-header .medical {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hexagon-network {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        padding: 20px;
    }

    .connection-lines {
        display: none;
    }

    .hex-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        flex-direction: column;
        gap: 20px;
    }

    .hex-shape,
    .hex-center .hex-shape {
        width: 200px;
        height: 200px;
    }

    .hex-label {
        min-width: auto;
        width: 100%;
        max-width: 350px;
        text-align: center;
    }

    .hex-center .hex-label {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
    }

    .hex-item:hover .hex-label {
        transform: none;
    }

    .brand-name-header {
        flex-direction: column;
        gap: 5px;
    }

    .brand-name-header .rapha {
        font-size: 32px;
    }

    .brand-name-header .medical {
        font-size: 20px;
    }

    .badge-text {
        font-size: 18px;
        padding: 12px 30px;
    }

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

    .hex-subtitle {
        font-size: 14px;
    }

    .hex-jobs {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hex-shape,
    .hex-center .hex-shape {
        width: 160px;
        height: 160px;
    }

    .hex-label {
        padding: 15px;
        min-width: auto;
    }

    .medical-icon-small {
        font-size: 40px;
    }

    .brand-name-header .rapha {
        font-size: 24px;
    }

    .brand-name-header .medical {
        font-size: 16px;
    }

    .header-tagline {
        font-size: 14px;
    }

    .hex-title {
        font-size: 16px;
    }

    .hex-subtitle {
        font-size: 12px;
    }

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

/* Tilt Effect */
[data-tilt] {
    transform-style: preserve-3d;
}
