/* Semoorg */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
color:#A58A53;
}

.text-xl, .text-2xl {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Navigation */
.nav-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mobile-nav-link:hover {
    opacity: 0.7;
}

/* Hero Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

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

/* Scroll Fade Animation */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service Cards */
.service-card {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: #f8f8f8;
    transform: translateX(8px);
}

@media (min-width: 1024px) {
    .service-card:last-child {
        padding-bottom: 30rem;
    }
}

/* Services Image Stack (desktop crossfade) */
#services-image-stack .services-image-wrap {
    position: relative;
    width: 100%;
    height: 600px;
}

#services-image-stack .services-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0 !important;
    transition: opacity 0.6s ease !important;
    transform: none !important;
}

#services-image-stack .services-img.active {
    opacity: 1 !important;
}

/* Work Stack Container - Sticky Overlap Effect */
.work-stack-container {
    position: relative;
}

.work-item {
    position: sticky;
    top: 80px;
    padding: 4rem 0;
    z-index: calc(var(--index));
}

.work-item-inner {
    padding: 4rem;
    border-radius: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .work-item {
        position: relative;
        top: auto;
    }

    .work-item-inner {
        padding: 2rem;
    }
}

/* Testimonial Scrolling */
.testimonial-scroll {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    width: fit-content;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    min-width: 400px;
    max-width: 400px;
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
    }
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

details[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-question:hover {
    background: #f8f8f8;
}

.faq-answer {
    padding: 1rem 1.5rem 1rem;
    color: #666;
    line-height: 1.6;
}

/* Sticky Image in Services */
.sticky {
    position: sticky;
}

/* Button Hover Effects */
a[href="#contact"] svg {
    transition: transform 0.3s ease;
}

a[href="#contact"]:hover svg {
    transform: translateX(4px);
}

/* Form Inputs */
input:focus,
textarea:focus {
    border-color: #000;
    outline: none;
}

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

.scroll-fade img:hover {
    transform: scale(1.02);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .backdrop-blur-lg {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Loading State for Images */
img {
    background: #f0f0f0;
}

img.logo {
	background:none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .sticky {
        position: relative !important;
    }
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Performance Optimization */
.testimonial-track {
    will-change: transform;
}

.scroll-fade {
    will-change: opacity, transform;
}

/* Print Styles */
@media print {
    nav,
    .testimonial-scroll,
    footer {
        display: none;
    }
}
