:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff6b8b;
    --accent2: #00d2ff;
    --dark: #0f0f23;
    --darker: #0a0a18;
    --light: #f0f2ff;
    --neon: #00ff9d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: var(--darker);
    overflow-x: hidden;
    position: relative;
    padding-top: 90px;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Animated Background Elements */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px white;
    animation: shoot 8s infinite;
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(100vh);
        opacity: 0;
    }
}

/* Navbar with Animated Logo */
.navbar {
    background-color: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(106, 17, 203, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.5s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(10, 10, 24, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a:hover {
    color: var(--accent2);
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-right: 15px;
    animation: rotate 20s linear infinite, glow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--neon));
    z-index: -1;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.7;
}

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

@keyframes glow {
    from { box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary); }
    to { box-shadow: 0 0 20px var(--secondary), 0 0 40px var(--secondary); }
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

.nav-link:hover {
    color: white !important;
}

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

.navbar-toggler {
    border: none;
    padding: 8px;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28106, 17, 203, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.tagline {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--accent2), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease infinite, text-glow 2s ease-in-out infinite alternate;
    background-size: 200% 200%;
}

@keyframes text-glow {
    from { text-shadow: 0 0 10px rgba(0, 210, 255, 0.3); }
    to { text-shadow: 0 0 20px rgba(0, 210, 255, 0.7), 0 0 30px rgba(0, 210, 255, 0.5); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 40px;
    max-width: 700px;
}

/* Animated Buttons */
.btn-neon {
    background: transparent;
    color: white;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-neon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.4);
}

.btn-neon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent2));
    z-index: -2;
    border-radius: 10px;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-neon:hover::after {
    opacity: 0.7;
}

/* Animated Border Button */
.btn-border-anim {
    background: transparent;
    color: white;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin: 0 10px 10px 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-border-anim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--neon));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    0% { background: linear-gradient(0deg, var(--primary), var(--secondary), var(--accent), var(--neon)); }
    25% { background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--neon)); }
    50% { background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent), var(--neon)); }
    75% { background: linear-gradient(270deg, var(--primary), var(--secondary), var(--accent), var(--neon)); }
    100% { background: linear-gradient(360deg, var(--primary), var(--secondary), var(--accent), var(--neon)); }
}

.btn-border-anim:hover {
    transform: translateY(-5px);
    background: rgba(106, 17, 203, 0.1);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: rgba(15, 15, 35, 0.5);
    position: relative;
    overflow: hidden;
}

.stats-container {
    background: rgba(10, 10, 24, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(106, 17, 203, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: auto;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent2));
}

.stat-box {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(106, 17, 203, 0.1), transparent);
    z-index: -1;
    border-radius: 15px;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.2rem;
    color: #aaa;
    font-weight: 500;
}

/* Animated Cards */
.services-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

.section-title p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(106, 17, 203, 0.2);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(106, 17, 203, 0.4);
    border-color: rgba(106, 17, 203, 0.6);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(106, 17, 203, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.service-card p {
    color: #bbb;
    margin-bottom: 25px;
}

/* Tool Categories Section */
.categories-section {
    padding: 100px 0;
    background: rgba(10, 10, 24, 0.7);
}

.category-item {
    background: rgba(15, 15, 35, 0.7);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(106, 17, 203, 0.2);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(106, 17, 203, 0.3);
    border-color: var(--primary);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer */
.footer {
    background: rgba(5, 5, 15, 0.9);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(106, 17, 203, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent2));
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo .logo {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-right: 15px;
}

.footer-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-tagline {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 20px;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    color: #bbb;
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
}

.footer-links h5 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-links ul {
    list-style-type: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--accent2);
    padding-left: 10px;
}

.footer-links a::before {
    content: '▸';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent2);
}

.footer-links a:hover::before {
    opacity: 1;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(106, 17, 203, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.4);
}

.social-icons a:hover::before {
    transform: translateY(0);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

.copyright a {
    color: var(--accent2);
    text-decoration: none;
}

/* NEWSLETTER FIX – PERFECT ALIGNMENT */
.newsletter-input {
    display: flex;
    width: 100%;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-box input {
    flex: 1;
    height: 50px;
    padding: 0 15px;
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(106,17,203,0.4);
    border-right: none;
    color: white;
    font-size: 0.95rem;
    line-height: 50px;
    display: flex;
    align-items: center;
}

.newsletter-input .btn-neon {
    height: 50px !important;
    padding: 0 30px !important;
    border-radius: 0 8px 8px 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    line-height: 50px;
}

/* ================== RESPONSIVE STYLES ================== */

/* Desktop navbar height adjustment */
@media (min-width: 992px) {
    body {
        padding-top: 95px;
    }
}

/* Mobile navbar height adjustment */
@media (max-width: 991px) {
    body {
        padding-top: 110px;
    }
}

/* Mobile Responsive Fix for Stats */
@media (max-width: 768px) {
    .stats-container {
        padding: 25px 15px;
    }

    .stat-box {
        padding: 20px 5px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-text {
        font-size: 14px;
    }
    
    /* Newsletter mobile fix */
    .newsletter-input {
        flex-direction: column;
        border-radius: 8px;
    }

    .newsletter-box input {
        width: 100%;
        height: 48px;
        border-radius: 8px !important;
        border-right: 1px solid rgba(106,17,203,0.4);
        margin-bottom: 10px;
    }

    .newsletter-input .btn-neon {
        width: 100%;
        height: 48px !important;
        border-radius: 8px !important;
    }
    
    /* Footer responsive */
    .footer {
        text-align: center;
        padding: 50px 20px;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 25px;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-links {
        text-align: center;
        margin-top: 30px;
    }

    .footer-links h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a {
        padding-left: 0 !important;
    }

    .footer-links a::before {
        display: none;
    }

    .social-icons {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-icons a {
        margin-right: 0;
    }
    
    /* General responsive */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .stats-section, .services-section, .categories-section {
        padding: 80px 0;
    }
    
    .navbar-collapse {
        background-color: rgba(10, 10, 24, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

/* Extra Small Screens */
@media (max-width: 500px) {
    .stat-box {
        padding: 15px 5px;
    }

    .stat-number {
        font-size: 26px;
    }
}

/* Tablet responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-neon, .btn-border-anim {
        padding: 10px 25px;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}