:root {
    --primary: #9c27b0;
    /* Purple */
    --secondary: #7b1fa2;
    /* Darker purple */
    --dark: #121212;
    /* Dark background */
    --darker: #000000;
    /* Even darker for some elements */
    --light: #f8f9fa;
    --blue: #2196F3;
    --pink: #E91E63;
    --purple: #9C27B0;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: white;
    background-color: var(--dark);
    position: relative;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--darker);
}

/* Main Content */
main {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 20px 0;
    background-color: transparent;

}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary) !important;
    position: relative;
}

navbar-brand::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--blue), var(--pink), var(--purple));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.navbar-brand:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    color: white !important;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--pink), var(--purple));
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    animation: pulse 8s linear infinite;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #fff, #ddd, #fff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--primary);
    transform: translateX(-50%) scale(1.2);
}

/* RGB Button with Enhanced Effects */
.hero-btn {
    background: linear-gradient(90deg, var(--blue), var(--pink), var(--purple), var(--blue));
    background-size: 300% 300%;
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: gradientBG 4s ease infinite, pulseGlow 2s ease infinite alternate;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--pink), var(--purple), var(--blue));
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: gradientBG 4s ease infinite;
    border-radius: 50px;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(156, 39, 176, 0.5);
}

.hero-btn:hover::before {
    opacity: 1;
    filter: blur(10px);
}

.hero-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Services */
.services {
    padding: 100px 0;
}

/* Updated Service Cards */
.service-card {
    background: transparent;
    border-radius: 15px;
    padding: 30px;
    margin: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
}

/* Portfolio */
.portfolio {
    padding: 100px 0;
}

.portfolio-item {
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: all 0.5s ease;
    overflow: hidden;
    border: 2px solid;
    animation: borderRainbow 4s linear infinite;
}

.portfolio-item:hover {
    transform: scale(1);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(156, 39, 176, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.1) 0%, transparent 70%);
    animation: pulse 8s linear infinite reverse;
    z-index: -1;
}

.testimonial-card {
    background: var(--darker);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 15px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid;
    animation: borderRainbow 4s linear infinite;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-card:after {
    content: '"';
    font-size: 5rem;
    color: rgba(156, 39, 176, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.read-more-link {
    color: var(--primary);
    cursor: pointer;
}

.client-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover .client-img {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--pink);
}

/* CTA */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s linear infinite;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Animations */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes pulse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(233, 30, 99, 0.7);
    }

    100% {
        box-shadow: 0 0 15px rgba(156, 39, 176, 0.6);
    }
}

@keyframes borderRainbow {
    0% {
        border-color: var(--blue);
        box-shadow: 0 0 10px var(--blue);
    }

    50% {
        border-color: var(--pink);
        box-shadow: 0 0 10px var(--pink);
    }

    100% {
        border-color: var(--purple);
        box-shadow: 0 0 10px var(--purple);
    }
}

/* Utility Classes */
.floating {
    animation: float 6s ease-in-out infinite;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: #0ff;
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: #f0f;
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Mouse follower effect */
.mouse-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.7), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .service-card {
        margin: 10px 0;
    }
}