@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom font styling */
body {
    font-family: 'Open Sans', sans-serif;
    @apply bg-gray-950 text-white;
}
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
}

/* Parallax effect for hero */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu slide-in */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    @apply bg-gradient-to-b from-red-500 to-black text-white py-4 absolute w-full;
}
#mobile-menu.open {
    transform: translateX(0);
}

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonial hover effect */
.testimonial-card:hover {
    background-color: #1f2937; /* gray-800 */
}

/* Testimonial dots */
.dot {
    width: 12px;
    height: 12px;
    background-color: #4b5563; /* gray-600 */
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dot.active {
    background-color: #ef4444; /* red-500 */
}
.dot:hover {
    background-color: #f87171; /* red-400 */
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3); /* red-500 with 30% opacity */
}

/* Contact section map iframe */
#contact iframe {
    @apply border-2 border-gray-700;
}

/* Gradient styles for header and footer */
nav {
    @apply bg-gradient-to-b from-red-500 to-black text-white py-4 sticky top-0 z-20 shadow-lg;
}

footer {
    @apply bg-gradient-to-t from-red-500 to-black py-10 text-white;
}

/* Smooth scroll behavior */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* General link styles */
a {
    @apply text-red-500 hover:text-red-300 transition;
}

/* Section styles */
#about {
    @apply bg-gray-900;
}

#services {
    @apply bg-black;
}

#faq {
    @apply bg-gray-800;
}

#contact {
    @apply bg-black;
}