/* Variables */
:root {
    --primary: #0088cc; /* Electric Welding Blue from Logo */
    --dark: #111;       /* Deep Black to match Logo */
    --light: #f4f4f4;
    --grey: #333;
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* Utilities */
.hidden { display: none !important; }
.container { width: 90%; max-width: 1100px; margin: auto; overflow: hidden; }
.btn { display: inline-block; background: var(--primary); color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: bold; }
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.5rem; text-transform: uppercase; }
.bg-light { background: var(--light); }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    color: #fff;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-size: 1.5rem; font-weight: bold; }
.logo .highlight { color: var(--primary); }

.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: bold; }
.nav-links a:hover { color: var(--primary); }

#lang-toggle {
    background: var(--primary);
    border: none;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
}

/* Container for the language button and hamburger */
.nav-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Forces iOS to NEVER stack them */
    align-items: center !important;
}

/* Fallback spacing for iOS */
#lang-toggle {
    margin-right: 15px; 
}
/* Hero Section */
.hero {
    /* Updated background image */
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('images/background.png');
    background-size: cover;
    background-position: center;
    min-height: 60vh; /* Keeps it at 60% for desktop */
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; font-weight: bold; }

/* Services */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}
.card {
    background: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary);
}
.card .icon { font-size: 3rem; color: var(--primary); margin-bottom: 15px; }

/* Portfolio */
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filter-btn {
    background: #fff;
    border: 2px solid #ccc;
    color: var(--grey);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.project-img img { width: 100%; height: 250px; object-fit: cover; display: block; border-radius: 5px; border: 2px solid #ccc;}
.project-img.hidden { display: none !important; }

/* Contact */
.contact-container { text-align: center; }
.info-item { margin: 15px 0; font-size: 1.2rem; }
.info-item i { color: var(--primary); margin-right: 10px; }
.license-info { margin-top: 30px; color: #666; font-style: italic; font-weight: bold;}

/* Footer */
footer { background: var(--dark); color: #fff; text-align: center; padding: 20px; margin-top: auto; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; /* Perfectly aligns to the bottom of the navbar */
        left: 0;
        background: var(--dark);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        z-index: 9999 !important; /* Forces it over ALL other content */
        box-shadow: 0 15px 15px rgba(0,0,0,0.5); /* Adds a drop shadow so it visually floats above the white cards */
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 0; }
    .hamburger { display: block; cursor: pointer; color: white; font-size: 1.5rem; }
    
    /* --- NEW ADDITIONS FOR MOBILE HERO --- */
    .hero {
        min-height: 40vh; /* Shrinks the hero section height on phones */
        padding: 80px 15px 40px 15px; /* Adjusts padding to prevent text cutoff */
    }
    .hero h1 { 
        font-size: 2rem; /* Keeps the title appropriately sized */
    }
}
@media (min-width: 769px) {
    .hamburger { display: none; }
}

/* Phone Link Styling */
.phone-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.phone-link:hover {
    color: var(--primary);
}

/* Portfolio Image Hover Effect */
.project-img img {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.project-img img:hover {
    transform: scale(1.03); /* Slight zoom to show it's clickable */
}

/* Image Modal / Lightbox Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); /* Black with 90% opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

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

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

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
}