/* 
   ArchStudio Custom CSS
   Extending Bootstrap and Tailwind CSS defaults
*/

html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes slowZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hero Section */
.hero-img {
    animation: slowZoom 30s ease-in-out infinite;
}

.fade-up-hero {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Scroll Reveal Classes (triggered via JS) */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    visibility: visible;
}

.fade-up {
    transform: translateY(40px);
}
.reveal.active.fade-up {
    transform: translateY(0);
}

.slide-left {
    transform: translateX(50px);
}
.reveal.active.slide-left {
    transform: translateX(0);
}

.slide-right {
    transform: translateX(-50px);
}
.reveal.active.slide-right {
    transform: translateX(0);
}

.fade-in {
    transform: scale(0.95);
}
.reveal.active.fade-in {
    transform: scale(1);
}

/* Specific elements */
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); /* Accent Yellow Glow */
}

/* Navbar active state on scroll */
#navbar.scrolled {
    background-color: rgba(9, 44, 50, 0.95); /* Dark Teal */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Input Custom Styles */
.input-group-custom input:not(:placeholder-shown) + label,
.input-group-custom textarea:not(:placeholder-shown) + label {
    top: -0.875rem !important; /* -top-3.5 */
    font-size: 0.875rem !important; /* text-sm */
    color: #289895 !important; /* text-turquoise */
}

/* Form Submit Button */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #289895; /* Turquoise */
    transition: left 0.4s ease-in-out;
    z-index: 0;
}
.submit-btn:hover::before {
    left: 0;
}

/* Service Cards Custom Transition */
.service-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    box-shadow: 0 10px 30px rgba(40, 152, 149, 0.1);
}

/* Utilities needed because of Bootstrap/Tailwind overlap */
a {
    text-decoration: none;
}
