/* Custom styles for Time 4A Kut */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transitions */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9f1840, #ff748a);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 251, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(159, 24, 64, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #3a0a18;
}

nav.scrolled .nav-link {
    color: #374151;
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    position: relative;
}

/* Hero orbs animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(60px);
        animation: float 8s ease-in-out infinite;
    }

    .orb-1 {
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 116, 138, 0.4) 0%, transparent 70%);
        top: -10%;
        right: -5%;
        animation-delay: 0s;
    }

    .orb-2 {
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(159, 24, 64, 0.3) 0%, transparent 70%);
        bottom: 10%;
        left: -5%;
        animation-delay: -3s;
    }

    .orb-3 {
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, rgba(255, 180, 200, 0.3) 0%, transparent 70%);
        top: 40%;
        left: 30%;
        animation-delay: -5s;
    }

    @keyframes float {
        0%, 100% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(30px, -30px) scale(1.05); }
        66% { transform: translate(-20px, 20px) scale(0.95); }
    }
}

/* Floating geometric shapes in background */
@media (prefers-reduced-motion: no-preference) {
    .geo-shape {
        position: fixed;
        opacity: 0.04;
        pointer-events: none;
        z-index: 0;
    }

    .circle-1 {
        width: 300px;
        height: 300px;
        border: 3px solid #9f1840;
        border-radius: 50%;
        top: 15%;
        right: -80px;
        animation: spin-slow 30s linear infinite;
    }

    .circle-2 {
        width: 150px;
        height: 150px;
        background: #ff748a;
        border-radius: 50%;
        bottom: 25%;
        left: -40px;
        animation: float 10s ease-in-out infinite;
    }

    .triangle-1 {
        width: 0;
        height: 0;
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 104px solid #9f1840;
        top: 60%;
        right: 5%;
        animation: spin-slow 25s linear infinite;
    }

    .square-1 {
        width: 100px;
        height: 100px;
        border: 3px solid #ff748a;
        top: 40%;
        left: 5%;
        transform: rotate(45deg);
        animation: spin-slow 20s linear infinite;
    }

    .circle-3 {
        width: 80px;
        height: 80px;
        background: #db3a6a;
        border-radius: 50%;
        bottom: 10%;
        right: 15%;
        animation: float 12s ease-in-out infinite;
        animation-delay: -4s;
    }

    @keyframes spin-slow {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#backToTop:not(.visible) {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

/* Input focus animations */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(159, 24, 64, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9f1840, #ff748a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #821637, #ff3d5e);
}

/* Selection color */
::selection {
    background: rgba(255, 116, 138, 0.3);
    color: #3a0a18;
}

/* Mobile menu button animation */
#menuIcon,
#closeIcon {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Service card hover gradient */
.group:hover .absolute.top-0.right-0 {
    opacity: 1 !important;
}

/* Testimonial quote mark */
.relative::before {
    content: '';
}

/* Ensure all images have proper aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        word-break: break-word;
    }
}
