/* Fideat Custom Styles - UI/UX Refined */

/* Custom Tailwind Configuration */
@layer base {
    :root {
        --color-brand-yellow: #f4f673;
        --color-brand-beige: #ffffff;
        --color-brand-black: #000000;
        --color-brand-gray: #4A4A4A;
    }
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom color classes for Tailwind */
.text-brand-yellow {
    color: var(--color-brand-yellow);
}

.bg-brand-yellow {
    background-color: var(--color-brand-yellow);
}

.bg-brand-beige {
    background-color: var(--color-brand-beige);
}

.border-brand-yellow {
    border-color: var(--color-brand-yellow);
}

.hover\:bg-brand-yellow:hover {
    background-color: var(--color-brand-yellow);
}

.hover\:text-brand-yellow:hover {
    color: var(--color-brand-yellow);
}

.focus\:ring-brand-yellow:focus {
    --tw-ring-color: var(--color-brand-yellow);
}

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

/* Header styles - Refined */
header {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(0, 0, 0, 0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header nav {
    max-width: 1400px;
}

/* Typography Enhancements */
h1 {
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-weight: 900;
}

h2 {
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-weight: 900;
}

h3 {
    letter-spacing: -0.01em;
    line-height: 1.3;
    font-weight: 700;
}

p {
    line-height: 1.7;
    color: #374151;
}

/* Hero section animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Soft Shadow System */
.shadow-soft {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.shadow-soft-lg {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.1);
}

.shadow-glow-yellow {
    box-shadow: 0 10px 40px rgba(244, 246, 115, 0.25);
}

/* CTA Magnetic Effect */
.cta-magnetic {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.cta-magnetic:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(244, 246, 115, 0.4);
}

.cta-magnetic:active {
    transform: translateY(-2px) scale(1.01);
}

/* iPhone Mockup Styling */
.iphone-mockup {
    transform: rotate(-2deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.iphone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* Plus Icon Animation */
.plus-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plus-icon:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Form Inputs - Modern Style */
input[type="text"],
input[type="email"],
textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    border: 2px solid #e5e7eb;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--color-brand-yellow);
    box-shadow: 0 0 0 3px rgba(244, 246, 115, 0.1);
    outline: none;
}

/* Button Styling */
button[type="submit"] {
    min-height: 56px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--color-brand-yellow) 0%, #e8df4f 100%);
    box-shadow: 0 4px 15px rgba(244, 246, 115, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 246, 115, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Background Gradients */
.bg-gradient-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.bg-gradient-dark {
    background: linear-gradient(180deg, #111827 0%, #000000 100%);
}

/* Container Max Width */
.container-refined {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Touch Targets */
@media (max-width: 768px) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
    
    input[type="text"],
    input[type="email"],
    textarea,
    button {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* Smooth Section Transitions */
section {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* Custom button styles */
button, .btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:active, .btn:active {
    transform: scale(0.98);
}

/* Form styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 229, 52, 0.3);
}

input[type="checkbox"]:checked {
    background-color: var(--color-brand-yellow);
    border-color: var(--color-brand-yellow);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Link transitions */
a {
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--color-brand-yellow);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4d126;
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Responsive text scaling */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Loading animation for images */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f0f0f0 8%, #f8f8f8 18%, #f0f0f0 33%);
    background-size: 1000px 100%;
}

/* Print styles */
@media print {
    header {
        position: static;
    }
    
    .no-print {
        display: none;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--color-brand-yellow);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

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

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

/* Yellow accent decorative elements */
.accent-square {
    position: relative;
}

.accent-square::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: var(--color-brand-yellow);
    z-index: -1;
}

/* Responsive container max-widths */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    nav ul {
        flex-direction: row;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
}

/* Performance optimization */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme, no changes needed */
}

/* Reduced motion support */
@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;
    }
}
