:root {
    --primary-dark: rgb(0, 23, 63);
    --primary-blue: #1f64ff;
    --dark-blue: #00173f;
    --darker-blue: #000a1f;
    --light-bg: #0a0f1b;
    --card-bg: #0f1823;
    --accent-green: #6dffb6;
    --text-light: #ffffff;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.1);
    --border-accent: rgba(31, 100, 255, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--darker-blue);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 10, 31, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--accent-green) !important;
    border: 1px solid var(--accent-green);
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-nav:hover {
    background: var(--accent-green);
    color: var(--darker-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(109, 255, 182, 0.2);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--darker-blue) 0%, var(--dark-blue) 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('static/images/pattern-cubes.png');
    background-size: auto;
    background-repeat: repeat;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -10px); }
    66% { transform: translate(-10px, 10px); }
}

/* Natural masonry tiling effect */
.hero-pattern,
.platforms-pattern,
.team-pattern {
    background-position: 0 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--darker-blue);
    border: 1px solid var(--accent-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(109, 255, 182, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn-outline:hover {
    background: transparent;
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(109, 255, 182, 0.1);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #050a14 !important;
    background-image: none !important;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 200;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-accent);
    background: rgba(31, 100, 255, 0.03);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--primary-blue);
    opacity: 0.3;
    z-index: -1;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-green);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* Platforms Section */
.platforms {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.platforms-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('static/images/pattern-cubes.png');
    background-size: auto;
    background-repeat: repeat;
    opacity: 0.12;
    mix-blend-mode: screen;
}

.text-white {
    color: white;
}

.text-white p {
    color: rgba(255, 255, 255, 0.9);
}

.platforms-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.platform-group h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.platform-tags span {
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platform-tags span:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(109, 255, 182, 0.1);
}

/* Expertise Section */
.expertise {
    padding: 100px 0;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.expertise-text h2 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 200;
    letter-spacing: -0.5px;
}

.lead {
    font-size: 1.25rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.expertise-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
}

.expertise-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat h3 {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 0.25rem;
    font-weight: 200;
}

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

.expertise-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.feature::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
    border-color: var(--border-accent);
}

.feature:hover::after {
    transform: scaleY(1);
}

.feature svg {
    width: 40px;
    height: 40px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.feature h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

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

/* Team Section */
.team {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--darker-blue) 0%, var(--dark-blue) 100%);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.team-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('static/images/pattern-cubes.png');
    background-size: auto;
    background-repeat: repeat;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.team-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.team-description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.team-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit {
    padding: 2.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(109, 255, 182, 0.05));
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.benefit:hover {
    transform: translateY(-8px);
    border-color: var(--accent-green);
}

.benefit:hover::before {
    transform: translateY(0);
}

.benefit h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.benefit p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(109, 255, 182, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 200;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Footer */
.footer {
    background: var(--darker-blue);
    color: white;
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-offices h3 {
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.office h4 {
    color: var(--accent-green);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.office p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

.footer-bottom {
    position: relative;
    padding-top: 100px;
    text-align: center;
    background: var(--darker-blue);
    border-top: 1px solid var(--border-color);
}

.mountain-silhouette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
}

.mountain-silhouette svg {
    width: 100%;
    height: 100%;
}

.silicon-slopes {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo img {
        height: 35px;
        max-width: 180px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--darker-blue);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .expertise-stats {
        justify-content: space-around;
    }

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

    .office-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .expertise-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat {
        text-align: center;
    }
}

/* Sharp geometric elements */
.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-green);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.hero-content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    border: 1px solid var(--primary-blue);
    opacity: 0.2;
    animation: rotate -15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sharp text shadows for headers */
.hero-title,
.section-header h2,
.expertise-text h2,
.cta-content h2 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Glowing accents */
.btn-primary {
    box-shadow: 0 0 20px rgba(109, 255, 182, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(109, 255, 182, 0.4);
}

/* Sharp dividers */
section {
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--border-accent) 20%,
        var(--border-accent) 80%,
        transparent);
    opacity: 0.3;
}

/* Neon glow effects */
.accent-glow {
    filter: drop-shadow(0 0 20px rgba(109, 255, 182, 0.3));
}

/* Sharp corners and edges */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced focus states */
a:focus,
button:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    border-color: var(--accent-green);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.modal-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 200;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Form Styles */
.contact-form {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--darker-blue);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 255, 182, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

/* Form Success State */
.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.form-success h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

/* Button styles for modal */
button.open-modal,
button.close-modal {
    cursor: pointer;
}

button.btn-nav {
    border: 1px solid var(--accent-green);
    background: transparent;
    cursor: pointer;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 2rem;
        margin: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .form-actions {
        flex-direction: column;
    }
}
