:root {
    --bg-color: #0a0a0c;
    --card-bg: #141418;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #00f2ea;
    /* Neon Cyan */
    --accent-secondary: #ff0055;
    /* Neon Pink/Red */
    --accent-tertiary: #7000ff;
    /* Electric Purple */
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom one */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    box-shadow: inset 0 0 20px rgba(0, 242, 234, 0.3);
    animation: breathing-glow 4s ease-in-out infinite;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    background-color: rgba(0, 242, 234, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--accent-primary);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    z-index: -1;
    transition: opacity var(--transition-speed);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 1rem 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 80px;
    /* Increased by ~30% from 60px */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 242, 234, 0.5));
}

.logo span {
    font-weight: 800;
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    /* Blue-ish gradient matching logo */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-primary);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s;
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

#orb-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    pointer-events: auto;
    opacity: 0;
    animation: orbFadeIn 2s ease forwards 0.3s;
}

#orb-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes orbFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.75);
    /* Darken video */
    z-index: 1;
    backdrop-filter: blur(3px);
    /* Liquid glass feel */
}

.hero-content {
    text-align: center;
    z-index: 3;
    /* Above video and overlay */
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.8s;
}

.hero-btns {
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.1s;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.service-list li::before {
    content: '•';
    color: var(--accent-primary);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(to top, #0a0a0c, #0f0f13);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stats-grid {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visual-box {
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.2), transparent 70%);
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.detail-item i {
    color: var(--accent-primary);
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-primary);
}

.contact-form label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: 0.3s ease all;
    pointer-events: none;
}

.contact-form input:focus~label,
.contact-form input:not(:placeholder-shown)~label,
.contact-form textarea:focus~label,
.contact-form textarea:not(:placeholder-shown)~label {
    transform: translateY(-28px);
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.block-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links i:hover {
    color: var(--accent-primary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes breathing-glow {

    0%,
    100% {
        box-shadow: inset 0 0 20px rgba(0, 242, 234, 0.2), inset 0 0 10px rgba(0, 114, 255, 0.1);
        border: 1px solid rgba(0, 242, 234, 0.1);
    }

    50% {
        box-shadow: inset 0 0 50px rgba(0, 242, 234, 0.5), inset 0 0 25px rgba(0, 114, 255, 0.3);
        border: 1px solid rgba(0, 242, 234, 0.3);
    }
}

/* Responsive */
/* Results Section (Carousel) */
.results-section {
    padding: 6rem 0;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 0;
    cursor: grab;
    scrollbar-width: none;
    /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Carousel Marquee Animation */
.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }

    /* Move half way (since we duplicated items) */
}

.carousel-item {
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Global Hover Effects */
.section-header:hover h2 {
    transform: scale(1.02);
    text-shadow: 0 0 10px rgba(0, 242, 234, 0.3);
}

.section-header:hover p {
    color: white;
}

.section-header h2,
.section-header p {
    transition: all 0.5s ease;
}

/* Reversible Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    transition: color 0.3s;
}

.stat-number:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-primary);
}

/* Work Item Enhancement */
.work-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}


/* Work Section (Masonry-ish Grid) */
.work-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #0f0f13, #0a0a0c);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.work-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 300px;
    cursor: pointer;
}

.work-item.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 624px;
    /* 300*2 + 24 gap */
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.work-item:hover::after {
    opacity: 1;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-testi 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-testi {
    0% {
        transform: translateX(calc(-50% - 1rem));
    }

    100% {
        transform: translateX(0);
    }
}

.testimonial-card img {
    width: 100%;
    aspect-ratio: 3/5;
    object-fit: cover;
    border-radius: 12px;
}



.testimonial-card {
    width: 300px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card img {
    width: 100%;
    display: block;
    height: auto;
}

/* Enhanced Buttons (Floating Widget Style) */
.btn-primary {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 242, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 242, 234, 0.4);
}

/* Advanced Cursor */
.cursor-dot {
    background-color: white;
    mix-blend-mode: difference;
}

.cursor-outline {
    border-color: rgba(255, 255, 255, 0.8);
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s;
}

body:hover .cursor-outline {
    background-color: rgba(255, 255, 255, 0.1);
}

.magnetic-btn:hover~.cursor-outline,
.magnetic-btn:hover .cursor-outline {
    transform: scale(1.5);
    background-color: white;
    border-color: transparent;
}

/* WhatsApp AI Section */
.wa-section {
    padding: 8rem 0;
    position: relative;
    background: radial-gradient(circle at top, #1a1a2e, var(--bg-color));
}

.wa-desc {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.wa-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Connecting Line */
.wa-line {
    position: absolute;
    top: 50px;
    /* Center of icon */
    left: 0;
    width: 0;
    /* Animates to 100% */
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    z-index: 0;
    transition: width 1.5s ease-in-out;
}

.wa-section.visible .wa-line {
    width: 100%;
}

.wa-step {
    flex: 1;
    text-align: center;
    z-index: 1;
    min-width: 150px;
}

/* Global Particle Canvas */


/* 3D Icon Styling */
.wa-icon-box {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
    /* Allow 3D popout */
}

.wa-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.2);
    /* Slight pop out */
    transition: transform 0.4s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.wa-step:hover .wa-icon-box {
    border-color: var(--accent-primary);
}

.wa-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.wa-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Staggered Entry Animation handles in JS via 'visible' class, 
   but we add specific float animation here */
.wa-icon-box {
    animation: float 4s ease-in-out infinite;
}

.wa-step:nth-child(even) .wa-icon-box {
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .wa-steps {
        flex-direction: column;
        align-items: center;
    }

    .wa-line {
        width: 3px;
        height: 0;
        /* Animates to 100% height */
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .wa-section.visible .wa-line {
        width: 3px;
        height: 100%;
    }

    .wa-step {
        width: 100%;
        margin-bottom: 2rem;
    }
}

/* Responsive Adjustments */
/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide by default on mobile */
    }

    .hamburger {
        display: block;
        /* Show hamburger */
        z-index: 1001;
    }

    .hero-title {
        font-size: 3rem;
    }

    #orb-container {
        width: 280px;
        height: 280px;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .stats-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .wa-steps {
        flex-direction: column;
        align-items: center;
    }

    .wa-line {
        width: 3px;
        height: 0;
        /* Animates to 100% height */
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .wa-section.visible .wa-line {
        width: 3px;
        height: 100%;
    }

    .wa-step {
        width: 100%;
        margin-bottom: 2rem;
    }

    .work-item.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }

    .carousel-item {
        width: 80vw;
    }
}