/* Header Component Styles */

/* Header Container */
.nebula-header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background */
.header-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top-Left Image / Decor */
.top-left-decor {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 100;
    pointer-events: none;
    /* will-change removed - will be added dynamically via JS only when animating */
    z-index: 2;
}

.gradient-shape {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    /* Make it roundish for softer edges */

    /* Base Deep Void */
    background-color: #0b001a;
    /* Very dark purple/black base */

    /* Layer 1: Static nebular clouds (Deep Blue, Purple, Orange, Green) */
    background-image:
        radial-gradient(circle at 50% 50%, rgba(75, 0, 130, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 139, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.3) 0%, transparent 40%),
        /* Orange */
        radial-gradient(circle at 80% 80%, rgba(50, 205, 50, 0.2) 0%, transparent 40%);
    /* Green */

    filter: blur(60px);
    /* Heavy blur for soft cloud effect */
    opacity: 0.9;

    /* Main Drift Animation (Faster: 60s) */
    animation: nebula-float 40s ease-in-out infinite alternate;
}

/* Drifting Cloud 1: Teal/Cyan (Top Left focus) */
.gradient-shape::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.6), transparent 50%);
    mix-blend-mode: screen;
    animation: drift-slow 60s linear infinite alternate;
}

/* Drifting Cloud 2: Magenta/Pink (Bottom Right focus) */
.gradient-shape::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 70%, rgba(255, 0, 255, 0.5), transparent 50%);
    mix-blend-mode: screen;
    animation: drift-medium 50s ease-in-out infinite alternate-reverse;
}



@keyframes nebula-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, 30px) rotate(5deg);
    }
}

@keyframes drift-slow {
    0% {
        transform: translate(-30px, -20px) scale(1);
    }

    100% {
        transform: translate(30px, 20px) scale(1.1);
    }
}

@keyframes drift-medium {
    0% {
        transform: translate(20px, -30px) scale(1);
    }

    100% {
        transform: translate(-20px, 30px) scale(1.15);
    }
}

/* Shine Circle */
.shine-circle {
    position: fixed;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    filter: blur(150px);
    mix-blend-mode: screen;
}

/* Content Container */
.header-content-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 95%;
    max-width: 1200px;
}

.nebula-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

/* Logo Group */
.nebula-logo-group {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
}

.logo-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.nebula-text-img {
    height: auto;
    width: auto;
    max-width: 250px;
}

.nebula-mark-img {
    height: auto;
    width: auto;
    max-width: 120px;
    margin-left: -30px;
    margin-top: 10px;
    transition: transform 0.2s;
    position: relative;
    z-index: 1;
}

.nebula-subtitle {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: rgba(247, 231, 206, 0.9);
    line-height: 1.6;
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 21;
}

.nebula-subtitle p:first-child {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   Desktop (1025px+) = Default styles above
   ======================================== */

/* Tablet Landscape & Small Desktop (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .header-content-container {
        gap: 1.5rem;
        padding: 0 2.5rem;
        width: 92%;
    }

    .nebula-logo-group {
        margin-bottom: 0.8rem;
        max-width: none;
    }

    .nebula-text-img {
        max-width: 550px;
    }

    .nebula-mark-img {
        max-width: 220px;
        margin-left: -65px;
        margin-top: 18px;
    }

    .nebula-subtitle {
        font-size: 1.4rem;
        padding-left: 0.4rem;
        line-height: 1.5;
    }

    .top-left-decor {
        width: 28%;
        max-width: 450px;
    }

    .gradient-shape {
        width: 380px;
        height: 380px;
        filter: blur(50px);
    }

    .shine-circle {
        width: 50vw;
        height: 50vw;
        left: 58%;
        filter: blur(120px);
    }

    .icon-drawer {
        gap: 1.3rem;
        padding: 1.6rem 0;
    }

    .drawer-icon {
        width: 2.6rem;
    }

    .drawer-icon:hover {
        transform: scale(1.15);
    }
}

/* Desktop - Original Design (1025px and above) */
@media (min-width: 1025px) {
    .header-content-container {
        gap: 2rem;
        padding: 0 4rem;
        width: 90%;
    }

    .nebula-logo-group {
        margin-bottom: 1rem;
        max-width: none;
    }

    .nebula-text-img {
        max-width: 800px;
    }

    .nebula-mark-img {
        max-width: 350px;
        margin-left: -90px;
        margin-top: 25px;
    }

    .nebula-subtitle {
        font-size: 1.9rem;
        padding-left: 0.5rem;
    }

    .top-left-decor {
        width: 25%;
        max-width: 600px;
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .header-content-container {
        gap: 1rem;
        padding: 0 1.5rem;
        width: 95%;
    }

    .nebula-logo-group {
        margin-bottom: 0.6rem;
    }

    .nebula-text-img {
        max-width: 320px;
    }

    .nebula-mark-img {
        max-width: 140px;
        margin-left: -38px;
        margin-top: 12px;
    }

    .nebula-subtitle {
        font-size: 1rem;
        padding-left: 0.3rem;
        line-height: 1.4;
        margin-top: 0.7rem;
    }

    .top-left-decor {
        width: 35%;
        max-width: 300px;
    }

    .gradient-shape {
        width: 280px;
        height: 280px;
        filter: blur(40px);
    }

    .shine-circle {
        width: 65vw;
        height: 65vw;
        left: 55%;
        filter: blur(100px);
    }

    .icon-drawer {
        gap: 1.1rem;
        padding: 1.3rem 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .drawer-icon {
        width: 2.3rem;
    }

    .drawer-icon:hover {
        transform: scale(1.12);
    }
}

/* Mobile Large - iPhone 14 Pro Max, Galaxy S21+ (391px - 480px) */
@media (min-width: 391px) and (max-width: 480px) {
    .header-content-container {
        gap: 0.8rem;
        padding: 0 1.2rem;
        width: 96%;
    }

    .nebula-logo-group {
        margin-bottom: 0.5rem;
    }

    .nebula-text-img {
        max-width: 240px;
    }

    .nebula-mark-img {
        max-width: 105px;
        margin-left: -28px;
        margin-top: 9px;
    }

    .nebula-subtitle {
        font-size: 0.82rem;
        padding-left: 0.2rem;
        line-height: 1.35;
        margin-top: 0.6rem;
        max-width: 320px;
    }

    .top-left-decor {
        width: 42%;
        max-width: 220px;
    }

    .gradient-shape {
        width: 220px;
        height: 220px;
        filter: blur(35px);
    }

    .shine-circle {
        width: 75vw;
        height: 75vw;
        left: 52%;
        filter: blur(85px);
    }

    .icon-drawer {
        gap: 1rem;
        padding: 1.2rem 0.5rem;
        flex-wrap: wrap;
    }

    .drawer-icon {
        width: 2.1rem;
    }

    .drawer-icon:hover {
        transform: scale(1.1);
    }
}

/* Mobile Standard - iPhone 12/13/14, Galaxy S21 (361px - 390px) */
@media (min-width: 361px) and (max-width: 390px) {
    .header-content-container {
        gap: 0.7rem;
        padding: 0 1rem;
        width: 97%;
    }

    .nebula-logo-group {
        margin-bottom: 0.4rem;
    }

    .nebula-text-img {
        max-width: 220px;
    }

    .nebula-mark-img {
        max-width: 96px;
        margin-left: -26px;
        margin-top: 8px;
    }

    .nebula-subtitle {
        font-size: 0.78rem;
        padding-left: 0.2rem;
        line-height: 1.3;
        margin-top: 0.5rem;
        max-width: 300px;
    }

    .top-left-decor {
        width: 45%;
        max-width: 200px;
    }

    .gradient-shape {
        width: 200px;
        height: 200px;
        filter: blur(32px);
    }

    .shine-circle {
        width: 80vw;
        height: 80vw;
        left: 50%;
        filter: blur(80px);
    }

    .icon-drawer {
        gap: 0.95rem;
        padding: 1.1rem 0.5rem;
        flex-wrap: wrap;
    }

    .drawer-icon {
        width: 2rem;
    }
}

/* Mobile Small - iPhone SE, older Android (320px - 360px) */
@media (min-width: 320px) and (max-width: 360px) {
    .header-content-container {
        gap: 0.6rem;
        padding: 0 0.8rem;
        width: 98%;
    }

    .nebula-logo-group {
        margin-bottom: 0.3rem;
    }

    .nebula-text-img {
        max-width: 190px;
    }

    .nebula-mark-img {
        max-width: 84px;
        margin-left: -22px;
        margin-top: 7px;
    }

    .nebula-subtitle {
        font-size: 0.72rem;
        padding-left: 0.15rem;
        line-height: 1.25;
        margin-top: 0.4rem;
        max-width: 260px;
    }

    .top-left-decor {
        width: 50%;
        max-width: 180px;
    }

    .gradient-shape {
        width: 180px;
        height: 180px;
        filter: blur(28px);
    }

    .shine-circle {
        width: 85vw;
        height: 85vw;
        left: 50%;
        filter: blur(70px);
    }

    .icon-drawer {
        gap: 0.85rem;
        padding: 1rem 0.4rem;
        flex-wrap: wrap;
    }

    .drawer-icon {
        width: 1.85rem;
    }
}

/* Icon Drawer */
/* Icon Drawer */
.icon-drawer {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    transform: translateY(100%);
    /* Start hidden below */
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 101;
    /* Above gradient */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
    opacity: 0;
}

.icon-drawer.drawer-visible {
    transform: translateY(0);
    opacity: 1;

    border-top-width: 2px;
    border-top-style: solid;
    border-color: rgba(50, 50, 50, 0.75);
}

.drawer-icon {
    width: 3rem;
    /* height: 80px; */
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.drawer-icon:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    .gradient-shape {
        width: 250px;
        height: 250px;
    }
}

#contact-logo.visible {
    opacity: 0.1 !important;
}