@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

body {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont,
    sans-serif;
}

/* Mona Sans for titles and headers */
h1,
h2,
h3,
h4,
h5,
h6,
.nav-link,
.text-gradient,
.text-gradient-light,
.footer h3 {
    font-family: "Mona Sans", sans-serif;
}

/* Hero background with gradient only on top portion */
.hero-bg {
    background: linear-gradient(
            180deg,
            rgba(173, 216, 230, 0.4) 0%,
            rgba(221, 160, 221, 0.3) 20%,
            rgba(255, 182, 193, 0.3) 40%,
            rgba(255, 218, 185, 0.2) 60%,
            rgba(240, 248, 255, 0.1) 80%,
            transparent 100%
    );
    position: relative;
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            ellipse at 30% 20%,
            rgba(173, 216, 230, 0.21) 0%,
            transparent 70%
    ),
    radial-gradient(
            ellipse at 70% 10%,
            rgba(221, 160, 221, 0.13) 0%,
            transparent 70%
    ),
    radial-gradient(
            ellipse at 20% 40%,
            rgba(255, 182, 193, 0.12) 0%,
            transparent 60%
    ),
    radial-gradient(
            ellipse at 80% 30%,
            rgba(255, 218, 185, 0.16) 0%,
            transparent 60%
    );
}

/* Footer background */
.footer-bg {
    rotate: 180deg;
    background: linear-gradient(
            180deg,
            rgba(173, 216, 230, 0.4) 0%,
            rgba(221, 160, 221, 0.2) 20%,
            rgba(255, 182, 193, 0.15) 40%,
            rgba(255, 218, 185, 0.12) 60%,
            rgba(240, 248, 255, 0.07) 80%,
            transparent 100%
    );
    position: relative;
    overflow: hidden;
}

.footer-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            ellipse at 30% 20%,
            rgba(173, 216, 230, 0.21) 0%,
            transparent 70%
    ),
    radial-gradient(
            ellipse at 70% 10%,
            rgba(221, 160, 221, 0.13) 0%,
            transparent 70%
    ),
    radial-gradient(
            ellipse at 20% 40%,
            rgba(255, 182, 193, 0.12) 0%,
            transparent 60%
    ),
    radial-gradient(
            ellipse at 80% 30%,
            rgba(255, 218, 185, 0.16) 0%,
            transparent 60%
    );
}



.floating-icon {
    position: absolute;
    animation: smoothFloat 6s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.floating-icon:nth-child(1) {
    animation-delay: 0.5s;
}

.floating-icon:nth-child(2) {
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    animation-delay: 3.5s;
}

@keyframes smoothFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) rotate(-2deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
}

.header-floating {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: slideInHeader 1s ease-out 0.3s forwards;
    isolation: isolate;
    will-change: backdrop-filter;
}

@keyframes slideInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    border-radius: 25px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #000000;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent
    );
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: -1;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #6b7280;
    transform: translateY(-1px);
}

.nav-link.active {
    background: #0a0a0d;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInText 1.2s ease-out 1s forwards;
}

.text-gradient-light {
    background: linear-gradient(135deg, #93c5fd, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInText 1.2s ease-out 1.3s forwards;
}

@keyframes slideInText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInCard {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer-link {
    color: rgba(51, 51, 51, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #374151;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: #374151;
}

/* Newsletter input animation */
.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.newsletter-button {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-button:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Social icons animation */
.social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    color: #3b82f6 !important;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .floating-icon {
        animation: none;
        opacity: 1;
    }
    
    .floating-icon:nth-child(1) {
        top: 20px !important;
        left: 10px !important;
    }
    
    .floating-icon:nth-child(2) {
        top: 30px !important;
        right: 10px !important;
    }
    
    .floating-icon:nth-child(3) {
        bottom: 20px !important;
    }
}

@media (max-width: 768px) {
    .hero-bg {
        padding: 0 15px;
    }
    
    .floating-icon {
        display: none;
    }
    
    .cards-section {
        padding: 2rem 1rem;
    }
    
    .card-container {
        margin-bottom: 2rem;
    }
    
    .card-inner {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .card-subtitle {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .hero-bg {
        padding: 0 10px;
    }
    
    .floating-icon {
        display: none;
    }
    
    .cards-section {
        padding: 1.5rem 0.5rem;
    }
    
    .card-container {
        margin-bottom: 1.5rem;
    }
    
    .card-inner {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .card-subtitle {
        font-size: 0.75rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Page load animation */
.page-fade-in {
    opacity: 0;
    animation: pageLoad 1s ease-out forwards;
}

/* Three Cards Section Styles */
.cards-section {
    background: #ffffff;
    padding: 80px 0;
}

.card-container {
    height: 50vh;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner {
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 24px;
    padding: 48px 0px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Default state: keep icon + title vertically centered (no hover). */
    justify-content: center;
}

/* Hover state background - moved to combined rule below */

.card-container:hover .infinity-icon{
    position: absolute;
    bottom: 0.2vh;
}

/* Icon container */
.icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    z-index: 2;
}

/* Alpine.js animation classes */
.-translate-y-20 {
    transform: translateY(-5rem);
}

.translate-y-26 {
    transform: translateY(6.5rem);
}

/* Title styling */
.card-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    transition: all 2s ease-in-out;
    position: relative;
    z-index: 2;
    /* Title should be visible without hover (centered by .card-inner). */
    margin-top: 0;
}

.card-container:hover .card-title {
    color: white;
}

.card-container:hover .icon-white {
    display: block;
}

.card-container:hover .icon-blue {
    display: none;
}

/* Subtitle styling */
.card-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    position: absolute;
    z-index: 2;
    width: 100%;
    text-align: center;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px);
}

.card-container:hover .card-subtitle {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hover effects */
.card-container:hover {
    transform: translateY(-12px) !important;
}

.card-container:hover .card-inner{
    background: linear-gradient(
            180deg,
            #c6e5fa 0%,
            #8cd0fc 50%,
            #009aff 100%
    ) !important;
    border-color: transparent !important;
    box-shadow: 0 25px 50px -12px rgba(140, 208, 252, 0.21),
    0 20px 40px -8px rgba(0, 154, 255, 0.27) !important;
    transform: none !important;
}

/* Icon bounce animation */
.card-container:hover .icon-container {
    animation: iconBounce 0.6s ease-in-out;
}

/* Load animations */
.card-container {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInCard 0.8s ease-out forwards;
}

.card-container:nth-child(1) {
    animation-delay: 0.2s;
}

.card-container:nth-child(2) {
    animation-delay: 0.4s;
}

.card-container:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cards-section {
        padding: 60px 0;
    }

    .card-inner {
        padding: 36px 24px;
        min-height: 240px;
    }

    .icon-container {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 24px;
    }

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

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

@media (min-width: 1800px) {
    .custom-4k\:top-96 {
        top: 20rem !important;
    }
    .custom-4k\:left-96 {
        left: 30rem !important;
    }
    .custom-4k\:right-96 {
        right: 30rem !important;
    }
    .custom-4k\:bottom-32 {
        bottom: 8rem !important;
    }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(25px)) {
    .header-floating {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}