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

:root {
  --blue-sky: #0ea5e9;
  --blue-sky-light: #38bdf8;
  --blue-sky-lighter: #7dd3fc;
  --yellow-grad-start: #FFD700;
  --yellow-grad-end: #FFA500;
}

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

body {
    background-color: #f8fafc;
    background-attachment: fixed;
}

/* App-style Global Background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.08), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

/* Solid Professional Card Classes */
.solid-card-blue {
    background: linear-gradient(135deg, #7dd3fc, #0ea5e9);
    border-radius: 28px;
    box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.solid-card-blue:hover {
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.5);
    transform: translateY(-4px);
}

.solid-card-yellow {
    background: linear-gradient(135deg, #FFE600, #FFD700);
    border-radius: 28px;
    box-shadow: 0 10px 40px -10px rgba(255, 215, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b; /* slate-800 for contrast */
}

.solid-card-yellow:hover {
    box-shadow: 0 20px 40px -10px rgba(255, 215, 0, 0.5);
    transform: translateY(-4px);
}

.glass-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.glass-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(14, 165, 233, 0.08);
}

/* Premium App-like Buttons (from Image 2) */
.btn-premium {
    border-radius: 9999px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px rgba(14, 165, 233, 0.3);
}

.btn-blue {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white;
}

.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, #0ea5e9, #7dd3fc);
    -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); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* Icon Hover Effects */
.icon-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-container:hover i {
    transform: scale(1.15);
    color: #0ea5e9;
}

/* Bottom Navigation styles */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* 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);
}

/* Glassmorphism Propuesta de Valor Desktop Panels */
.propuesta-panel {
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.propuesta-panel.active {
    flex: 3;
}

.propuesta-panel:not(.active) .panel-desc {
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.propuesta-panel.active .panel-desc {
    opacity: 1;
    -webkit-line-clamp: none;
}

/* Mobile Accordion Glass Styles */
.glass-accordion-item.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.25);
}

.glass-accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Custom Scrollbar for Search Results */
#project-search-results::-webkit-scrollbar {
    width: 6px;
}
#project-search-results::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
#project-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
}
#project-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}
