/* 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 */
.hero {
    height: 80vh;
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('hero.jpg'); */
    background-color: var(--dark-gray); /* Changed background */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
}

.hero-content {
    color: var(--light);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Added text shadow */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Added text shadow */
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 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;
}

/* 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);
}

.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-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;
}

/* Gear Animation */
.gear-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gear {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.2; /* Increased opacity slightly */
    z-index: 0;
}

.gear-1 {
    top: 15%;
    left: 10%;
    animation: rotate 8s linear infinite;
}

.gear-2 {
    top: 30%;
    right: 15%;
    animation: rotate 10s linear infinite reverse;
}

.gear-3 {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: rotate 12s linear infinite;
}
.gear-4 {
    bottom: 5%;
    left: 25%;
    width: 100px; /* Smaller gear */
    height: 100px;
    animation: rotate 15s linear infinite;
}

.gear-5 {
    top: 60%;
    right: 5%;
    width: 120px;
    height: 120px;
    animation: rotate 9s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero content positioning */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Mobile gear styles */
@media (max-width: 768px) {
    .gear-1, .gear-3 {
        display: none;
    }
    
    .gear-2 {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120px;
        height: 120px;
    }
}

.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%;
    }
}
