/* Mutfak365 — Premium Landing Page */

/* ─── Base ─── */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(232, 93, 44, 0.15);
    color: #1A1A2E;
}

/* ─── Grain Texture ─── */
.hero-grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ─── Navbar ─── */
#navbar {
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-link {
    color: #6B7280;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #E85D2C;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E85D2C;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* ─── Reveal Animations ─── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── Phone Mockups ─── */
.phone-mockup {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-front:hover {
    transform: translateY(-8px);
}

.phone-back:hover {
    transform: rotate(-3deg) translateY(-8px);
}

.phone-frame {
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 24px;
    background: #1A1A2E;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-frame-small {
    position: relative;
}

.phone-frame-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 18px;
    background: #1A1A2E;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

/* ─── Floating Badges ─── */
.float-badge {
    animation: floatBadge 4s ease-in-out infinite;
}

.float-badge-alt {
    animation: floatBadge 4s ease-in-out infinite 2s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ─── Scroll Dot ─── */
.scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ─── Hover Tilt ─── */
.hover-tilt {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) scale(1.02);
}

/* ─── Feature Cards ─── */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent, #E85D2C), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:nth-child(1) { --accent: #E85D2C; }
.feature-card:nth-child(2) { --accent: #2D6A4F; }
.feature-card:nth-child(3) { --accent: #2563EB; }
.feature-card:nth-child(4) { --accent: #9333EA; }
.feature-card:nth-child(5) { --accent: #EC4899; }
.feature-card:nth-child(6) { --accent: #D97706; }

/* ─── Counter Animation ─── */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ─── Mobile Menu ─── */
#mobile-menu {
    transition: max-height 0.3s ease;
}

/* ─── Smooth Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #E85D2C40;
    border-radius: 4px;
}

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

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .phone-back {
        display: none;
    }

    .phone-front {
        width: 75% !important;
        margin: 0 auto;
    }
}
