/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= BASE ================= */
body {
    font-family: Arial, sans-serif;
    background: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
}

h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

h3 {
    margin-bottom: 12px;
}

p {
    color: #aaa;
    margin-bottom: 18px;
}

/* ================= HEADER ================= */
.header {
    position: absolute;
    width: 100%;
    z-index: 10;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #bbb;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    background: url('../images/hero.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: 5%;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* ================= BUTTON ================= */
.btn-primary {
    display: inline-block;
    padding: 12px 26px;
    background: #fff;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #ccc;
}

/* ================= PAGE HERO ================= */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: #111;
}

.page-hero h1 {
    font-size: 42px;
}

/* ================= SECTIONS ================= */
.section {
    padding: 100px 0;
}

.section.dark {
    background: #111;
}

/* ================= SPLIT ================= */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ================= GRID ================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* ================= CARD ================= */
.card {
    background: #1a1a1a;
    padding: 30px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* ================= SERVICES ================= */
.services-list div {
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

/* ================= PROJECTS ================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    display: block;
    background: #111;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.4s;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-info {
    padding: 20px;
}

/* ================= CONTACT ================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
}

/* ================= FOOTER ================= */
.footer {
    padding: 30px;
    text-align: center;
    color: #777;
    border-top: 1px solid #222;
}

/* ================= WHY SECTION ================= */
.why-section {
    text-align: center;
}

.why-section p {
    max-width: 750px;
    margin: 0 auto 16px auto;
}

.why-section strong {
    display: block;
    margin: 20px auto;
    max-width: 750px;
}

.why-intro {
    text-align: left;
    max-width: 600px;
    margin: 40px auto 10px auto;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 10px auto 0 auto;
    max-width: 600px;
}

.why-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.why-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #fff;
    position: absolute;
    left: 0;
    top: 9px;
}

/* ================= UTILS ================= */
.center {
    text-align: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .split {
        grid-template-columns: 1fr;
    }

    .grid-3,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-content {
        margin-left: 0;
        padding: 0 20px;
    }

    .why-section p,
    .why-intro,
    .why-list {
        max-width: 100%;
    }
}


.card {
    border-top: 2px solid #fff;
}

.page-hero .hero-subtitle {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #bbb;
}

.page-hero .hero-highlight {
    margin-top: 0;
    font-size: 14px;
    color: #888;
    letter-spacing: 1px;
}

.page-hero {
    padding: 180px 0 90px;
}

h1 {
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 25px;
}

.page-hero p {
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .logo {
        text-align: center;
        white-space: nowrap;
        font-size: 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

.lang-switch {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-switch a {
    font-size: 18px;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}

.lang-switch a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ================= PROJECT GRID ================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* tablet */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    cursor: pointer;
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-image img {
    width: 100%;
    height: 260px; /* puțin mai mare = mai premium */
    object-fit: cover;
    border-radius: 10px;
}

.project-info {
    padding-top: 10px;
}

.project-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.project-info p {
    margin: 3px 0;
    color: #aaa;
}


/* ================= LIGHTBOX ================= */

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gallery-modal img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
}

/* close button */
.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    color: white;
    cursor: pointer;
}

/* arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 55px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.gallery-nav.left {
    left: 20px;
}

.gallery-nav.right {
    right: 20px;
}