@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --blue-sky: #87CEEB;
  --yellow-grad-start: #FFD700;
  --yellow-grad-end: #FFA500;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #fef08a 100%);
    background-attachment: fixed;
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 24px;
}

.glass-card-inner {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}

.glass-header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Premium App-like Buttons (from Image 2) */
.btn-premium {
    border-radius: 9999px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-blue {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-gradient-yellow {
    background: linear-gradient(135deg, #FF8C00, #FFE600);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Gradient text utility */
.text-gradient-blue {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-yellow {
    background: linear-gradient(135deg, #FF8C00, #FFE600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3D Classes */
.perspective-1000 {
    perspective: 1000px;
}
.transform-style-3d {
    transform-style: preserve-3d;
}
.translate-z-10 {
    transform: translateZ(10px);
}
.translate-z-20 {
    transform: translateZ(20px);
}
.tilt-card {
    transition: transform 0.1s ease-out;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
}
.flip-card-inner.flipped {
    transform: rotateY(180deg);
}
.backface-hidden {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Custom Notch for Flip Cards */
.notch-bottom-right {
    /* Creates a circular transparent cutout at the bottom right corner */
    -webkit-mask-image: radial-gradient(circle at calc(100% - 36px) calc(100% - 36px), transparent 36px, black 37px);
    mask-image: radial-gradient(circle at calc(100% - 36px) calc(100% - 36px), transparent 36px, black 37px);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Bottom Navigation styles */
.nav-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Create the cutout/muesca effect using a mask */
    /* A circle cutout at the top center */
    -webkit-mask-image: radial-gradient(circle at 50% 0%, transparent 32px, black 33px);
    mask-image: radial-gradient(circle at 50% 0%, transparent 32px, black 33px);
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered delays for child elements if needed */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Gradient Pill Items (from Image 2) */
.gradient-pill {
    border-radius: 9999px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: 500;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.gradient-pill:hover {
    transform: scale(1.02);
}

.bg-grad-green-blue {
    background: linear-gradient(90deg, #10b981, #3b82f6);
}
.bg-grad-blue-light {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.bg-grad-purple {
    background: linear-gradient(90deg, #8b5cf6, #c084fc);
}
.bg-grad-orange-pink {
    background: linear-gradient(90deg, #f97316, #ec4899);
}
