/* Base Styles */
:root {
    --primary-color: #1d3557;
    --secondary-color: #666666;
    --text-color: #333333;
    --hero-bg: #1d3557;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --true-white: #ffffff;
    --true-black: #000000;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    overflow-wrap: break-word;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        flex-shrink: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.25rem;
    }

    .logo img {
        max-height: 30px;
    }

    .nav-container {
        padding: 0 1rem;
        flex-direction: row;
    }

    .logo {
        flex-grow: 0;
    }
}

/* Hero Section */
.hero {
    padding: 12rem 2rem 8rem;
    background: var(--hero-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    color: var(--white);
}

.hero-content {
    max-width: 600px;
    justify-self: end;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.8;
    max-width: 800px;
    margin-bottom: 3rem;
}

.hero-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    justify-self: start;
}

.map-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.1;
    filter: brightness(0) invert(1);
}

.network-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.latency {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #4CAF50;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: monospace;
    white-space: nowrap;
}

.point-1 { top: 40%; left: 25%; animation-delay: 0s; }
.point-2 { top: 36%; left: 45%; animation-delay: 0.5s; }
.point-3 { top: 75%; left: 35%; animation-delay: 1s; }
.point-4 { top: 55%; left: 74%; animation-delay: 1.5s; }

.network-lines {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Trusted Companies */
.trusted-companies {
    padding: 2rem 2rem;
    background: var(--light-bg);
}

.trusted-companies h2 {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.tech-item {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-item:hover {
    opacity: 1;
}

.tech-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.tech-item:hover .tech-logo {
    filter: grayscale(0%);
}

/* Services Section */
.services, .operations {
    padding: 8rem 2rem;
}

.service-header, .operations-header {
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.service-header h2, .operations-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-header p, .operations-header p {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.service-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.service-card {
    padding-right: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.service-card h3 i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 25px;
    text-align: center;
}

.service-card p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Operations Section */
.operations {
    background: var(--light-bg);
}

.operations-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.operations-card {
    padding-right: 2rem;
}

.operations-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.operations-card h3 i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 25px;
    text-align: center;
}

.operations-card p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* About Us Section */
.about-section {
    padding: 2rem 2rem;
    background-color: var(--true-white);
}

.about-section h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--true-black);
}

.about-section > .section-container > p {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--true-black);
}

.about-technologies-grid {
    max-width: 900px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    align-items: center;
    justify-items: center;
}

.tech-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.tech-logo-img {
    max-width: 100%;
    max-height: 60px; /* Max height for logos */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.tech-logo-item:hover .tech-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--white);
    color: var(--hero-bg);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.cta-button.primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    background: var(--light-bg);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: var(--white);
}

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

.submit-button {
    background: var(--text-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.form-message.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid #F44336;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.25rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-container,
    .section-container,
    .footer-content {
        padding: 0 2rem;
    }

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

    .service-grid,
    .operations-grid {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 10rem 2rem 6rem;
    }

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

    .hero-map {
        min-height: 300px;
        order: -1;
    }

    .service-grid,
    .operations-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-card,
    .operations-card {
        padding-right: 0;
    }

    .additional-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

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

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

    .hero-map {
        min-height: 250px;
    }

    .service-header h2,
    .operations-header h2,
    .section-title,
    .contact-content h2 {
        font-size: 2rem;
    }

    .service-header p,
    .operations-header p {
        font-size: 1.1rem;
    }

    .service-card,
    .operations-card {
        text-align: center;
    }

    .features-list {
        display: inline-block;
        text-align: left;
    }

    .additional-grid {
        gap: 1.5rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .contact {
        padding: 4rem 1.5rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .about-section h2 {
        font-size: 2.5rem;
    }

    .about-section > .section-container > p {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .about-technologies-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
    }
    .tech-logo-item {
        height: 80px;
    }
    .tech-logo-img {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .service-header h2,
    .operations-header h2,
    .section-title,
    .contact-content h2 {
        font-size: 1.75rem;
    }

    .service-card h3,
    .operations-card h3 {
        font-size: 1.25rem;
    }

    .additional-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }

    .submit-button {
        width: 100%;
    }

    /* Header styles for services page */
    .header {
        padding: 6rem 1.5rem 3rem;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .header p {
        font-size: 1rem;
    }

    /* Services page specific */
    .services-container {
        padding: 2rem 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .features-list li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }

    .additional-services {
        padding: 3rem 1.5rem;
    }

    .additional-item {
        padding: 1.25rem;
    }

    .additional-icon {
        font-size: 1.75rem;
    }

    .additional-item h3 {
        font-size: 1.1rem;
    }

    .additional-item p {
        font-size: 0.9rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-item {
        padding: 1.5rem;
    }

    .about-item i {
        font-size: 2rem;
    }

    .about-item h3 {
        font-size: 1.25rem;
    }

    .about-item p {
        font-size: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e1e1e1;
        --secondary-color: #a1a1a1;
        --light-bg: #1a1a1a;
        --white: #121212;
    }

    .navbar,
    .footer {
        background: #121212;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .service-card,
    .operations-card,
    .additional-item {
        background: #1a1a1a;
        border-color: rgba(255, 255, 255, 0.1);
    }

    input, textarea {
        background: #1a1a1a;
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text-color);
    }

    input::placeholder,
    textarea::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .about-section {
        background-color: var(--true-white) !important;
    }

    .team-member h3 {
        color: var(--true-black);
    }

    .member-role {
        color: var(--primary-color);
    }

    .about-section > .section-container > p {
        color: var(--true-black);
    }

    .about-section h2 {
        color: var(--true-black);
    }

    .tech-logo-item {
        background-color: var(--light-bg); /* Adjust if needed for dark mode contrast */
    }
} 