:root {
    --primary: #0E0E10;
    --secondary: #FFFFFF;
    --accent1: #7B2FF7;
    --accent2: #00FFD1;
    --neutral: #B2B2B2;
    --dark-bg: #1a1a2e;
    --gradient: linear-gradient(135deg, #7B2FF7 0%, #00FFD1 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--secondary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

html {
    scroll-behavior: smooth;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: rgba(14, 14, 16, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(123, 47, 247, 0.3);
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.navbar-brand .brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent2);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link:hover {
    color: var(--accent2) !important;
}

.btn-accent {
    background: var(--gradient);
    color: var(--secondary);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(123, 47, 247, 0.4);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-modern {
    position: relative;
    background: var(--primary);
    overflow: hidden;
    padding-top: 80px;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-modern .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(123, 47, 247, 0.1);
    border: 1px solid var(--accent1);
    border-radius: 50px;
    color: var(--accent2);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--neutral);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary-gradient {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(123, 47, 247, 0.4);
    color: white;
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent2);
    color: var(--accent2);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent2);
    margin-bottom: 0.3rem;
}

.stat-item p {
    color: var(--neutral);
    margin: 0;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: float 6s ease-in-out infinite;
}

.visual-card i {
    font-size: 1.5rem;
    color: var(--accent2);
}

.card-code { top: 10%; left: 0; }
.card-speed { top: 40%; right: 0; animation-delay: 1s; }
.card-secure { bottom: 20%; left: 10%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-main-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent2);
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =============================================
   SECTIONS
   ============================================= */
.section-services,
.section-portfolio,
.section-testimonials {
    padding: 5rem 0;
    background: var(--primary);
}

.section-portfolio {
    background: var(--dark-bg);
}

.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(123, 47, 247, 0.1);
    border: 1px solid var(--accent1);
    border-radius: 50px;
    color: var(--accent1);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--neutral);
    font-size: 1.1rem;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(123, 47, 247, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--neutral);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--accent2);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* =============================================
   PORTFOLIO CARDS
   ============================================= */
.portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.portfolio-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.2), rgba(0, 255, 209, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent2);
    opacity: 0.3;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 14, 16, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.view-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.1);
    color: white;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    color: var(--accent2);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.portfolio-content p {
    color: var(--neutral);
    margin: 0;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-carousel {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -25px;
    left: 3rem;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img,
.author-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent2);
}

.author-placeholder {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.author-info h4 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem 0;
}

.author-info p {
    color: var(--neutral);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.rating i {
    color: #FFD700;
    font-size: 0.9rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev { left: -70px; }
.carousel-control-next { right: -70px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent1);
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.carousel-indicators button.active {
    background: var(--accent2);
}

/* =============================================
   CTA SECTION
   ============================================= */
.section-cta {
    padding: 5rem 0;
    background: var(--primary);
}

.cta-box {
    background: var(--gradient);
    border-radius: 25px;
    padding: 4rem 3rem;
}

.cta-box h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    color: var(--accent1);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--accent1);
}

/* =============================================
   MODERN COMPACT FOOTER
   ============================================= */
.footer-modern {
    background: linear-gradient(180deg, rgba(14, 14, 16, 0.95) 0%, rgba(10, 10, 12, 1) 100%);
    border-top: 1px solid rgba(123, 47, 247, 0.2);
    position: relative;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent1), var(--accent2), transparent);
}

.footer-content {
    padding: 3rem 0 1.5rem;
}

/* Brand Section */
.footer-brand-wrapper {
    padding-right: 1rem;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-logo {
    max-height: 40px;
    width: auto;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.footer-brand-name {
    font-size: 1.4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.footer-desc {
    color: var(--neutral);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Newsletter */
.footer-newsletter {
    margin-bottom: 1.5rem;
}

.newsletter-title {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input-wrapper input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent1);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input-wrapper button {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(123, 47, 247, 0.4);
}

.newsletter-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.newsletter-message .success {
    color: var(--accent2);
}

.newsletter-message .error {
    color: #ff6b6b;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links {
    margin-bottom: 1rem;
}

.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.6rem;
}

.footer-links ul li a {
    color: var(--neutral);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--accent2);
    padding-left: 5px;
}

/* Contact Info */
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-contact ul li i {
    width: 20px;
    color: var(--accent2);
    margin-top: 2px;
}

.footer-contact ul li span,
.footer-contact ul li a {
    color: var(--neutral);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact ul li a:hover {
    color: var(--accent2);
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: var(--neutral);
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--neutral);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent2);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.2);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(123, 47, 247, 0.3);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 47, 247, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand-wrapper {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 769px) {
    .footer-legal {
        justify-content: flex-end;
    }
}



/* Testimonial Carousel Fixes */
.testimonial-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 10;
}

.carousel-control-prev {
    left: -70px;
}

.carousel-control-next {
    right: -70px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent1);
    border-color: var(--accent1);
}

.carousel-control-prev i,
.carousel-control-next i {
    color: var(--accent2);
    font-size: 1.2rem;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    color: white;
}

.carousel-indicators {
    bottom: -50px;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: var(--accent2);
    width: 30px;
    border-radius: 5px;
}

/* Responsive Carousel */
@media (max-width: 992px) {
    .carousel-control-prev {
        left: -10px;
    }
    
    .carousel-control-next {
        right: -10px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 1rem;
    }
}
