/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

/* Header Styles */
.header {
    background: white;
    color: #1a1a2e;
    padding: 14px 0 0.55rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

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

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo-img {
    width: 237.6px;
    height: 66px;
    object-fit: contain;
    display: block;
}

/* Desktop: Increase logo size by 20% and move 10px to the right */
@media (min-width: 992px) {
    .logo-img {
        width: 285.12px;
        height: 79.2px;
        margin-left: 10px;
    }
}

.mobile-logo-img {
    display: none;
    width: 168px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: #787878;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    line-height: 1;
    padding: 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item.dropdown .nav-link::after {
    content: '▾';
    margin-left: 6px;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    min-width: 320px;
    z-index: 1100;
}

.dropdown-group {
    width: 100%;
    padding: 0.75rem 0;
}

.dropdown-group + .dropdown-group {
    margin-top: -0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.dropdown-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #004786;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: default;
    user-select: none;
    transition: color 0.3s ease;
}

.dropdown-title:hover {
    color: #003366;
}

.dropdown-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dropdown-group.active .dropdown-arrow,
.dropdown-group:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-links {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 0.35rem;
    display: flex;
}

/* Hide dropdown links by default in Services dropdown (only for groups with titles) */
.dropdown-group .dropdown-title ~ .dropdown-links {
    display: none !important;
}

/* Show dropdown links when Services dropdown group is hovered */
.dropdown-group:hover .dropdown-title ~ .dropdown-links {
    display: flex !important;
}

/* Show dropdown links when Services dropdown group is active (for backward compatibility) */
.dropdown-group.active .dropdown-title ~ .dropdown-links {
    display: flex !important;
}

/* Solutions dropdown - always show links (it doesn't have dropdown-title) */
.dropdown-solutions .dropdown-links {
    display: flex !important;
}

.dropdown-links a {
    color: #1a1a2e;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.dropdown-links a:hover {
    color: #004786;
    transform: translateX(4px);
}

.nav-item.dropdown.align-right .dropdown-menu {
    left: auto;
    right: 0;
}

.nav-item.dropdown.dropdown-solutions .dropdown-menu {
    left: 0;
    right: auto;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown .dropdown-menu:hover {
        display: flex;
    }
}

@media (max-width: 991px) {
    .nav-item.dropdown .dropdown-menu {
        display: none !important;
    }

    .nav-item.dropdown .nav-link::after {
        display: none;
    }
}

.nav-item.nav-iso {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    height: 100%;
}

.nav-iso-img {
    height: 65.91px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 991px) {
    .nav-item.nav-iso {
        display: none;
    }
}

.nav-link:hover {
    color: #787878;
}

.nav-link.active {
    color: #004786 !important;
    font-weight: 700 !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #1a1a2e;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: black;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 1;
    display: block;
    transform: translateX(-5%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
}

/* Fallback circuit pattern for browsers that don't support video */
.circuit-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, #00d4ff 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #00d4ff 2px, transparent 2px);
    background-size: 50px 50px;
    animation: circuitFlow 20s linear infinite;
}

@keyframes circuitFlow {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    padding-top: 70px;
    animation: fadeInUp 1s ease-out;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
}

.hero-description {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.75;
    line-height: 1.6;
    color: #ffffff;
    text-align: center;
}

.cta-button {
    background: #4075A4;
    color: white;
    border: none;
    width: 155px;
    height: 41px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-decoration: none;
}

.cta-button:hover {
    background: #366089;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #004786;
    position: relative;
}

/* We Would Like to Work With You Section */
.work-with-us {
    background: #f8f9fa;
    padding: 5rem 0;
}

.work-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #004786;
}

.work-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.map-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.map-container {
    width: 100%;
    height: 100%;
    flex: 1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info-section {
    background: #F0F0FB;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004786;
    margin-bottom: 1.5rem;
}

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

.company-address {
    margin-bottom: 1.5rem;
}

.company-address:last-child {
    margin-bottom: 0;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.address-text {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.contact-details {
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    margin-bottom: 0.5rem;
}

.phone-number:last-child {
    margin-bottom: 0;
}

/* Contact Form Section */
.contact-form-section {
    background: #F0F0FB;
    padding: 5rem 0;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    height: 58px;
    box-sizing: border-box;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #004786;
}

.phone-input {
    position: relative;
    display: flex;
    align-items: center;
}

.country-flag {
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
    z-index: 2;
}

.phone-input input {
    padding-left: 50px;
}

.selected-services-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.selected-services-title {
    margin-bottom: 1rem;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 600;
}

.selected-services {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 40px;
}

.selected-services:empty::before {
    content: "No services selected yet. Choose from the dropdown above.";
    color: #6c757d;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    width: 100%;
    display: block;
}

.service-tag {
    background: #F0F0FB;
    color: #004786;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 71, 134, 0.2);
    transition: all 0.3s ease;
    animation: fadeInScale 0.3s ease-out;
}

.service-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 134, 0.3);
}

.remove-tag {
    cursor: pointer;
    font-weight: bold;
    color: #d32f2f;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 0.2rem;
    transition: color 0.3s ease;
}

.remove-tag:hover {
    color: #b71c1c;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.submit-button {
    width: 100%;
    background: #4075A4;
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 117, 164, 0.3);
}

/* Footer */
.footer {
    background: #D9D9D9;
    color: #1a1a2e;
    padding: 3rem 0 2rem;
}

.footer .container {
    max-width: 1400px;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.footer-primary {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 3rem;
    row-gap: 2rem;
    margin-left: auto;
    margin-right: 0;
    padding-right: 0;
    flex-shrink: 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    margin-bottom: 0;
    margin-top: -15px;
    margin-left: -7px;
}

.footer-logo-img {
    width: 237.6px;
    height: 66px;
    object-fit: contain;
}

/* Desktop: Footer logo same size as navbar logo and move 10px to the right */
@media (min-width: 992px) {
    .footer-logo-img {
        width: 285.12px;
        height: 79.2px;
        margin-left: 10px;
    }
}

.footer-section-title {
    color: #525252;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.footer-address {
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1rem;
    margin-top: -12px;
}

.linkedin-icon {
    display: inline-block;
    background: transparent;
    color: white;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0;
    font-size: 0.9rem;
    padding: 0;
    box-sizing: border-box;
}

.linkedin-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.3rem;
}

.footer-links li a {
    color: rgba(0, 0, 0, 0.55);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #004786;
}

.download-button {
    background: #4075A4;
    color: white;
    border: none;
    padding: 0 1.5rem;
    height: 41px;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    min-width: 200px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.download-button:hover {
    background: #366089;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.download-button:visited {
    color: white;
    text-decoration: none;
}

.download-button:active {
    color: white;
    text-decoration: none;
}

.download-button:focus {
    color: white;
    text-decoration: none;
    outline: none;
}

.footer-column:first-child .download-button,
.footer-primary .download-button {
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .header .container {
        justify-content: space-between;
        align-items: center;
        padding: 0 15px 0 0;
    }
    
    .logo .mobile-logo-img {
        display: block !important;
    }
    
    .logo-img {
        display: none;
    }
    
    .mobile-logo-img {
        display: block !important;
        width: 168px;
        height: 50px;
        margin-left: -15px;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        padding-top: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav a {
        text-decoration: none;
        display: block;
    }
    
    .nav .mobile-logo-img {
        display: block;
        width: 168px;
        height: 50px;
        margin: 0 0 2rem 0;
    }
    
    .nav.active {
        left: 0;
        display: block !important;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.34rem;
        padding: 3.12rem 1.56rem;
    }
    
    .nav-link {
        display: block;
        font-size: 1.716rem;
        padding: 1.248rem 0;
        border-bottom: 1px solid #e9ecef;
        width: 100%;
        text-align: center;
        height: auto;
    }
    
    /* Hero Section Mobile */
    .hero-content {
        padding: 1rem 1rem 0 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 0;
        margin-bottom: 0.2rem;
        padding-top: 20px;
        padding-bottom: 10px;
    }
    
    .hero-title::before {
        content: "Contact Us";
        white-space: pre-line;
        font-size: 43px;
        font-weight: 600;
        color: #ffffff;
        display: block;
    }
    
    .hero-description {
        font-size: 0;
        line-height: 1.4;
        margin: 0.2rem 0;
        text-align: center;
        max-width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-description::before {
        content: "Ready to bring your electronic visions to life? Get in touch with our team of experts and let's discuss how we can help you achieve your technology goals.";
        white-space: normal;
        font-size: 14px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.9);
        display: block;
    }
    
    .cta-button {
        width: 168px;
        height: 48px;
        font-size: 1.08rem;
        margin-top: 1.4rem;
    }
    
    /* Work With Us Section Mobile */
    .work-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .work-description {
        font-size: 1rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        align-items: start;
    }
    
    .map-container {
        height: 300px;
        flex: none;
    }
    
    .contact-info-section {
        padding: 2rem;
    }
    
    .info-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .address-text {
        font-size: 0.9rem;
    }
    
    .phone-number {
        font-size: 1.1rem;
    }
    
    /* Contact Form Section Mobile */
    .contact-form {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-primary {
        width: 100%;
        order: 1;
    }

    .footer-links-wrapper {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 1rem;
        order: 2;
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100%;
    }
    
    .footer-column {
        position: static !important;
        right: auto !important;
        top: auto !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        align-items: flex-start;
    }
    
    .footer-column:first-child {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-column:nth-child(2) {
        order: 2;
    }
    
    .footer-column:nth-child(3) {
        order: 3;
    }
    
    .footer-column:nth-child(4) {
        order: 4;
    }
    
    .footer-logo-img {
        width: 364px;
        height: 109px;
        object-fit: contain;
        margin-bottom: 1rem;
        margin-left: 10px;
    }
    
    .footer-section-title {
        font-size: 1.1rem;
        color: #525252;
        margin-bottom: 0.8rem;
        font-weight: 700;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links li a {
        color: rgba(0, 0, 0, 0.55);
        text-decoration: none;
        font-size: 0.9rem;
    }
    
    .download-button {
        background: #4075A4;
        color: white;
        padding: 0 1rem;
        height: 48px;
        border: none;
        border-radius: 0;
        font-size: 0.9rem;
        font-weight: 600;
        width: fit-content;
        margin-top: 0.5rem;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .footer-address {
        color: rgba(0, 0, 0, 0.55);
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .linkedin-icon {
        display: inline-block;
        width: 24px;
        height: 24px;
    }
    
    .linkedin-logo-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Desktop nav link styling */
@media (min-width: 769px) {
    .nav-link {
        font-size: 14px;
        padding: 0;
        border-bottom: none;
        width: auto;
        text-align: left;
    }
}
