/* Core Variables & Reset */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #b0b0b0;
    /* OLD: --accent: #4da6ff; */
    --accent: #00cfcf; /* Teal/Cyan matched from LogoDark.png */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.content-wrapper, .header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Typography */
header {
    background-color: #0a0a0a;
    padding: 40px 0; /* Reduced vertical padding */
    text-align: center;
    border-bottom: 2px solid #2a2a2a;
}

header h1 {
    margin: 0;
    font-size: 2.8rem;
    letter-spacing: 1.5px;
    color: #ffffff;
}

/* New style rule to position and size your logo */
.header-logo {
    max-width: 450px; /* Recommended max width for the graphic */
    width: 90%; /* For responsiveness on small screens */
    height: auto;
    margin: 0 auto; /* Centers the logo horizontally */
    display: block;
}

header p {
    color: var(--accent); /* This color is now Teal */
    text-transform: uppercase;
    letter-spacing: 2.5px; /* Technical, high-precision feel */
    font-size: 1rem;
    margin-top: 15px; /* Separation from the logo graphic */
    margin-bottom: 0;
}

/* Sticky Navigation Bar */
.top-nav {
    position: sticky;
    top: 0; /* Tells it to stick at the very top of the viewport */
    background-color: rgba(10, 10, 10, 0.95); /* Slightly transparent to match header */
    backdrop-filter: blur(8px); /* Creates a modern frosted glass effect over text */
    z-index: 100; /* Ensures the menu stays on top of images and modals */
    border-bottom: 1px solid #2a2a2a;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 18px 20px;
}

.nav-container a {
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-container a:hover {
    color: var(--accent); /* Uses your logo's Teal/Cyan */
}

/* Mobile Responsiveness for Navigation */
@media (max-width: 600px) {
    .nav-container {
        flex-wrap: wrap; /* Allows links to stack on narrow phone screens */
        gap: 20px;
        padding: 15px;
    }
}

section {
    padding: 60px 0;
}

section h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

.about p, .portfolio > .content-wrapper > p, .equipment p {
    font-size: 1.1rem;
    max-width: 800px;
    color: var(--text-muted);
    margin-bottom: 20px; /* Adds breathing room between your paragraphs */
}

/* Responsive Portfolio Grid */
.image-grid {
    display: grid;
    /* This automatically wraps images to a new row on small screens */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--card-bg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    aspect-ratio: 4 / 3;
    cursor: pointer; /* NEW: Indicates the image is clickable */
}

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

/* Hover Effects */
.grid-item:hover img {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

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

/* Lightbox Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Stays on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92); /* Dark overlay */
    backdrop-filter: blur(5px); /* Modern blur effect */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.8);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

#caption {
    margin-top: 20px;
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #888;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

@keyframes zoomIn {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Equipment Specs Grid */
.specs-grid {
    display: grid;
    /* Auto-arranges into 2 columns on desktop, 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.spec-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--accent); /* Uses your logo's teal color */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px); /* Slight lift effect on mouse hover */
}

.spec-item h3 {
    color: var(--accent);
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.spec-item p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 30px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.contact-info h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-info a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-color);
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't break width */
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    background-color: var(--accent);
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #00e6e6; /* A slightly brighter teal for the hover state */
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Contact Section */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: #0a0a0a;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #2a2a2a;
}