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

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: #2D2D2D;
}

#navbar.scrolled .nav-link:hover {
    color: #FF7F6E;
}

#navbar.scrolled .logo-text {
    color: #1A1A1A;
}

/* ===== Hero ===== */
.hero-bg {
    will-change: transform;
}

.hero-bg img {
    will-change: transform;
}

/* ===== Section Labels ===== */
.section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.section-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.section-label.visible,
.section-title.visible,
.section-desc.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero Animations ===== */
.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero-description {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}

.hero-subtitle.visible,
.hero-title.visible,
.hero-description.visible,
.hero-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Buttons ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== About ===== */
.about-images {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Approach Steps ===== */
.approach-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.approach-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.approach-step:nth-child(1) { transition-delay: 0.05s; }
.approach-step:nth-child(2) { transition-delay: 0.15s; }
.approach-step:nth-child(3) { transition-delay: 0.25s; }
.approach-step:nth-child(4) { transition-delay: 0.35s; }

/* ===== Testimonials ===== */
.testimonial-slider {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-slider.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-slide {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-dot {
    cursor: pointer;
}

.testimonial-dot.active {
    background-color: #FF7F6E;
    transform: scale(1.2);
}

/* ===== Contact Form ===== */
.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-form-wrapper {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.contact-form-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.input-field {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field:focus {
    border-color: #FF7F6E;
    box-shadow: 0 0 0 4px rgba(255, 127, 110, 0.1);
}

.input-field::placeholder {
    color: #c4c4c4;
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:hover::after {
    width: 300px;
    height: 300px;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

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

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

/* ===== Selection ===== */
::selection {
    background-color: rgba(255, 127, 110, 0.2);
    color: #1A1A1A;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-img-secondary {
        width: 36vw;
        height: 36vw;
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -2rem;
        margin-left: auto;
        margin-right: auto;
    }

    .approach-step {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .testimonial-text {
        font-size: 1.25rem;
    }
}

/* ===== Reduced Motion ===== */
@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;
    }

    .hero-subtitle,
    .hero-title,
    .hero-description,
    .hero-buttons,
    .service-card,
    .approach-step,
    .about-images,
    .about-content,
    .contact-info,
    .contact-form-wrapper,
    .section-label,
    .section-title,
    .section-desc,
    .testimonial-slider {
        opacity: 1;
        transform: none;
    }
}
