/* ============================================
   CSS Reset & Base Styles
   ============================================ */

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

:root {
    /* Brand Colors from Main Website */
    --primary: hsl(170, 74%, 36%); /* #14b8a6 - Teal/Green */
    --primary-variant: hsl(200, 92%, 45%); /* Light Blue */
    --primary-glow: hsl(170, 74%, 56%);
    --primary-dark: hsl(170, 74%, 28%);
    --primary-light: hsl(170, 74%, 50%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222.2, 84%, 4.9%);
    --text-muted: hsl(215.4, 16.3%, 46.9%);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-brand: 'Playfair Display', Georgia, serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--foreground);
    line-height: 1.6;
    background: var(--background);
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-variant) 50%, var(--primary-light) 100%);
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        position: fixed;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: imageZoom 20s ease-in-out infinite;
    filter: brightness(1) contrast(1.05) saturate(1.1);
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(20, 184, 166, 0.25) 0%,
        rgba(20, 184, 166, 0.2) 30%,
        rgba(20, 184, 166, 0.15) 60%,
        rgba(20, 184, 166, 0.25) 100%
    );
    z-index: 1;
    backdrop-filter: blur(0px);
}

/* Animated Wave Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: waveAnimation 20s ease-in-out infinite;
    mix-blend-mode: overlay;
    opacity: 0.5;
}

.wave-1 {
    top: -50%;
    left: -50%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.wave-2 {
    top: -30%;
    right: -50%;
    animation-delay: -5s;
    animation-duration: 30s;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.wave-3 {
    bottom: -50%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 35s;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}

@keyframes waveAnimation {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9) rotate(240deg);
        opacity: 0.7;
    }
}

/* Elegant Light Effects */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
    animation: lightPulse 8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes lightPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    width: 100%;
    color: #FFFFFF;
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 768px) {
    .hero-content {
        /* Text shadows are handled individually per element */
    }
    
    .brand-name,
    .hero-headline,
    .hero-subtitle,
    .hero-badge,
    .pill,
    .cta-hint {
        color: #FFFFFF !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    animation: logoGlow 2s ease-in-out infinite alternate;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes logoGlow {
    from { 
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    to { 
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
    }
}

.brand-name {
    font-family: var(--font-brand);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.brand-name:hover {
    transform: scale(1.02);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
    transition: var(--transition);
    cursor: default;
    font-family: var(--font-primary);
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

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

.hero-headline {
    font-family: var(--font-brand);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out 0.2s both;
    transition: var(--transition);
}

.hero-headline:hover {
    transform: scale(1.02);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #FFFFFF;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.features-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
}

.pill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pill:hover::before {
    width: 300px;
    height: 300px;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Button
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--background);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.8s both;
    letter-spacing: 0.3px;
    font-family: var(--font-primary);
}


.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: hsl(170, 74%, 40%);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.05);
}

.btn-primary svg {
    transition: var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(8px) scale(1.2);
}

.cta-hint {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #FFFFFF;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 1s both, hintPulse 3s ease-in-out infinite 2s;
    font-family: var(--font-primary);
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ============================================
   Floating Elements
   ============================================ */

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.float-1,
.float-2,
.float-3,
.float-4,
.float-5 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    opacity: 0.4;
}

.float-1 {
    width: 250px;
    height: 250px;
    top: 8%;
    left: 8%;
    animation: float1 20s ease-in-out infinite;
}

.float-2 {
    width: 180px;
    height: 180px;
    top: 55%;
    right: 12%;
    animation: float2 25s ease-in-out infinite;
}

.float-3 {
    width: 120px;
    height: 120px;
    bottom: 18%;
    left: 18%;
    animation: float3 30s ease-in-out infinite;
}

.float-4 {
    width: 200px;
    height: 200px;
    top: 35%;
    right: 25%;
    animation: float4 22s ease-in-out infinite;
    animation-delay: -5s;
}

.float-5 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    right: 8%;
    animation: float5 28s ease-in-out infinite;
    animation-delay: -8s;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(40px, -60px) scale(1.15) rotate(120deg); }
    66% { transform: translate(-30px, 40px) scale(0.85) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-50px, -40px) scale(1.2) rotate(180deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(30px, 50px) scale(1.1) rotate(90deg); }
    75% { transform: translate(-40px, -30px) scale(0.9) rotate(270deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    40% { transform: translate(35px, -45px) scale(1.1) rotate(144deg); }
    80% { transform: translate(-25px, 35px) scale(0.95) rotate(288deg); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    30% { transform: translate(-35px, 45px) scale(1.15) rotate(108deg); }
    60% { transform: translate(25px, -35px) scale(0.9) rotate(216deg); }
}

/* Particle System */
.particle-system {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    filter: blur(0.5px);
}

.particle:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 12s;
    width: 8px;
    height: 8px;
}

.particle:nth-child(2) {
    left: 15%;
    animation-delay: -1s;
    animation-duration: 15s;
    width: 12px;
    height: 12px;
}

.particle:nth-child(3) {
    left: 25%;
    animation-delay: -2s;
    animation-duration: 18s;
    width: 10px;
    height: 10px;
}

.particle:nth-child(4) {
    left: 35%;
    animation-delay: -3s;
    animation-duration: 14s;
    width: 9px;
    height: 9px;
}

.particle:nth-child(5) {
    left: 45%;
    animation-delay: -4s;
    animation-duration: 16s;
    width: 11px;
    height: 11px;
}

.particle:nth-child(6) {
    left: 55%;
    animation-delay: -5s;
    animation-duration: 13s;
    width: 8px;
    height: 8px;
}

.particle:nth-child(7) {
    left: 65%;
    animation-delay: -6s;
    animation-duration: 17s;
    width: 10px;
    height: 10px;
}

.particle:nth-child(8) {
    left: 75%;
    animation-delay: -7s;
    animation-duration: 15s;
    width: 12px;
    height: 12px;
}

.particle:nth-child(9) {
    left: 85%;
    animation-delay: -8s;
    animation-duration: 14s;
    width: 9px;
    height: 9px;
}

.particle:nth-child(10) {
    left: 10%;
    animation-delay: -9s;
    animation-duration: 16s;
    width: 11px;
    height: 11px;
}

.particle:nth-child(11) {
    left: 20%;
    animation-delay: -10s;
    animation-duration: 13s;
    width: 8px;
    height: 8px;
}

.particle:nth-child(12) {
    left: 40%;
    animation-delay: -11s;
    animation-duration: 18s;
    width: 10px;
    height: 10px;
}

.particle:nth-child(13) {
    left: 60%;
    animation-delay: -12s;
    animation-duration: 15s;
    width: 12px;
    height: 12px;
}

.particle:nth-child(14) {
    left: 80%;
    animation-delay: -13s;
    animation-duration: 14s;
    width: 9px;
    height: 9px;
}

.particle:nth-child(15) {
    left: 90%;
    animation-delay: -14s;
    animation-duration: 16s;
    width: 11px;
    height: 11px;
}

@keyframes particleFloat {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    5% {
        opacity: 1;
        transform: translateX(15px) scale(1);
    }
    25% {
        transform: translateX(-10px) scale(1);
    }
    50% {
        transform: translateX(20px) scale(1);
    }
    75% {
        transform: translateX(-15px) scale(1);
    }
    95% {
        opacity: 1;
        transform: translateX(10px) scale(1);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero {
        padding: 1rem 0.75rem;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-image-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .hero-image {
        filter: brightness(1.1) contrast(1.15) saturate(1.2);
        object-position: center 30%;
        animation: none; /* Disable zoom on mobile for better performance */
        transform: scale(1); /* Ensure no scaling issues */
    }
    
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(20, 184, 166, 0.2) 0%,
            rgba(20, 184, 166, 0.15) 20%,
            rgba(20, 184, 166, 0.1) 50%,
            rgba(20, 184, 166, 0.12) 80%,
            rgba(20, 184, 166, 0.18) 100%
        );
    }
    
    .hero-content {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .logo-container {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-headline {
        margin-bottom: 0.75rem;
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        margin-bottom: 1.25rem;
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }
    
    .features-pills {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1.5rem;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .pill {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
        width: 100%;
        justify-content: center;
        text-align: center;
        background: rgba(255, 255, 255, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.35);
    }
    
    .btn-primary {
        padding: 0.95rem 2rem;
        font-size: 1rem;
        width: calc(100% - 1rem);
        max-width: none;
        margin: 0 0.5rem;
        border-radius: 0.5rem;
    }
    
    .cta-hint {
        font-size: 0.8rem;
        margin-top: 1rem;
        padding: 0 0.5rem;
    }
    
    .float-1,
    .float-2,
    .float-3,
    .float-4,
    .float-5 {
        opacity: 0.2;
        display: none; /* Hide on mobile for better performance */
    }
    
    .particle {
        opacity: 0.9;
        width: 8px !important;
        height: 8px !important;
    }
    
    .wave {
        opacity: 0.3;
    }
    
    .hero-background {
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0.75rem 0.5rem;
    }
    
    .hero-image {
        object-position: center 25%;
    }
    
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(20, 184, 166, 0.12) 0%,
            rgba(20, 184, 166, 0.1) 40%,
            rgba(20, 184, 166, 0.08) 70%,
            rgba(20, 184, 166, 0.12) 100%
        );
    }
    
    .logo {
        width: 36px;
        height: 36px;
    }
    
    .brand-name {
        font-size: 1.35rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-headline {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
        padding: 0 0.25rem;
    }
    
    .features-pills {
        margin-bottom: 1.25rem;
        gap: 0.4rem;
        padding: 0 0.25rem;
    }
    
    .pill {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: calc(100% - 0.5rem);
        margin: 0 0.25rem;
    }
    
    .cta-hint {
        font-size: 0.75rem;
        margin-top: 0.75rem;
        padding: 0 0.25rem;
    }
}

/* ============================================
   Performance Optimizations
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .logo-container,
    .logo,
    .hero-badge,
    .btn-primary,
    .float-1,
    .float-2,
    .float-3,
    .float-4,
    .float-5,
    .wave,
    .silhouette-shape,
    .particle {
        animation: none !important;
    }
}
