/* 
   Semaka Construction - Premium Styles 
   Theme: Modern, Professional, Architectural 
*/

:root {
    --primary-color: #ffb700;
    /* Gold/Orange for Construction Accent */
    --secondary-color: #1a1a1a;
    /* Dark Navy/Black */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Typography --- */

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.highlight {
    color: var(--primary-color);
}

.separator {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px 0 20px;
}

.separator.white {
    background-color: var(--white);
}

/* --- Layout & Utilities --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}


/* --- Navigation --- */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-btn {
    padding: 8px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 2px;
}

.nav-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px auto;
    transition: var(--transition);
}

/* --- Hero Section --- */

.hero {
    height: 100vh;
    background: url('../assets/img/construction-hero.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    /* Nav is fixed overlay */
}

/* Fallback if image missing */
.hero {
    background-color: #2c3e50;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- About Section --- */

.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout>div {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.image-box img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* --- Services Section --- */

.section-header.center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.center .separator {
    margin: 10px auto 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px S30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    background: var(--primary-color);
    transform: translateY(-10px);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .icon {
    color: var(--secondary-color);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

/* --- Portfolio --- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    /* Seamless grid */
}

.portfolio-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    /* Dark background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

/* --- Hardware CTA --- */

.hardware-cta {
    background: url('../assets/img/hardware-bg.jpg') fixed center center/cover;
    /* Fallback */
    background-color: #333;
    padding: 100px 0;
    position: relative;
    text-align: center;
    color: var(--white);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 183, 0, 0.85);
    /* Strong yellow/orange tint */
}

.cta-content {
    position: relative;
    z-index: 1;
    color: var(--secondary-color);
}

.cta-content h2 {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.cta-content .btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.cta-content .btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}


/* --- Contact --- */

.contact-info {
    padding-right: 50px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
}

.contact-form-wrapper {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.hidden {
    display: none;
}

#formMessage {
    color: green;
    margin-top: 15px;
    font-weight: 600;
}

/* --- Footer --- */

footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    margin: 0;
    color: var(--primary-color);
}

.footer-logo p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Mobile Responsiveness --- */

@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Animations --- */

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-scroll].scrolled {
    opacity: 1;
    transform: translateY(0);
}