@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    /* AirTree Brand Colors */
    --background: 180 15% 98%;
    --foreground: 180 15% 10%;

    --card: 0 0% 100%;
    --card-foreground: 180 15% 10%;

    --popover: 0 0% 100%;
    --popover-foreground: 180 15% 10%;

    /* Primary - AirTree Teal #1c5d59 */
    --primary: 177 55% 24%;
    --primary-foreground: 0 0% 100%;

    /* Secondary - Light Blue #4d90ba */
    --secondary: 204 44% 51%;
    --secondary-foreground: 0 0% 100%;

    /* Muted */
    --muted: 180 10% 94%;
    --muted-foreground: 180 10% 45%;

    /* Accent - Gold #c59451 */
    --accent: 35 50% 55%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 180 10% 88%;
    --input: 180 10% 88%;
    --ring: 177 55% 24%;

    --radius: 0.75rem;

    /* Custom AirTree tokens */
    --airtree-teal: 177 55% 24%;
    --airtree-teal-light: 177 45% 35%;
    --airtree-blue: 204 44% 51%;
    --airtree-gold: 35 50% 55%;
    --airtree-dark: 0 0% 27%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(177 55% 24% / 0.95) 0%, hsl(204 44% 51% / 0.85) 100%);
    --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(180 15% 97%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(35 50% 55%) 0%, hsl(35 60% 45%) 100%);
    --gradient-dark: linear-gradient(180deg, hsl(180 15% 10%) 0%, hsl(180 20% 5%) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px hsl(180 15% 10% / 0.04);
    --shadow-md: 0 4px 20px hsl(180 15% 10% / 0.08);
    --shadow-lg: 0 8px 40px hsl(180 15% 10% / 0.12);
    --shadow-glow: 0 0 40px hsl(177 55% 24% / 0.2);
    --shadow-gold: 0 4px 20px hsl(35 50% 55% / 0.3);

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

.dark {
    --background: 180 20% 5%;
    --foreground: 180 10% 95%;

    --card: 180 15% 8%;
    --card-foreground: 180 10% 95%;

    --popover: 180 15% 8%;
    --popover-foreground: 180 10% 95%;

    --primary: 177 45% 35%;
    --primary-foreground: 0 0% 100%;

    --secondary: 204 44% 45%;
    --secondary-foreground: 0 0% 100%;

    --muted: 180 15% 15%;
    --muted-foreground: 180 10% 65%;

    --accent: 35 50% 50%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 180 15% 18%;
    --input: 180 15% 18%;
    --ring: 177 45% 35%;

    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

* {
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
}

.text-gradient-gold {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(35 60% 45%) 100%);
}

.bg-hero-gradient {
    background: var(--gradient-hero);
}

.bg-card-gradient {
    background: var(--gradient-card);
}

.bg-dark-gradient {
    background: var(--gradient-dark);
}

.glass {
    background-color: hsl(var(--card) / 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border) / 0.5);
}

.glass-dark {
    background-color: hsl(var(--foreground) / 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border) / 0.2);
}

.shadow-elegant {
    box-shadow: var(--shadow-md);
}

.shadow-glow-primary {
    box-shadow: var(--shadow-glow);
}

.shadow-glow-gold {
    box-shadow: var(--shadow-gold);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.section-padding {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}



.container-padding {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-padding {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-padding {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.heading-xl {
    font-size: 2rem;
    line-height: 2.25rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.015em;
}

@media (min-width: 640px) {
    .heading-xl {
        font-size: 2.75rem;
        line-height: 1.1;
    }
}

@media (min-width: 768px) {
    .heading-xl {
        font-size: 3.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 1024px) {
    .heading-xl {
        font-size: 4rem;
        line-height: 1.1;
    }
}

.heading-lg {
    font-size: 1.75rem;
    line-height: 2.25rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
}

@media (min-width: 640px) {
    .heading-lg {
        font-size: 2.15rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .heading-lg {
        font-size: 2.75rem;
        line-height: 1.2;
    }
}

.heading-md {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

@media (min-width: 640px) {
    .heading-md {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

.heading-sm {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

@media (min-width: 640px) {
    .heading-sm {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

.subheading {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
}

@media (min-width: 768px) {
    .subheading {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

.card-hover {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 500ms;
}

.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: hsl(var(--primary));
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.text-balance {
    text-wrap: balance;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}


@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--primary) / 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.5);
}

/* Animation utilities for JS observer */
.animate-on-scroll {
    opacity: 0;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-fade-up {
    transform: translateY(30px);
}

.animate-fade-right {
    transform: translateX(-30px);
}

.animate-fade-left {
    transform: translateX(30px);
}

.animate-scale {
    transform: scale(0.9);
}

.in-view {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* New Marquee Animation */
@keyframes marquee-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex !important;
    width: max-content !important;
    animation: marquee-horizontal 30s linear infinite !important;
    will-change: transform;
}

/* Text Shimmer/Reveal */
.text-shimmer {
    background: linear-gradient(90deg, hsl(var(--accent)) 0%, #fff 50%, hsl(var(--accent)) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsl(var(--primary));
    transform: translateX(-101%);
}

.in-view.reveal-text::after {
    animation: reveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes reveal {
    0% {
        transform: translateX(-101%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(101%);
    }
}

/* Scrollbar hide utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}







/* Header spacing global fix */
body {
    padding-top: 80px;
    /* Mobile header height */
}

@media (min-width: 768px) {
    body {
        padding-top: 98px;
        /* Desktop header height */
    }
}

/* Page banners standardized - Desktop Focus */
.banner-section {
    position: relative;
    width: 100%;
    height: 320px;
    /* Standardize desktop height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent !important;
}

@media (max-width: 768px) {
    .banner-section {
        height: auto;
        min-height: auto;
        padding: 2.5rem 0 1rem 0;
    }
}

@media (min-width: 768px) {
    .banner-section {
        height: 320px;
    }
}

.banner-section img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 768px) {
    .banner-section img {
        display: none !important;
        /* Completely remove from phone view */
    }
}

.banner-section .content-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 2rem;
}

@media (max-width: 768px) {
    .banner-section .content-overlay {
        position: static !important;
        padding: 0 1rem;
    }

    .banner-section .content-overlay h1 {
        font-size: 1.85rem !important;
        color: #1c5d59 !important;
        /* AirTree Teal */
        margin-bottom: 0.5rem !important;
    }

    .banner-section .content-overlay p {
        font-size: 0.95rem !important;
        color: #475569 !important;
        /* Slate-600 */
        line-height: 1.5 !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
}

.airtree-footer {
    background-image: url('https://aimstorms.com/Air/assets/images/Footer.webp');
    background-size: cover;
    background-position: top center;
    /* Fix for black line */
    background-repeat: no-repeat;
    padding: 80px 0 60px 0;
    background-color: #fbfcff;
}

@media (max-width: 768px) {
    .airtree-footer {
        background-image: none !important;
        background-color: #121212;
        /* Little greyish black matching the theme */
        padding: 40px 0 0 0;
    }
}