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

/* ===== HERO ANIMATIONS ===== */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-desc {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-btn {
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

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

/* Scroll indicator */
.scroll-indicator {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: 0;
        opacity: 1;
    }
    50% {
        top: 60%;
        opacity: 0.5;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

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

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

/* ===== SERVICE CARDS ===== */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

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

/* ===== GALLERY ITEMS ===== */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== ABOUT IMAGES ===== */
.about-img-main {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.about-img-accent {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease 0.2s;
}

.about-img-main.visible,
.about-img-accent.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
    transform: translate-x(0);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== NAVBAR SCROLL ===== */
.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

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

::-webkit-scrollbar-track {
    background: #2D2D2D;
}

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

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

/* ===== SELECTION ===== */
::selection {
    background: #FF6B5B;
    color: white;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .floating-card {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}
