:root {
    --primary: #4facfe;
    --secondary: #00f2fe;
    --bg: #0b0e14;
    --surface: #161b22;
    --text: #e6edf3;
    --mono: 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Grid Background */
.tech-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 172, 254, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 172, 254, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
}

.section-title {
    font-size: 3rem;
    margin: 6rem 0 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

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

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 1;
    border: 1px solid rgba(79, 172, 254, 0.3);
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: var(--mono);
    font-size: 0.8rem;
}

.dropdown-content a:hover {
    background-color: rgba(79, 172, 254, 0.1);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--surface);
    z-index: 2000;
    padding: 2rem;
    transition: var(--transition);
    border-left: 1px solid var(--primary);
}

.drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.close-drawer {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-link {
    color: var(--text);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 1.2rem;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero h1 {
    font-size: 7rem;
    line-height: 1;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: 1.5rem;
    max-width: 600px;
    color: #888;
}

.code-badge {
    font-family: var(--mono);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    color: var(--primary);
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 2rem;
}

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

.service-card {
    background: var(--surface);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: #888;
}

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

.project-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s;
}

.project-card:hover::before {
    height: 100%;
}

.project-card:hover {
    transform: translateX(10px);
    border-color: rgba(79, 172, 254, 0.3);
}

.project-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 300px;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(1) brightness(0.8);
}

.gallery-item:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}

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

.pricing-card {
    background: var(--surface);
    padding: 3rem 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.2);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 2rem;
}

.pricing-header h3 {
    font-family: var(--mono);
    margin-bottom: 2rem;
    color: #888;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: #555;
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pricing-features i {
    color: var(--primary);
}

.pricing-features li.disabled {
    color: #444;
}

.pricing-features li.disabled i {
    color: #444;
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track-container {
    padding: 2rem 0;
}

.carousel-track {
    list-style: none;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 2rem;
    opacity: 0;
    transition: opacity 0.5s;
}

.carousel-slide.active {
    opacity: 1;
}

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

.testimonial-content p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    color: var(--primary);
    font-family: var(--mono);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: none;
    cursor: pointer;
}

.carousel-indicator.active {
    background: var(--primary);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--mono);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.social-links a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--mono);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--surface);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    padding: 1rem;
    color: var(--text);
    font-family: var(--mono);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface);
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid var(--primary);
    width: 50%;
    max-width: 600px;
    border-radius: 1rem;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary);
}

/* Buttons */
.btn-tech {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 1rem 2.5rem;
    font-family: var(--mono);
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    font-weight: 700;
}

.btn-tech:hover {
    background: var(--secondary);
    color: var(--bg);
    box-shadow: 0 0 30px var(--secondary);
}

.btn-sm {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
    padding: 0.5rem 1rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.btn-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    margin-top: 10rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: #666;
    max-width: 300px;
}

.footer-links h4,
.footer-status h4 {
    margin-bottom: 2rem;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--primary);
}

.footer-links a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

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

.status-indicator {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #888;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.online {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: #444;
    font-family: var(--mono);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 90%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* New Sections Styling */

/* Protocols Section */
.protocols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.protocol-card {
    display: flex;
    gap: 2rem;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(79, 172, 254, 0.1);
    transition: var(--transition);
}

.protocol-card:hover {
    border-color: var(--primary);
    background: rgba(79, 172, 254, 0.05);
}

.protocol-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--primary);
    opacity: 0.5;
}

.protocol-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-family: var(--mono);
}

.protocol-content p {
    color: #888;
    font-size: 0.95rem;
}

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

.faq-item {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--text);
}

.faq-answer {
    padding: 0 2rem 2rem;
    display: none;
    color: #888;
}

.faq-item:hover .faq-answer {
    display: block;
}

.faq-question i {
    transition: var(--transition);
    color: var(--secondary);
}

.faq-item:hover .faq-question i {
    transform: rotate(45deg);
}