* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none"><g fill="none" stroke="#333" stroke-width="0.5"><path d="M0 50 Q25 40 50 50 T100 50" opacity="0.3"><animate attributeName="d" values="M0 50 Q25 40 50 50 T100 50;M0 50 Q25 60 50 50 T100 50;M0 50 Q25 40 50 50 T100 50" dur="3s" repeatCount="indefinite"/></path><path d="M0 40 Q25 30 50 40 T100 40" opacity="0.5"><animate attributeName="d" values="M0 40 Q25 30 50 40 T100 40;M0 40 Q25 50 50 40 T100 40;M0 40 Q25 30 50 40 T100 40" dur="4s" repeatCount="indefinite"/></path></g></svg>') fixed;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.8;
}

body.light {
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none"><g fill="none" stroke="#ccc" stroke-width="0.5"><path d="M0 50 Q25 40 50 50 T100 50" opacity="0.3"><animate attributeName="d" values="M0 50 Q25 40 50 50 T100 50;M0 50 Q25 60 50 50 T100 50;M0 50 Q25 40 50 50 T100 50" dur="3s" repeatCount="indefinite"/></path><path d="M0 40 Q25 30 50 40 T100 40" opacity="0.5"><animate attributeName="d" values="M0 40 Q25 30 50 40 T100 40;M0 40 Q25 50 50 40 T100 40;M0 40 Q25 30 50 40 T100 40" dur="4s" repeatCount="indefinite"/></path></g></svg>') fixed;
    color: #000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 100;
    font-size: 0.9rem;
}

body.light #theme-toggle {
    background: #000;
    color: #fff;
}

#theme-toggle-mobile {
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
}

body.light #theme-toggle-mobile {
    background: #000;
    color: #fff;
}

header {
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99;
}

body.light header .container {
    background: rgba(255, 255, 255, 0.8);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
}

nav {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 25px;
    height: 20px;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

body.light .hamburger span {
    background: #000;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    width: 100%;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

body.light nav ul li a {
    color: #000;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('images/dark.svg') no-repeat center/cover;
    position: relative;
}

body.light .hero {
    background: url('images/light.svg') no-repeat center/cover;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.cta {
    background: #fff;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

body.light .cta {
    background: #000;
    color: #fff;
}

.section {
    padding: 80px 0;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

p {
    line-height: 1.8;
}

.services-grid, .industries-grid, .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card, .industry-card {
    background: #111;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

body.light .service-card, body.light .industry-card {
    background: #eee;
}

.service-card h3, .industry-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card button {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s, filter 0.3s;
}

body.light .service-card button {
    background: #000;
    color: #fff;
}

.service-card button:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tech-tab {
    background: #111;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

body.light .tech-tab {
    background: #eee;
}

.tech-tab.active {
    background: #fff;
    color: #000;
}

body.light .tech-tab.active {
    background: #000;
    color: #fff;
}

.tech-content {
    display: none;
    text-align: center;
}

.tech-content.active {
    display: block;
}

.video-container {
    margin-bottom: 30px;
}

video {
    width: 100%;
    border-radius: 10px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info i {
    margin-right: 10px;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
}

body.light .contact-info a {
    color: #000;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #111;
    color: #fff;
}

body.light .contact-form input, body.light .contact-form textarea {
    background: #eee;
    color: #000;
}

.contact-form textarea {
    resize: none;
    height: 100px;
}

.contact-form button {
    background: #fff;
    color: #000;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

body.light .contact-form button {
    background: #000;
    color: #fff;
}

.map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
}

footer {
    background: #111;
    padding: 20px;
    text-align: center;
}

body.light footer {
    background: #eee;
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

body.light footer ul li a {
    color: #000;
}

footer p i {
    margin-right: 10px;
}

footer p a {
    color: #fff;
    text-decoration: none;
}

body.light footer p a {
    color: #000;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.modal-content {
    background: #111;
    max-width: 500px;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    transform: translateY(-50px);
}

body.light .modal-content {
    background: #eee;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.dynamic-island {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 10px 30px;
    border-radius: 20px;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.light .dynamic-island {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    #theme-toggle {
        display: none;
    }

    .theme-toggle-mobile {
        display: block !important;
    }

    .hamburger {
        display: flex;
    }

    .overlay.active {
        display: block;
    }

    nav ul {
        display: block;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 15px;
        width: 70%;
        background: rgba(0, 0, 0, 0.95);
        padding: 80px 20px;
        border-radius: 0 10px 10px 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 99;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
    }

    body.light nav ul {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        transform: translateX(0);
    }

    nav ul li {
        margin: 15px 0;
        opacity: 0;
        transform: translateX(-20px);
    }

    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.3s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.4s; }
    nav ul.active li:nth-child(5) { transition-delay: 0.5s; }
    nav ul.active li:nth-child(6) { transition-delay: 0.6s; }
    nav ul.active li:nth-child(7) { transition-delay: 0.7s; }
    nav ul.active li:nth-child(8) { transition-delay: 0.8s; }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .tech-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tech-tab {
        width: 80%;
        text-align: center;
    }

    .dynamic-island {
        padding: 8px 20px;
    }

    .dynamic-island span {
        font-size: 0.9rem;
    }
}