:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #3b82f6;
    /* Electric Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --border-color: #333;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', 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);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
    /* Ensure cursor is visible */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Invert logo for dark mode if it's black text */
    filter: brightness(0) invert(1);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        linear-gradient(rgba(5, 5, 5, 0.9), var(--bg-color));
    z-index: -1;
}

/* Clean grid background overlay */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.scroll-indicator span {
    width: 4px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 2px;
    margin-top: 10px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background: var(--card-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
}

.service-card h3,
.service-card p,
.service-icon,
.btn-text {
    position: relative;
    z-index: 2;
    /* Ensure content is above the hover overlay */
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* References Section */
.references {
    background-color: #000;
    overflow: hidden;
}

.references-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.references-slider-container::before,
.references-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.references-slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.references-slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.references-slider {
    display: flex;
    width: max-content;
    animation: slide 30s linear infinite;
    align-items: center;
    /* Center items vertically */
}

.ref-item {
    font-size: 1.1rem;
    /* Slightly smaller text for names under logos */
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    /* Stack logo and text */
    gap: 10px;
    /* Space between logo and text */
    align-items: center;
    justify-content: center;
}

.ref-item img {
    height: 50px;
    /* Fixed height for logos */
    width: auto;
    filter: grayscale(100%) brightness(0.8);
    /* Make logos blend in */
    transition: all 0.3s ease;
}

.ref-item:hover {
    opacity: 1;
    color: var(--text-main);
}

.ref-item:hover img {
    filter: grayscale(0%) brightness(1);
    /* Restore color on hover */
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    flex-direction: column;
    /* Stack icon and text */
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item span {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        padding: 0 15px;
    }

    .nav {
        display: none;
    }

    /* Simplified mobile menu hiding for now */
    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-stats {
        margin-top: 40px;
    }

    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Button Text Style */
.btn-text {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: #fff;
    border-bottom-color: var(--accent);
    letter-spacing: 0.5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.modal-body {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-body ul {
    text-align: left;
    display: inline-block;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
    list-style-type: disc;
    color: var(--text-main);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.social-btn:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.social-btn span {
    position: relative;
    z-index: 1;
}