/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Makes the scrolling glide nicely */
    scroll-padding-top: 80px; /* Stops the header from covering your titles */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Fixed Header */
nav {
    position: fixed; /* Keeps the bar at the top always */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000; /* Ensures it stays on top of everything */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Hamburger Icon */
.hamburger {
    cursor: pointer;
    z-index: 1001; /* Above the menu so you can always click it */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* The Side Drawer Menu */
.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh; /* Full height of screen */
    width: 250px;  /* Width of the drawer */
    background-color: #2c2c2c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%); /* Push it off-screen to the right */
    transition: transform 0.3s ease-in-out; /* Smooth slide animation */
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
}

/* The Active State (JavaScript adds this class) */
.nav-links.active {
    transform: translateX(0); /* Bring it back on screen */
}

.nav-links li {
    list-style: none;
    margin: 20px 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00bcd4; /* Light blue hover effect */
}

/* Sections Content */
section {
    padding: 100px 20px; /* Extra top padding to account for fixed header */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#home { background-color: #f4f4f4; }
#about { background-color: #e0e0e0; }
#contact { background-color: #f4f4f4; }

/* Hamburger Animation to 'X' (Optional but cool) */
.hamburger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.toggle .line2 {
    opacity: 0;
}
.hamburger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}



/* --- Footer Styling --- */
footer {
    background-color: #1a1a1a; /* Very dark grey */
    color: #cccccc;
    padding: 60px 20px 30px; /* Top, Sides, Bottom */
    font-size: 0.9rem;
    border-top: 3px solid #333;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; /* Wraps on mobile */
    justify-content: space-between;
    gap: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-column a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #777;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Hero Section Styling */
#home {
    position: relative;
    
    /* CHANGED: Removed the image URL, added a solid dark color */
    background-color: #1a1a1a; 
    
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    color: #ddd;
}

/* The "Call to Action" Button */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00bcd4; /* Engineering Blue */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #008ba3;
}




/* --- ABOUT SECTION --- */
#about {
    background-color: #f4f4f4;
    color: #333;
    padding: 80px 20px;
}

.about-container {
    max-width: 1100px; /* Slightly wider to fit 4 items comfortably */
    margin: 0 auto;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-intro {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #555;
    line-height: 1.6;
}

/* The Grid - Automatically handles 3 or 4 items */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    text-align: left;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 4px; /* Sharper corners for engineering look */
    border-left: 4px solid #00bcd4; /* A technical accent line on the left */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

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

.service-item h3 {
    color: #222;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}
/* --- CONTACT SECTION (Clean Version) --- */
#contact {
    background-color: #1a1a1a; /* Solid dark grey */
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

#contact h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: white;
}

#contact p {
    color: #888;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* The Minimalist Card */
.contact-card {
    border-top: 1px solid #333; /* Subtle divider line */
    border-bottom: 1px solid #333;
    padding: 40px 0;
}

.email-link {
    display: block;
    font-size: 1.5rem; /* Large and readable */
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.email-link:hover {
    color: white;
    text-decoration: underline;
}

.contact-details p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555; /* Darker text for secondary info */
    text-transform: uppercase;
    letter-spacing: 1px;
}