:root {
    --bg-color: #050505;
    --primary-neon: #00f3ff;
    --secondary-neon: #bc13fe;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    background: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon), 0 0 20px var(--primary-neon);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: screen;
}

/* Interactive Cursor States */
.cursor.active {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--primary-neon);
}

/* Canvas Background */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary-neon);
}

.logo span {
    color: var(--primary-neon);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 8px var(--primary-neon);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.glitch {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary-neon), -0.025em -0.05em 0 var(--secondary-neon),
                 0.025em 0.05em 0 #ff00ff;
    animation: glitch 500ms infinite;
    margin-bottom: 20px;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--primary-neon), -0.05em -0.025em 0 var(--secondary-neon),
                     -0.025em 0.05em 0 #ff00ff;
    }
    14% {
        text-shadow: 0.05em 0 0 var(--primary-neon), -0.05em -0.025em 0 var(--secondary-neon),
                     -0.025em 0.05em 0 #ff00ff;
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--primary-neon), 0.025em 0.025em 0 var(--secondary-neon),
                     -0.05em -0.05em 0 #ff00ff;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--primary-neon), 0.025em 0.025em 0 var(--secondary-neon),
                     -0.05em -0.05em 0 #ff00ff;
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--primary-neon), 0.05em 0 0 var(--secondary-neon),
                     0 -0.05em 0 #ff00ff;
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--primary-neon), 0.05em 0 0 var(--secondary-neon),
                     0 -0.05em 0 #ff00ff;
    }
    100% {
        text-shadow: -0.025em 0 0 var(--primary-neon), -0.025em -0.025em 0 var(--secondary-neon),
                     -0.025em -0.05em 0 #ff00ff;
    }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buttons */
.neon-btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-neon);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    border: 2px solid var(--primary-neon);
    border-radius: 5px;
    position: relative;
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary-neon) inset, 0 0 10px var(--primary-neon);
    background: transparent;
}

.neon-btn:hover {
    background: var(--primary-neon);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-neon), 0 0 40px var(--primary-neon);
}

/* Sections Common */
section {
    padding: 100px 5%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.section-title span {
    color: var(--secondary-neon);
    text-shadow: 0 0 15px var(--secondary-neon);
}

/* About Section */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-left: 2px solid var(--primary-neon);
    border-right: 2px solid var(--secondary-neon);
}

.glass-panel p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Features Section */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-neon));
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.2);
    border-color: var(--primary-neon);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Projects Section */
.projects-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.project-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(188, 19, 254, 0.3);
    border-radius: 15px;
    overflow: hidden;
    width: 350px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    /* No transition on transform for smooth JS tilting */
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--secondary-neon);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.neon-link {
    color: var(--secondary-neon);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

.neon-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-neon);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--secondary-neon);
}

.neon-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.neon-link:hover {
    text-shadow: 0 0 8px var(--secondary-neon);
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-neon);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 10px var(--primary-neon);
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    width: 100%;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-neon);
    border-radius: 50%;
    top: 20px;
    box-shadow: 0 0 15px var(--secondary-neon), 0 0 30px var(--secondary-neon);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(188, 19, 254, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary-neon);
}

/* Testimonials Section */
.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.testimonial-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    border: 2px solid var(--primary-neon);
}

.author h4 {
    color: var(--text-main);
    margin-bottom: 5px;
}

.author span {
    color: var(--secondary-neon);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item.active {
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.faq-toggle {
    color: var(--primary-neon);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-neon);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 200px; /* Enough for content */
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Inner Pages Styles */
.page-content {
    padding-top: 120px;
    min-height: calc(100vh - 80px);
}

.project-header {
    text-align: center;
    padding: 0 20px 40px 20px;
}

.project-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.tab-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.tab-link:hover, .tab-link.active {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3) inset, 0 0 10px rgba(0, 243, 255, 0.3);
}

.content-section {
    padding: 0 5% 100px 5%;
}

.text-content h2 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 2rem;
}

.text-content h3 {
    color: var(--primary-neon);
    margin-top: 30px;
    margin-bottom: 15px;
}

.text-content p {
    margin-bottom: 15px;
}

.tech-list {
    list-style: none;
    margin-bottom: 30px;
}

.tech-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.tech-list li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--secondary-neon);
    font-size: 0.8rem;
    top: 3px;
}

.tech-list strong {
    color: var(--primary-neon);
}

/* Stats & Cases Grid */
.stats-grid, .cases-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    width: 200px;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary-neon);
    margin: 0 0 10px 0;
}

.case-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(188, 19, 254, 0.3);
    border-radius: 10px;
    padding: 30px;
    width: 320px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.case-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.case-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.case-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.neon-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-muted);
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus,
.input-group input:valid {
    border-bottom-color: var(--primary-neon);
    box-shadow: 0 5px 10px -5px var(--primary-neon);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -20px;
    left: 0;
    font-size: 0.9rem;
    color: var(--primary-neon);
    text-shadow: 0 0 5px var(--primary-neon);
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
    border-color: var(--primary-neon);
}

.pricing-card.popular {
    border-color: var(--secondary-neon);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 40px rgba(188, 19, 254, 0.4);
}

.pricing-card h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-neon);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.pricing-card.popular .price {
    color: var(--secondary-neon);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-neon);
    margin-right: 10px;
    font-weight: bold;
}

.pricing-card.popular .pricing-features li::before {
    color: var(--secondary-neon);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
    border-color: var(--primary-neon);
}

.blog-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--primary-neon);
    margin-bottom: 10px;
    display: block;
    font-family: var(--font-heading);
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.8);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .glitch {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .glass-panel {
        padding: 20px;
    }
    
    /* Timeline Mobile */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 21px;
    }
}
