/* ===== Global Styles ===== */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}

/* ===== Header ===== */
header {
    background: #111;
    padding: 4px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

/* ===== Logo Area ===== */
.logo-area {
    line-height: 0;
    display: flex;
    align-items: center;
}

.logo {
    height: 100px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 2px white);
}

/* ===== Navigation ===== */
nav {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible; /* allows dropdown to escape nav */
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

.nav-links a:hover {
    color: #ffcc00;
}

/* ===== Hamburger Menu ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===== Mobile Nav ===== */
@media (max-width: 700px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed; /* full-screen dropdown */
        top: 60px;       /* sits below header */
        left: 0;
        right: 0;
        background: #111;
        width: 100%;
        padding: 20px 0;
        flex-direction: column;
        text-align: center;
        z-index: 99999; /* above everything */
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 20px;
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ===== Carousel ===== */
.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 600px;
    z-index: 1;
}

/* Track */
.carousel .slides {
    display: flex;
    width: 100%;          /* Track auto-expands based on slides */
    height: 100%;
    transition: transform 0.6s ease;
}

/* Each slide */
.carousel .slides img {
    flex: 0 0 100%;       /* Each image = 100% of carousel width */
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Or 'contain' if you prefer no cropping */
    background: #000;
}

/* Dots */
.dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
}

.dot.active {
    opacity: 1;
}

/* Responsive Carousel */
@media (max-width: 700px) {
    .carousel {
        height: 200px;
    }
}

@media (max-width: 450px) {
    .carousel {
        height: 150px;
    }
}


/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(to right, #111, #333);
    padding: 20px 20px;
    color: #fff;
    text-align: center;
}

.hero h2 {
    font-size: 40px;
}

.hero p {
    font-size: 18px;
}

/* Responsive Hero */
@media (max-width: 700px) {
    .hero h2 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
}

/* ===== Content ===== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

/* ===== Contact Box ===== */
.contact-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== Two-Column Contact Form ===== */
.contact-form {
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full-width {
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin-top: 5px;
}

/* Mobile: stack columns */
@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
    }
}

/* ===== Portfolio Grid ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.portfolio-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.portfolio-item h3 {
    margin-top: 0;
}

.portfolio-item a {
    color: #0077cc;
    text-decoration: none;
}

.portfolio-item a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #fff;
    margin-top: 40px;
}
