/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(224, 122, 95, 0.2);
    color: #1e2026;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fa2aa;
}

/* ===== Form Inputs ===== */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
}

.form-input::placeholder {
    color: #c4c5ca;
}

/* ===== Section Labels ===== */
.section-label {
    letter-spacing: 0.15em;
}

/* ===== Section Title ===== */
.section-title {
    letter-spacing: -0.02em;
}

/* ===== Section Subtitle ===== */
.section-subtitle {
    letter-spacing: -0.01em;
}

/* ===== Hero Animations ===== */
.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-trust {
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero-image-wrapper {
    animation: fadeInRight 1s ease-out 0.3s both;
}

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

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

/* ===== Floating Card Animation ===== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== Area Cards ===== */
.area-card {
    cursor: pointer;
}

.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.area-card:hover::after {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 122, 95, 0.3);
}

.testimonial-text {
    font-style: italic;
}

/* ===== Contact Items ===== */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-icon {
    transition: all 0.3s ease;
}

/* ===== Navbar ===== */
.nav-link {
    position: relative;
}

/* ===== Back to Top ===== */
#back-to-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

#bar1.open {
    transform: translateY(4px) rotate(45deg);
}

#bar2.open {
    opacity: 0;
    transform: scaleX(0);
}

#bar3.open {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-headline br {
        display: none;
    }
    
    .floating-card {
        display: none;
    }
    
    .about-accent {
        display: none;
    }
    
    .about-badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-bottom: 1rem;
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
