/* Custom Styles for Fenitti Website */

/* Fenitti Brand System */
:root {
    --brand-primary: #ff6b6b;
    --brand-secondary: #ffa726;
    --brand-accent: #fff176;
    --brand-dark: #1a1a1a;
    --brand-muted: #4b5563;
    --brand-surface: #fff5eb;
    --brand-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #fff176 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(255, 107, 107, 0.16) 0%, rgba(255, 167, 38, 0.16) 50%, rgba(255, 241, 118, 0.16) 100%);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(255, 107, 107, 0.2);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--brand-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
    color: var(--brand-muted);
}

.subtitle {
    color: var(--brand-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    .hero-surface {
        margin-top: 2.5rem;
        box-shadow: 0 20px 40px -32px rgba(15, 23, 42, 0.45);
    }
    .hero-surface::before,
    .hero-surface::after {
        opacity: 0.5;
        filter: blur(18px);
    }
    .hero-image-wrapper {
        border-radius: 24px;
    }
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.75rem;
    }
    .service-card {
        padding: 1.75rem;
    }
    .stats-section .grid {
        gap: 1.5rem;
    }
    }
    50% {
        transform: translate3d(0, -12px, 0) scale(1.03);
    }
}

@keyframes slideUpSoft {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: transform 0.8s var(--ease-smooth), opacity 0.8s var(--ease-smooth);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="tilt"] {
    transform: perspective(1000px) rotateX(8deg) rotateY(-6deg) scale(0.98);
}

[data-animate="tilt"].is-visible {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
}

[data-animate="fade-up"] {
    transform: translateY(32px);
}

[data-animate="fade-up"].is-visible {
    transform: translateY(0);
}

[data-animate="zoom"] {
    transform: scale(0.94);
}

[data-animate="zoom"].is-visible {
    transform: scale(1);
}


/* Navigation */
nav {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    height: 80px;
}

@media (max-width: 640px) {
    nav {
        height: 70px;
    }
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--brand-dark);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--brand-gradient);
    transition: width 0.3s ease, transform 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 60%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-smooth);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.45);
}

.btn-secondary {
    color: var(--brand-primary);
    border: 2px solid rgba(255, 122, 95, 0.35);
    background: rgba(255, 122, 95, 0.06);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 95, 0.6);
    background: rgba(255, 122, 95, 0.1);
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.25);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Form Styles */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(255, 167, 38, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 167, 38, 0.12);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--brand-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
}

/* Hero Enhancements */
.hero-surface {
    position: relative;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 28px 60px -36px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.hero-surface::before,
.hero-surface::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(0);
    opacity: 0.8;
    animation: floatOrb 12s ease-in-out infinite;
}

.hero-surface::before {
    width: 280px;
    height: 280px;
    background: rgba(255, 122, 95, 0.18);
    top: -140px;
    right: -120px;
}

.hero-surface::after {
    width: 220px;
    height: 220px;
    background: rgba(255, 241, 118, 0.16);
    bottom: -110px;
    left: -90px;
    animation-delay: 2.5s;
}


.hero-image-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 55px -35px rgba(15, 23, 42, 0.35);
    cursor: pointer;
}

.hero-image-wrapper img {
    transition: transform 0.9s var(--ease-smooth), filter 0.6s ease;
    transform-origin: center;
}

.hero-surface:hover .hero-image-wrapper img,
.hero-image-wrapper:hover img {
    transform: scale(1.08);
    filter: saturate(1.25) brightness(1.05);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 107, 107, 0.28) 0%, rgba(255, 167, 38, 0.18) 60%, rgba(255, 241, 118, 0.18) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero-surface:hover .hero-image-wrapper::after,
.hero-image-wrapper:hover::after {
    opacity: 0.75;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.12);
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-badge i {
    font-size: 0.85rem;
}

/* Gradient Text */
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fenitti-orange);
}

/* Mobile Menu */
#mobile-menu {
    width: 100%;
    transition: all 0.3s ease;
}

#mobile-menu a {
    padding: 0.75rem 0;
    display: block;
    font-size: 1rem;
}

#mobile-menu .pt-4 {
    padding-top: 1rem !important;
}

/* Pulse Animation for Icons */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Blog Card Styles */
.blog-card {
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s ease;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 48px -34px rgba(15, 23, 42, 0.28);
}

.blog-card img {
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* Contact Form Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--fenitti-orange);
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    .section-title {
        font-size: 1.875rem;
        line-height: 1.3;
    }
    .hero-surface {
        margin-top: 2rem;
        box-shadow: 0 20px 40px -32px rgba(15, 23, 42, 0.45);
    }
    .hero-surface::before,
    .hero-surface::after {
        opacity: 0.4;
        filter: blur(20px);
    }
    .hero-image-wrapper {
        border-radius: 20px;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
    }
    .service-card {
        padding: 2rem;
    }
    .stats-section .grid {
        gap: 1rem;
    }
    /* Mobile Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    h3 {
        font-size: 1.25rem;
    }
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    /* Mobile Spacing */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    /* Navigation Mobile */
    nav img {
        height: 50px;
    }
    nav .flex.space-x-8 {
        gap: 1rem;
    }
    nav {
        height: 70px;
    }
    /* Buttons Mobile */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem;
    }
    /* Sections Mobile Spacing */
    section[class*="pt-36"] {
        padding-top: 6rem !important;
    }
    section[class*="pb-24"] {
        padding-bottom: 3rem !important;
    }
    section[class*="py-20"] {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    /* Hero Mobile */
    .hero-content {
        text-align: center;
        gap: 1.5rem;
    }
    .hero-content h1 {
        font-size: 1.875rem !important;
        line-height: 1.2;
    }
    .hero-content p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    .hero-content .flex {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-content .flex a {
        width: 100%;
    }
    .hero-surface::before,
    .hero-surface::after {
        display: none;
    }
    .hero-surface,
    .hero-image-wrapper {
        border-radius: 16px;
    }
    .hero-image-wrapper img {
        transform: scale(1);
    }
    /* Stats Mobile */
    .stats-section .grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    /* Service Cards Mobile */
    .service-card {
        text-align: center;
        padding: 1.5rem;
    }
    .service-card h3 {
        font-size: 1.25rem;
    }
    .service-card ul {
        text-align: left;
        margin: 0 auto;
        max-width: 18rem;
        font-size: 0.875rem;
    }
    /* Forms Mobile */
    .form-input,
    .form-label {
        font-size: 0.9375rem;
    }
    input,
    textarea,
    select {
        padding: 0.75rem !important;
    }
    /* Footer Mobile */
    footer .grid > div {
        text-align: center;
    }
    footer .grid > div ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        list-style: none;
        padding: 0;
    }
    footer .grid > div ul li {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.875rem;
    }
    /* Mobile Menu Improvements */
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    #mobile-menu.open {
        max-height: 500px;
    }
    /* WhatsApp Button Mobile */
    .whatsapp-float {
        bottom: 20px !important;
        right: 15px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 26px !important;
    }
    /* Back to Top Button Mobile */
    #back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 85px !important;
        right: 15px !important;
        font-size: 1rem !important;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if needed */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    animation: floatWhatsApp 3s ease-in-out infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    animation: none;
}

@keyframes floatWhatsApp {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 27px;
        bottom: 85px;
        right: 20px;
    }
}

/* Mobile touch optimization */
@media (max-width: 640px) {
    /* Increase touch targets for better mobile UX */
    a, button, input, select, textarea {
        min-height: 44px;
    }
    
    /* Better mobile form spacing */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve grid gaps */
    .grid {
        gap: 1rem;
    }
    
    /* Better card padding */
    .bg-white.rounded-2xl,
    .bg-white.rounded-3xl {
        padding: 1.25rem !important;
    }
    
    /* Optimize text for mobile reading */
    p {
        text-align: left;
    }
    
    .text-center p {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    nav, footer, .btn-primary, .btn-secondary, .whatsapp-float {
        display: none;
    }
}
