@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Fira Sans Condensed', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #f8f8f8;
    padding: 5px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    box-sizing: border-box;
}

.logo {
    flex: 0 0 auto;
    margin-right: 30px;
}

.logo img {
    height: 70px;
    width: auto;
}

nav {
    flex: 1;
}

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

nav ul li {
    margin: 0;
    position: relative;
    white-space: nowrap;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

nav ul li a:hover {
    background-color: #007bff;
    color: white;
}



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

/* Slideshow */
.slideshow-container {
    width: 100%;
    height: 50vh;
    margin-top: 85px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    object-position: center;
}

.slide-text {
    position: relative;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 10%, rgba(255, 255, 255, 0.2) 90%, transparent 100%);
    color: #b9ebca;
    text-align: center;
    padding: 15px;
    font-size: 1.2em;
    font-weight: 600;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
    animation: floatText 2s ease-in-out infinite;
}

@keyframes floatText {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.slide.active .slide-text {
    opacity: 1;
    transform: translateY(0);
    font-size: 1.5em;
    background: linear-gradient(90deg, transparent 0%, rgba(124, 217, 238, 0.5) 10%, rgba(124, 217, 238, 0.5) 90%, transparent 100%);
    color: rgb(0, 0, 0);
}


/* Common section spacing */
section {
    padding: 30px 0;
    margin: 0;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

.content {
    flex: 1;
    min-width: 280px;
    flex-basis: calc(60% - 15px);
}

.projects {
    flex: 1;
    min-width: 280px;
    flex-basis: calc(40% - 15px);
}

.content h1 {
    font-size: clamp(24px, 4vw, 32px);
    color: #333;
    margin-bottom: 20px;
}

.content p {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.projects h2 {
    font-size: clamp(20px, 3vw, 24px);
    color: #333;
    margin-bottom: 20px;
}

.projects a {
    display: block;
    color: #007bff;
    text-decoration: none;
    font-size: clamp(14px, 2vw, 16px);
    padding: 8px 0;
    transition: color 0.3s ease;
}

.projects a:hover {
    color: #0056b3;
}

/* About Section */
.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    padding-right: 20px;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-image {
        width: 100%;
        margin-top: 20px;
    }
}

.about-text {
    flex: 1;
    min-width: 280px;
    flex-basis: calc(50% - 15px);
}

.about-image {
    flex: 1;
    min-width: 280px;
    flex-basis: calc(50% - 15px);
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 500px;
}

/* Services Section */
.services-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
}

.service-item {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Software and Engineering Services Sections */
.software-service-container,
.engineering-service-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}

.service-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.service-row.center {
    justify-content: center;
}

.service-item-container {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

.service-item-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.service-item-container h3 {
    color: #333;
    margin-top: 10px;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .service-row {
        flex-direction: column;
        align-items: center;
    }
    
    .service-item-container {
        width: 100%;
        margin-bottom: 20px;
    }
}

.software-service-text,
.engineering-service-text {
    flex: 1;
    min-width: 280px;
    flex-basis: calc(50% - 15px);
}

.software-service-image,
.engineering-service-image {
    flex: 1;
    min-width: 280px;
    flex-basis: calc(50% - 15px);
    height: 100%;
}

.software-service-image img,
.engineering-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 500px;
}

/* Fix for MCAD Design Services hover effects */
.services-container {
    padding: 40px 20px;
    background: #f8f9fa;
}

.service-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.service-item:hover .overlay {
    transform: translateY(0);
}

.service-item:hover img {
    transform: scale(1.1);
}

/* Engineering Design Expertise Styles */
.engineering-design-container {
    padding: 60px 20px;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.engineering-design-container h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2em;
}

.design-workflow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 20px;
}

.workflow-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.workflow-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    position: relative;
}

.workflow-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.workflow-arrow {
    width: 60px;
    height: 2px;
    background: #007bff;
    position: relative;
    flex-shrink: 0;
}

.workflow-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #007bff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.workflow-item:nth-child(1) { animation-delay: 0.2s; }
.workflow-item:nth-child(3) { animation-delay: 0.4s; }
.workflow-item:nth-child(5) { animation-delay: 0.6s; }

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

/* Key Results Styles */
.key-results {
    margin-top: 60px;
}

.key-results h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.key-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.key-result-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.key-result-item::before {
    content: attr(data-number);
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

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

.key-result-item h4 {
    color: #333;
    margin-bottom: 15px;
}

.key-result-item p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .design-workflow {
        flex-direction: column;
    }
    
    .workflow-arrow {
        width: 2px;
        height: 40px;
    }
    
    .workflow-arrow::after {
        right: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(50%) rotate(90deg);
    }
    
    .key-results-grid {
        grid-template-columns: 1fr;
    }
}

/* Text styles */
h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 20px;
}

p, ul {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    section {
        padding: 20px 0;
    }

    .about-container,
    .software-service-container,
    .engineering-service-container {
        gap: 20px;
    }

    .about-text,
    .about-image,
    .software-service-text,
    .software-service-image,
    .engineering-service-text,
    .engineering-service-image {
        flex-basis: 100%;
        min-width: 100%;
        padding: 0;
    }

    .about-image img,
    .software-service-image img,
    .engineering-service-image img {
        max-height: 300px;
    }

    .services {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .service-item {
        aspect-ratio: 16/10;
    }

    .container {
        gap: 20px;
    }

    .content,
    .projects {
        flex-basis: 100%;
        min-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    section {
        padding: 15px 0;
    }

    .about-container,
    .software-service-container,
    .engineering-service-container {
        padding: 0 15px;
        gap: 15px;
    }

    .about-image img,
    .software-service-image img,
    .engineering-service-image img {
        max-height: 250px;
    }

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

    .service-item {
        aspect-ratio: 16/9;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    header {
        padding: 5px 10px;
    }

    .logo img {
        height: 50px;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #f8f8f8;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        background: #f0f0f0;
    }

    .container {
        flex-direction: column;
        padding: 10px;
    }

    .content, .projects {
        max-width: 100%;
        padding: 10px;
    }

    .slideshow-container {
        margin-top: 80px;
    }

    .slide img {
        height: 200px;
    }

    .about-container,
    .software-service-container,
    .engineering-service-container {
        flex-direction: column;
        padding: 20px 10px;
    }

    .about-image,
    .software-service-image,
    .engineering-service-image {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-container > div {
        margin-bottom: 20px;
    }
}

/* Additional responsive adjustments for very small screens */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 20px !important;
    }

    h2 {
        font-size: 18px !important;
    }

    .logo img {
        height: 40px;
    }
}

footer {
    background-color: #222;
    color: white;
    padding: 40px 0;
    font-family: Arial, sans-serif;
}

footer .footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

footer .footer-container > div {
    flex: 1;
    min-width: 250px; /* Ensure each section has a minimum width */
    margin: 10px;
}

footer h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 5px;
}

footer ul li a {
    color: white;
    text-decoration: none;
}

footer .footer-bottom {
    text-align: center;
    padding: 10px;
    background-color: #111;
    margin-top: 20px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-container > div {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    background-color: #111;
    margin-top: 20px;
}

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

.project-fields-text {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.project-fields-text h2 {
    text-align: center;
    margin-bottom: 30px;
}

.project-fields-text ul {
    padding-left: 20px;
    margin: 0 auto;
    max-width: 800px;
}

.project-fields-text p {
    text-align: center;
    margin-bottom: 20px;
}