:root {
    --primary-color: #3B82F6;
    --secondary-color: #6366F1;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: linear-gradient(to right, #3B82F6, #6366F1);
    font-family: 'Inter', sans-serif;
    color: white;
}

html,
body {
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
    overflow-y: auto;
    /* Allows vertical scrolling */
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Button Styles */
.morphing-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.morphing-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.morphing-button:hover::before {
    left: 100%;
}

.herobutton {
    border: 1px solid rgb(228, 133, 149);
}

/* Text Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Project Card Styles */
.project-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-card img {
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* Project Slider Styles */
.project-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 256px;
}

.project-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.project-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.project-card:hover .slider-btn {
    opacity: 0.7;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1 !important;
}

/* Service Card Styles */
.service-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        padding: 0.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        transition: right 0.5s ease;
        z-index: 40;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        margin: 0.75rem 0;
        font-size: 1rem;
    }

    .hero-section {
        background-size: cover;
        background-position: center;
    }
}

/* Custom Cursor */
.cursor-follow {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.3);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Footer Styles */
.footer-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-icon:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

/* Testimonial Carousel */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    flex: 0 0 100%;
    padding: 0 1rem;
}

.testimonial-controls {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.testimonial-controls button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
}

.testimonial-controls button.active {
    background-color: #3B82F6;
}

.testimonial-nav-controls button {
    transition: background-color 0.3s ease;
}

.testimonial-nav-controls button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Sticky WhatsApp Icon Styles */
#whatsapp-sticky {
    transition: transform 0.3s ease;
}

#whatsapp-message {
    animation: fadeIn 0.3s ease;
}

/* Back to Top Button */
#back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s ease;
}

/* Page Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3B82F6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Feature Card Styles */
.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.icon-container {
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.feature-card:hover .icon-container {
    transform: rotateY(180deg);
}

/* FAQ Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    display: block;
}

/* Cookie Consent Banner */
#cookie-consent {
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

#cookie-consent.show {
    transform: translateY(0);
}