/* 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;
}

.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;
    gap: 2rem;
    min-height: 66px;
}

.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 {
    display: flex;
    align-items: center;
    position: relative;
}

/* Hide mobile logo inside nav on desktop by default */
.nav > a:first-child {
    display: none;
}

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

.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;
    justify-content: center;
    line-height: 1.2;
    padding: 0;
    white-space: nowrap;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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: 0.75rem 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) - must override Services rules */
.nav-item.dropdown.dropdown-solutions .dropdown-group .dropdown-links,
.nav-item.dropdown.dropdown-solutions .dropdown-links,
.dropdown-solutions .dropdown-group .dropdown-links,
.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;
    z-index: 1200;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown .dropdown-menu:hover {
        display: flex;
    }
    
    /* Ensure Solutions dropdown appears even when Services dropdown is open */
    .nav-item.dropdown.dropdown-solutions:hover .dropdown-menu,
    .nav-item.dropdown.dropdown-solutions .dropdown-menu:hover {
        display: flex !important;
        z-index: 1200 !important;
    }
    
    /* Ensure Solutions dropdown menu and links are always visible when dropdown is shown */
    .nav-item.dropdown.dropdown-solutions:hover .dropdown-menu .dropdown-links,
    .nav-item.dropdown.dropdown-solutions .dropdown-menu:hover .dropdown-links {
        display: flex !important;
    }
    
    /* Ensure Solutions dropdown closes when not hovering */
    .nav-item.dropdown.dropdown-solutions:not(:hover) .dropdown-menu:not(:hover) {
        display: none !important;
    }
    
    /* Services dropdown - normal hover behavior */
    .nav-item.dropdown:not(.dropdown-solutions):hover .dropdown-menu,
    .nav-item.dropdown:not(.dropdown-solutions) .dropdown-menu:hover {
        display: flex;
    }
    
    /* Ensure Services dropdown closes when not hovering */
    .nav-item.dropdown:not(.dropdown-solutions):not(:hover) .dropdown-menu:not(:hover) {
        display: none !important;
    }
}

@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;
    justify-content: center;
    margin-left: 1.5rem;
}

.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: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 0.42;
    display: block;
}

.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;
    animation: fadeInUp 1s ease-out;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

@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;
}


/* Services Section */
.services {
    background: #f8f9fa;
}

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

.service-item {
    background: transparent;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #397EC1;
    white-space: nowrap;
}

/* Why Us Section */
.why-us {
    background: #F0F0FB;
    color: #1a1a2e;
}

.why-us .section-title {
    color: #004786;
}

.metrics {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.metric-item {
    text-align: center;
}

.metric-icon {
    width: 199px;
    height: 199px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.36rem;
}

.metric-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
}

.metric-label {
    font-size: 20px;
    font-weight: 600;
    color: #397EC1;
    white-space: nowrap;
}

/* Industries Section */
.industries {
    background: #f8f9fa;
}

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

.industry-item {
    background: transparent;
    padding: 2rem 1.5rem;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
}

.industry-item:hover {
    transform: none;
    box-shadow: none;
}

.industry-icon {
    width: 113px;
    height: 113px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.industry-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.industry-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #397EC1;
    white-space: nowrap;
}

/* EDA Tools Section - now part of industries section */
.industries .tools-logos {
    margin-top: 2rem;
    padding: 2rem 0;
    overflow: hidden;
}

.tools-logos {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.tools-logos-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scrollLogos 20s linear infinite;
    white-space: nowrap;
    width: max-content;
    min-width: 100%;
}

.tools-logos-wrapper:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tool-logo {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
}

.tool-logo:hover {
    transform: translateY(-2px);
}

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

.tool-logo-img {
    width: 400px;
    height: 200px;
    object-fit: contain;
}

/* Contact Section */
.contact {
    background: #F0F0FB;
    padding: 5rem 0 35px 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;
    margin: 0;
}

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

.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 - Mobile */
@media (max-width: 991px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Ensure all containers don't overflow horizontally, but allow vertical scrolling */
    .container {
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible !important;
        height: auto !important;
    }
    
    /* Prevent hero video overflow - but allow page scrolling */
    .hero-background {
        overflow: visible;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-y: visible !important;
        height: auto !important;
    }
    
    .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;
    }
    
    /* Show mobile logo link inside nav on mobile */
    .nav > a {
        display: block;
        margin: 0 0 2rem 0;
        padding: 0 1.56rem;
    }
    
    .nav .mobile-logo-img {
        display: block;
        width: 168px;
        height: 50px;
        margin: 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;
    }
    
    .nav-link.active {
        color: #004786 !important;
        font-weight: 700 !important;
    }
    
    /* Hero Section Mobile */
    .hero {
        margin-top: 70px;
        min-height: 100vh;
        overflow: visible !important;
        height: auto;
    }
    
    .hero-background {
        overflow: visible !important;
    }
    
    .hero-content {
        padding: 1rem 1rem 0 1rem;
        text-align: center;
        padding-top: 1rem;
        overflow: visible !important;
    }
    
    .hero-title {
        font-size: 0;
        margin-bottom: 0.2rem;
        padding-top: 20px;
        padding-bottom: 10px;
    }
    
    .hero-title::before {
        content: "Engineering Reliable\A Electronic Solutions";
        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: "Glorious Circuit Technologies offers end-to-end PCB Engineering Services ensuring high-quality standards that help companies bring ideas to life";
        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;
    }
    
    /* Remove scrolling from sections in mobile view */
    .hero,
    .services,
    .why-us,
    .industries {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .hero .container,
    .services .container,
    .why-us .container,
    .industries .container {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
        overflow: visible !important;
    }
    
    .service-item {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 104px;
        height: 104px;
        margin-bottom: 1rem;
    }
    
    .service-item h3 {
        font-size: 1rem;
        white-space: normal;
    }
    
    /* Why Us Section Mobile */
    .metrics {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
        overflow: visible !important;
    }
    
    .metric-icon {
        width: 242px;
        height: 242px;
        margin-bottom: 0.4rem;
    }
    
    .metric-label {
        font-size: 1.2rem;
        white-space: normal;
    }
    
    /* Industries Section Mobile */
    .industries-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0;
        justify-items: center;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        justify-content: center;
        place-items: center;
        overflow: visible !important;
    }
    
    .industry-item {
        padding: 1.5rem 0.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 150px;
    }
    
    .industry-icon {
        width: 153px;
        height: 153px;
        margin-bottom: 0.5rem;
    }
    
    .industry-item h3 {
        font-size: 1rem;
        white-space: normal;
    }
    
    /* EDA Tools Mobile - keep overflow hidden for animation, but section parent should allow scrolling */
    .tools-logos-wrapper {
        gap: 1rem;
        animation-duration: 15s;
    }
    
    .tool-logo-img {
        width: 220px;
        height: 109px;
    }
    
    /* Contact Form 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 styling - ensure nav is visible and properly displayed */
@media (min-width: 992px) {
    /* Ensure nav is visible and positioned correctly on desktop */
    .nav {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: visible !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        z-index: 1 !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Hide mobile logo link inside nav on desktop */
    .nav > a:first-child {
        display: none !important;
    }
    
    /* Ensure nav-list is visible and horizontal on desktop */
    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 35px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Ensure nav-items are displayed correctly */
    .nav-item {
        display: flex !important;
        align-items: center !important;
        position: relative !important;
    }
    
    /* Ensure nav-links are visible and styled correctly */
    .nav-link {
        font-size: 14px !important;
        padding: 0 !important;
        border-bottom: none !important;
        width: auto !important;
        text-align: left !important;
        display: flex !important;
        height: auto !important;
        color: #787878 !important;
        text-decoration: none !important;
    }
    
    /* Ensure nav-link hover works */
    .nav-link:hover {
        color: #787878 !important;
    }
    
    /* Ensure active nav-link is visible */
    .nav-link.active {
        color: #004786 !important;
        font-weight: 700 !important;
    }
}




