/* Custom CSS for Fesera - Modern Black & White Theme */

/* Custom Properties */
:root {
    --primary-black: #000000;
    --soft-black: #1a1a1a;
    --gray-900: #111111;
    --gray-800: #222222;
    --gray-700: #333333;
    --gray-600: #666666;
    --gray-400: #999999;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --accent-blue: #3b82f6;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-black: rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

/* Custom Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg-1 {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.gradient-bg-dark {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--soft-black) 100%);
}

/* Custom Shadows */
.shadow-elegant {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-dramatic {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-inset {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Custom Buttons */
.btn-primary {
    background: var(--primary-black);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-black);
}



.btn-primary:hover {
    background: var(--gray-800);
    border-color: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-black);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-black);
}

.btn-secondary:hover {
    background: var(--primary-black);
    color: var(--white);
    transform: translateY(-2px);
}

/* Custom Cards */
.card-modern {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}

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

/* iPhone Mockup Styles */
.iphone-mockup {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.iphone-mockup:hover {
    transform: translateY(-10px) scale(1.02);
}

.iphone-mockup::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    border-radius: 2rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iphone-mockup:hover::before {
    opacity: 1;
}

/* Demo Step Enhancements */
.demo-step {
    scroll-margin-top: 100px;
}

.demo-step .iphone-demo-container {
    position: relative;
}

/* Step Indicators */
.step-indicator {
    position: relative;
    z-index: 10;
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--gray-300), transparent);
    transform: translateY(-50%);
}

.step-indicator:last-child::after {
    display: none;
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Typography */
.text-hero {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-display {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Header Styles */
.header-blur {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-black);
}

.nav-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

/* Hamburger Menu Animation */
.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: var(--primary-black);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .text-hero {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .text-display {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .card-modern {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Mobile spacing fixes */
    .py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .mb-20 {
        margin-bottom: 3rem;
    }
    
    .mb-16 {
        margin-bottom: 2rem;
    }
    
    .space-y-12 > * + * {
        margin-top: 2rem;
    }
    
    .gap-16 {
        gap: 2rem;
    }
    
    /* iPhone mockup mobile adjustments */
    .iphone-demo-container {
        padding: 0.5rem;
        width: 100%;
        max-width: none;
    }
    
    .iphone-mockup {
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }
    
    .iphone-mockup img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Grid adjustments */
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid.lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Text size adjustments */
    .text-6xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .text-5xl {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .text-4xl {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .text-xl {
        font-size: 1.125rem;
        line-height: 1.4;
    }
}

@media (max-width: 640px) {
    /* Extra small screens */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .space-x-3 > * + * {
        margin-left: 0.5rem;
    }
    
    /* Compact header on mobile */
    .header-blur {
        height: 56px;
        display: flex;
        align-items: center;
    }
    
    .space-y-12 > * + * {
        margin-top: 1.5rem;
    }
    
    .p-8 {
        padding: 1.5rem;
    }
    
    .p-6 {
        padding: 1rem;
    }
    
    /* Mobile menu improvements */
    .mobile-menu {
        width: 100%;
        max-width: 320px;
    }
    
    /* Mobile menu backdrop */
    .mobile-menu-backdrop.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Demo section mobile */
    .demo-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .demo-step {
        text-align: center;
        padding: 1rem 0;
    }
    
    /* Mobile image improvements */
    .iphone-demo-container {
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
        overflow: visible;
    }
    
    .iphone-mockup {
        max-width: 250px;
        margin: 0 auto;
        width: 100%;
    }
    
    .iphone-mockup img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        border-radius: 1.5rem;
    }
    
    /* Hero section mobile */
    .hero-content {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* Custom Focus States */
.focus-ring:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Custom Selection */
::selection {
    background: var(--primary-black);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-black);
    color: var(--white);
} 