:root {
    /* Color Palette */
    --bg-main: #020402; /* Deep hacker black */
    --bg-secondary: #080f0a; /* Cyber dark green-black */
    --text-main: #f0fff4; /* Mint white */
    --text-secondary: #7fa685; /* Terminal green-gray */
    --accent-neon: #00ff66; /* Matrix Neon Green */
    --accent-cyan: #10b981; /* Terminal Emerald Green */
    --glass-bg: rgba(0, 255, 102, 0.02);
    --glass-border: rgba(0, 255, 102, 0.1);
    
    /* Layout */
    --container-width: 1200px;
    --nav-height: 80px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.accent {
    color: var(--accent-neon);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-neon), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-neon), #065f46);
    color: #020402;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 102, 0.6), 0 0 15px rgba(16, 185, 129, 0.3);
    background: linear-gradient(90deg, #34d399, var(--accent-cyan));
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--accent-neon);
    color: white;
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background: var(--accent-neon);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
    color: #020402;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
    padding: 0.3rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-neon), var(--accent-cyan));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

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

.nav-links .btn-outline {
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.specialization-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.spec-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.spec-badge:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 102, 0.08);
    transform: translateY(-2px);
}

.spec-badge svg {
    color: var(--accent-cyan);
}

.spec-tag {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 0 30px rgba(0, 255, 102, 0.4));
    animation: float 6s ease-in-out infinite;
}

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

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    max-width: 100vw;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.12) 0%, rgba(2, 4, 2, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Sections General */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 102, 0.05);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15), 0 0 15px rgba(0, 255, 102, 0.1);
}

.service-icon {
    color: var(--accent-neon);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 30px rgba(0, 255, 102, 0.15);
}

.portfolio-img {
    height: 200px;
    background: #080f0a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.08);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact */
.contact-card {
    padding: 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(0,255,102,0.05) 100%);
}

.contact-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* About Us */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    padding: 2rem 1.5rem;
    text-align: center;
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem;
    position: relative;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.client-info h4 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.client-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Contact Form */
.contact-form {
    margin-top: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Custom Cursor */
@media (pointer: fine) {
    body, a, button, input, textarea {
        cursor: none;
    }
}

.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

.cursor.hovering {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        height: 350px !important;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 2rem;
        justify-content: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 2rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .contact-card {
        padding: 2rem 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text h2 {
        text-align: center !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
