:root {
    --secondary: #4d4a4a; 
    --primary: #5c5b5b; 
    --accent: #c76916;
    --light: #f5f5f5; 
    --dark: #2a2a2a; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tahoma', Arial, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

header {
    background-color: var(--primary);
    color: white;
    border-bottom: 3px solid var(--accent);
    position: fixed;
    width: 100%;
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

.logo img{
    width: 10rem;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.main_top {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-image: url('/assets/img/hero.jpg');
    background-size: 100vw;
    backdrop-filter: invert(60%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.main_top h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--dark);
}

.main_top p {
    font-size: 1.1rem;
    max-width: 90%;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 16px;
    cursor: pointer;
    margin-top: 3rem;
}

.btn:hover {
    background-color: #e07a1a;
}

.btn a, .btn a:visited, .btn a:hover{
    color: white;
    text-decoration: none;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin: -5rem auto 3rem;
    position: relative;
    padding: 0 5%;
}

.main_mid, .main_bot {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    border-top: 4px solid var(--accent);
}

.section-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--light);
    padding: 1.2rem;
    border-radius: 6px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--accent);
    height: 5rem;
    font-size: 1.1rem;
}

.gallery-section {
    padding: 3rem 5%;
    background-color: var(--light);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(199, 105, 22, 0.9);
    color: white;
    transition: bottom 0.3s ease;
    font-size: 0.9rem;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.about-card {
    text-align: center;
    padding: 1.2rem;
    background-color: var(--light);
    border-radius: 6px;
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

footer {
    background-color: var(--primary);
    color: white;
    padding: 2rem 5%;
    text-align: center;
    align-items: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section {
    text-align: center;
    width: 1/3;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.copyright {
    padding-top: 1rem;
    border-top: 1px solid var(--secondary);
    font-size: 0.8rem;
}

.tool-icon {
    color: var(--accent);
    margin-right: 0.5rem;
}

.brick-pattern {
    background-image: url('https://www.transparenttextures.com/patterns/brick-wall.png');
    opacity: 0.05;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.construction-line {
    height: 2px;
    background: repeating-linear-gradient(to right, var(--accent), var(--accent) 10px, transparent 10px, transparent 20px);
    margin: 1rem 0;
}

a, a:visited{
    color: rgb(32, 11, 219);
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover{
    color: purple;
}

@media (max-width: 1024px) {
    .main_top h1 {
        font-size: 2.2rem;
    }
    
    .main_top p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem 1rem;
    }

    .logo img{
        display: none;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .main_top {
        height: 80vh;
        min-height: 500px;
        padding-top: 80px;
    }
    
    .main_top h1 {
        font-size: 2rem;
    }
    
    main {
        margin-top: -3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links a {
        font-size: 0.7rem;
    }
    
    .main_top {
        height: 70vh;
        min-height: 400px;
    }
    
    .main_top h1 {
        font-size: 1.8rem;
    }
    
    .main_top p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .main_mid, .main_bot {
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
}