/* Custom Styles for 2dive4u */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(253, 242, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(131, 18, 58, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #83123a;
}

/* Mobile menu */
.mobile-link {
    transition: opacity 0.3s ease;
}

/* Hero animations */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-circle-1 {
    opacity: 0;
    animation: floatSlow 8s ease-in-out infinite;
}

.hero-circle-2 {
    opacity: 0;
    animation: floatSlow 6s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.hero-rect-1 {
    opacity: 0;
    animation: floatSlow 7s ease-in-out infinite;
    animation-delay: 2s;
}

.hero-triangle {
    opacity: 0;
    animation: floatSlow 9s ease-in-out infinite reverse;
    animation-delay: 0.5s;
}

.hero-dots {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

.hero-image-wrapper {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-float-card {
    animation: floatCard 4s ease-in-out infinite;
}

.hero-float-badge {
    animation: floatBadge 5s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

/* Service cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1).visible { animation-delay: 0.1s; }
.service-card:nth-child(2).visible { animation-delay: 0.2s; }
.service-card:nth-child(3).visible { animation-delay: 0.3s; }
.service-card:nth-child(4).visible { animation-delay: 0.4s; }
.service-card:nth-child(5).visible { animation-delay: 0.5s; }
.service-card:nth-child(6).visible { animation-delay: 0.6s; }

/* Section labels */
.section-label {
    opacity: 0;
    transform: translateY(20px);
}

.section-label.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* About images */
.about-img-wrapper {
    opacity: 0;
    transform: scale(0.95);
}

.about-img-wrapper.visible {
    animation: scaleIn 0.8s ease forwards;
}

.about-float-1 {
    opacity: 0;
    transform: translateX(-20px);
}

.about-float-1.visible {
    animation: slideInLeft 0.6s ease forwards;
    animation-delay: 0.3s;
}

.about-float-2 {
    opacity: 0;
    transform: translateX(20px);
}

.about-float-2.visible {
    animation: slideInRight 0.6s ease forwards;
    animation-delay: 0.3s;
}

/* Marquee */
.marquee-track {
    animation: marquee 30s linear infinite;
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

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

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

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

/* Scroll reveal base state - content always visible by default */
.reveal {
    opacity: 1;
    transform: none;
}

/* Reduced motion preference */
@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;
    }
    
    .marquee-track {
        animation: none;
    }
}

/* Mobile menu active state */
#mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

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