/* ==========================================================================
   0. NATIVE GRADIENT TYPE-SYSTEM REGISTRATIONS
   ========================================================================== */
/* Registering the variables as actual colors forces browsers to interpolate transitions */
@property --hero-center-color {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(20, 139, 219, 1);
}

@property --hero-outer-color {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(0, 50, 84, 1);
}

@property --hero-border-color {
    syntax: '<color>';
    inherits: true;
    initial-value: #00324e;
}

.hero {
    display: flex;
    height: 100vh;
    height: 100dvh;
    min-height: 900px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* FIX: Replaced hardcoded values with variables so the color channels can morph */
    background: var(--hero-center-color, rgba(20, 139, 219, 1));
    background: radial-gradient(circle, var(--hero-center-color, rgba(20, 139, 219, 1)) 0%, var(--hero-outer-color, rgba(0, 50, 84, 1)) 100%);
    border-bottom: 6px var(--hero-border-color, #00324e) solid;
    
    /* Crucial: Added 'background' to the transition array to slide the color changes smoothly */
    transition: background 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 1024px) {
  .hero-inner {
    flex-wrap: wrap;
    height: auto;
  }
}



/* Master canvas settings for vectors */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140%; /* Over-height prevents clipping during downward motion */
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.parallax-layer svg {
  width: 100%;
  height: 100%;
}

/* Default view configurations (Light Theme) */
.parallax-cloud {
  opacity: 1;
  filter: blur(25px);
}

.parallax-star {
  opacity: 0;
}

/* Seamless transition cross-fade mappings */
[data-theme="dark"] .parallax-cloud {
  opacity: 0;
}

[data-theme="dark"] .parallax-star {
  opacity: 1;
}

/* Forces text content and images cleanly above background vectors */
.hero-inner {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    height: 100%;
}

.hero-content {
    padding-top: 15%;
    padding-left: 10%;
    flex-shrink: 1;
    width: 85%;

    h1.huge{
        font-weight: 400;
        font-style:normal;
        font-size: clamp(1rem, 2rem + 5vw, 10rem);
        color: #fff;
        line-height: 1.2;
    }
    
}

.hero-image {
    display: flex;
    flex-grow: 1;
    padding-top: 20px;
    align-items: end;
    justify-content: end;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    margin: 60px 0 40px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn{
    width: 240px;
}

@media (max-width: 565px) {
    .hero-buttons .btn {
        width: 100%;
    }
}

.img-toon{
    max-width: 100%;
    height: auto;
    object-fit: cover;
}



.hero p{
    color: rgba(255, 255, 255, .8);
    font-size: clamp(1.5rem, 1rem + 2vw, 3rem);
    margin-bottom: 20px;
}

.hero-image-mobile{display:none; position: relative;}

.img-toon-icon{
    height: auto;
    width: 55%;
    max-width: 200px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 50px 0;
    z-index: 1;
    background: #020024;
    background: radial-gradient(circle,rgba(2, 0, 36, 1) 0%, rgba(15, 123, 194, 1) 50%, rgba(186, 234, 255, 1) 100%);
}

[data-theme="dark"] .img-toon-icon { 
    background: #005f9e; 
    background: radial-gradient(circle, rgba(0, 95, 158, 1) 0%, rgba(0, 23, 36, 1) 100%); 
}

.behind-icon{
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 1);
    z-index: 0;
}


@media (max-width: 1024px) {
    .hero{
        flex-wrap: wrap;
        height: auto;
    }
    .hero-image{
        display: none;
    }
    .hero-content {
        padding: 110px 25px 0px 25px;
        flex-shrink: 0;
        width: 100%;
    }
    .hero-image-mobile{
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

