/* Base styles and variables */
:root {
    --primary: #000000;    /* Black */
    --secondary: #333333;  /* Dark gray */
    --accent: #FFD700;     /* Yellow */
    --light: #FFFFFF;      /* White */
    --gray: #888888;       /* Medium gray */
    --light-gray: #F5F5F5; /* Light gray */
    --dark-gray: #222222;  /* Very dark gray */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: "";
    position: absolute;
    width: 30%;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 0;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style-type: none;
}

/* Section styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Removed display: none; to restore underline */

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background-color: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: scale(1.05); /* Added scale effect */
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: scale(1.05); /* Added scale effect */
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 10px;
    margin-top: -10px;
}

.logo-text h1 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.logo-text p {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: var(--gray);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary);
    position: relative;
}

.nav-links a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after { /* Style active link underline */
    width: 100%;
}

.nav-links a.active { /* Style active link text */
    color: var(--accent);
}
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 3000;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 6px;
    padding: 8px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.bar {
    width: 28px;
    height: 4px;
    margin: 6px 0;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 80px);
        background-color: var(--light);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: var(--transition);
        z-index: 2000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
        display: flex;
    }

    .nav-links .nav-item {
        margin: 10px 0;
        width: 80%;
        text-align: center;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-links .nav-item:first-child {
        margin-top: 20px;
        display: block !important;
    }

    .nav-links .nav-item:last-child {
        margin-bottom: 20px;
        display: block !important;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        padding: 10px 0;
        color: var(--primary);
    }
    
    .nav-links a:after {
        bottom: 0;
    }
}

/* Hero section responsive styles */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        padding-top: 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1.2rem;
        max-width: 90%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 80%;
        max-width: 300px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Adjust animations for mobile */
    .engineering-animation {
        opacity: 0.6;
    }

    .circuit-svg {
        opacity: 0.4;
    }

    .floating-icons {
        opacity: 0.5;
    }
}

/* Tablet responsive styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .hero-buttons .btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

/* Hero section */
.hero {
    height: 85vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    color: var(--light);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #ffd700, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-entrance 2s ease-out, gradient-shift 4s ease-in-out infinite;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: none;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Enhanced button styles for hero */
.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-buttons .primary-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.hero-buttons .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.hero-buttons .secondary-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-buttons .secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

/* About section */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent); /* Added accent border on hover */
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Team section styles */
.team-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--light-gray);
}

.team-category {
    margin-bottom: 4rem;
}

.team-category h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.team-category h3:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: var(--light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary);
}

.team-member::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: var(--transition);
}

.team-member:hover::before {
    left: 100%;
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    position: relative;
    transition: var(--transition);
}

.member-photo:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-img {
    transform: scale(1.1);
}

.human-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.team-member:hover .human-icon {
    color: var(--primary);
    background-color: #E8E8E8;
    transform: scale(1.05);
}

.member-info h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.member-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
    background-color: var(--light);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Aggregates section special styling - NEW SINGLE PRODUCT LAYOUT */
.aggregates-showcase {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--light) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.single-product-aggregates {
    max-width: 1200px;
    margin: 0 auto;
}

.product-header {
    text-align: center;
    margin-bottom: 2rem;
}

.aggregates-title {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.aggregates-description {
    color: var(--gray);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.media-gallery-aggregates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.media-item-aggregates {
    background-color: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    width: 100%;
    max-width: 450px;
}

.media-item-aggregates:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-image-aggregates {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-video-aggregates {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    background-color: var(--dark-gray);
}

.media-item-aggregates:hover .gallery-image-aggregates {
    transform: scale(1.05);
}

/* Responsive design for aggregates gallery */
@media (max-width: 768px) {
    .media-gallery-aggregates {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .media-item-aggregates {
        max-width: 100%;
    }
    
    .gallery-image-aggregates,
    .gallery-video-aggregates {
        height: 250px;
    }
    
    .aggregates-title {
        font-size: 2rem;
    }
    
    .aggregates-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .aggregates-showcase {
        padding: 1.5rem;
    }
    
    .gallery-image-aggregates,
    .gallery-video-aggregates {
        height: 200px;
    }
}

/* Original aggregates styling (kept for reference if needed) */
.aggregates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.aggregate-item {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.aggregate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.aggregate-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.aggregate-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.aggregate-info {
    padding: 1rem;
    text-align: center;
}

.aggregate-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Responsive design for products */
@media (max-width: 768px) {
    .category-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .aggregates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
}

.member-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Leadership section specific styling */
.team-category:first-child .team-member {
    border-top-color: #FF6B35;
}

.team-category:first-child .team-member:hover {
    border-top-color: #E55A2B;
}

.team-category:first-child .member-photo {
    border-color: #FF6B35;
}

.team-category:first-child .member-photo:hover {
    border-color: #E55A2B;
}

.team-category:first-child .member-title {
    color: #FF6B35;
}

/* Project Implementation section specific styling */
.team-category:nth-child(2) .team-member {
    border-top-color: #4ECDC4;
}

.team-category:nth-child(2) .team-member:hover {
    border-top-color: #45B7B8;
}

.team-category:nth-child(2) .member-photo {
    border-color: #4ECDC4;
}

.team-category:nth-child(2) .member-photo:hover {
    border-color: #45B7B8;
}

.team-category:nth-child(2) .member-title {
    color: #4ECDC4;
}

/* Consultants section specific styling */
.team-category:nth-child(3) .team-member {
    border-top-color: #A8E6CF;
}

.team-category:nth-child(3) .team-member:hover {
    border-top-color: #88D8A3;
}

.team-category:nth-child(3) .member-photo {
    border-color: #A8E6CF;
}

.team-category:nth-child(3) .member-photo:hover {
    border-color: #88D8A3;
}

.team-category:nth-child(3) .member-title {
    color: #A8E6CF;
}

/* Responsive team section */
@media screen and (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .member-info h4 {
        font-size: 1rem;
    }
    
    .member-title {
        font-size: 0.9rem;
    }
    
    .member-description {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .team-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .team-category {
        margin-bottom: 2.5rem;
    }
    
    .team-category h3 {
        font-size: 1.5rem;
    }
    
    .team-member {
        padding: 1rem;
    }
    
    .member-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
}

/* Services section */
.services-section {
    padding: 5rem 0;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-category {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary); /* Change top border on hover */
}

.service-image {
    margin-top: 1.5rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black overlay with 80% opacity */
    transition: var(--transition);
    opacity: 0.5; /* Start with 50% opacity */
}

.service-category:hover .image-overlay {
    opacity: 0.3; /* Reduce opacity on hover */
}

.service-category:hover .service-image img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.service-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-category ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-category ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Projects section */
.projects-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--accent); /* Added accent border on hover */
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-details {
    padding: 1.5rem;
}

.project-details h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-details p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

/* Contact section */
.contact-section {
    padding: 5rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    background-color: var(--primary);
    color: var(--light);
    padding: 2rem;
    border-radius: 8px;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

/* Complex Engineering Animation */
.engineering-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Circuit Board Background */
.circuit-board {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circuit-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.circuit-path {
    stroke-dasharray: 10, 5;
    animation: circuit-flow 3s linear infinite;
}

.circuit-path.path-1 {
    animation-delay: 0s;
}

.circuit-path.path-2 {
    animation-delay: 0.5s;
}

.circuit-path.path-3 {
    animation-delay: 1s;
}

.circuit-path.path-4 {
    animation-delay: 1.5s;
}

.circuit-node {
    animation: pulse-node 2s ease-in-out infinite;
}

@keyframes circuit-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -15; }
}

@keyframes pulse-node {
    0%, 100% { opacity: 0.6; r: 4; }
    50% { opacity: 1; r: 6; }
}

/* 3D Mechanical System */
.mechanical-system {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.svg-gear {
    position: absolute;
}

.gear-main {
    width: 100px;
    height: 100px;
    top: 25%;
    left: 20%;
    animation: rotate-gear 12s linear infinite;
}

.gear-secondary {
    width: 70px;
    height: 70px;
    top: 40%;
    right: 25%;
    animation: rotate-gear 8s linear infinite reverse;
}

.gear-tertiary {
    width: 85px;
    height: 85px;
    bottom: 30%;
    left: 65%;
    animation: rotate-gear 15s linear infinite;
}

.gear-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.3));
    opacity: 0.8;
}

/* Style the SVG fill to match our color scheme */
.gear-svg path {
    fill: var(--gray) !important;
}


/* Floating Engineering Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.icon-wrapper {
    position: absolute;
    animation: float-icon 6s ease-in-out infinite;
}

.engineering-svg-icon {
    width: 40px;
    height: 40px;
    opacity: 0.4;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.5));
    animation: icon-glow 3s ease-in-out infinite;
}

/* Style the SVG icons to match our color scheme */
.engineering-svg-icon path,
.engineering-svg-icon polygon {
    fill: var(--gray) !important;
    stroke: var(--gray) !important;
}

/* Make some icons white for better contrast */
.icon-2 .engineering-svg-icon path,
.icon-2 .engineering-svg-icon polygon,
.icon-4 .engineering-svg-icon path,
.icon-4 .engineering-svg-icon polygon,
.icon-6 .engineering-svg-icon path,
.icon-6 .engineering-svg-icon polygon {
    fill: var(--light) !important;
    stroke: var(--light) !important;
}

.icon-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.icon-2 {
    top: 25%;
    right: 8%;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 15%;
    right: 12%;
    animation-delay: 3s;
}

.icon-5 {
    top: 45%;
    left: 3%;
    animation-delay: 4s;
}

.icon-6 {
    top: 60%;
    right: 5%;
    animation-delay: 5s;
}

/* Data Flow Particles */
.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: data-flow-animation 5s linear infinite;
    opacity: 0.7;
}

.particle-1 {
    top: 20%;
    left: 0%;
    animation-delay: 0s;
}

.particle-2 {
    top: 40%;
    left: 0%;
    animation-delay: 0.8s;
}

.particle-3 {
    top: 60%;
    left: 0%;
    animation-delay: 1.6s;
}

.particle-4 {
    top: 80%;
    left: 0%;
    animation-delay: 2.4s;
}

.particle-5 {
    top: 30%;
    left: 0%;
    animation-delay: 3.2s;
}

/* Blueprint Grid */
.blueprint-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
}

.grid-lines {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,215,0,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,215,0,0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-pulse 12s ease-in-out infinite;
    opacity: 0.5;
}

/* Animation Keyframes */
@keyframes rotate-gear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-20px) rotate(5deg) scale(1.1); }
    66% { transform: translateY(-10px) rotate(-3deg) scale(1.05); }
}

@keyframes icon-glow {
    0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 5px rgba(255,215,0,0.3)); }
    50% { opacity: 0.9; filter: drop-shadow(0 0 15px rgba(255,215,0,0.8)); }
}

@keyframes data-flow-animation {
    0% {
        left: 0%;
        opacity: 0;
        transform: scale(0.5);
    }
    15% {
        opacity: 1;
        transform: scale(1.2);
    }
    85% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        left: 100%;
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes data-flow-animation {
    0% { 
        left: 0%; 
        opacity: 0; 
        transform: scale(0.5);
    }
    10% { 
        opacity: 1; 
        transform: scale(1);
    }
    90% { 
        opacity: 1; 
        transform: scale(1);
    }
    100% { 
        left: 100%; 
        opacity: 0; 
        transform: scale(0.5);
    }
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* Hero content positioning */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    animation: title-entrance 2s ease-out;
}

.hero-subtitle {
    animation: subtitle-entrance 2s ease-out 0.5s both;
}

.hero-buttons {
    animation: buttons-entrance 2s ease-out 1s both;
}

@keyframes title-entrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes subtitle-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttons-entrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Clients Section */
.clients-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.client-logo {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.client-img {
    max-width: 120px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
    transition: var(--transition);
}

.client-logo:hover .client-img {
    filter: grayscale(0);
}

.client-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    text-align: center;
    line-height: 1.3;
}

/* Responsive clients section */
@media screen and (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .client-logo {
        padding: 1rem;
        min-height: 120px;
    }
    
    .client-img {
        max-width: 100px;
        max-height: 60px;
    }
    
    .client-name {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .client-logo {
        padding: 0.8rem;
        min-height: 100px;
    }
    
    .client-img {
        max-width: 80px;
        max-height: 50px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .gear-secondary,
    .gear-tertiary {
        display: none;
    }
    
    .gear-main {
        width: 60px;
        height: 60px;
        top: 30%;
        left: 20%;
    }
    
    .engineering-svg-icon {
        width: 30px;
        height: 30px;
    }
    
    .data-particle {
        width: 4px;
        height: 4px;
    }
    
    .circuit-path {
        stroke-width: 1;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-small {
    height: 40px;
    margin-top: -10px;
    margin-right: 10px;
}

.footer-company h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.footer-company p {
    font-size: 0.8rem;
    color: var(--gray);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column h4 {
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--light);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-list li {
    margin-bottom: 0.8rem;
    color: var(--gray);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive styles */
@media screen and (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        box-shadow: 0 4px 24px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 2000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
