/* ==================================================
   MGA MÜHENDİSLİK
   ANA TASARIM
================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* ================= GENEL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #ffffff;
    color: #071b2d;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}

.section {
    padding: 140px 0;
}


/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(7, 27, 45, 0.08);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 105px;
    height: 58px;
    object-fit: contain;
}


/* NAVIGATION */

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-size: 13px;
    font-weight: 600;
    color: #24394b;
    transition: 0.3s ease;
}

.nav a:hover {
    color: #0c5a88;
}

.nav-button {
    padding: 12px 20px;
    border: 1px solid #0b2940;
    border-radius: 30px;
}

.nav-button:hover {
    background: #0b2940;
    color: white !important;
}


/* MOBILE MENU */

.menu-button {
    display: none;

    border: none;
    background: none;

    font-size: 25px;
    cursor: pointer;
}


/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #061521;
}

.hero {
    background-image:
        linear-gradient(
            rgba(5, 18, 32, 0.65),
            rgba(5, 18, 32, 0.65)
        ),
        url("hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 17, 29, 0.95) 0%,
            rgba(4, 17, 29, 0.78) 42%,
            rgba(4, 17, 29, 0.25) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 80px;

    max-width: 1180px;
}

.hero-top {
    color: #d6e3ed;

    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;

    margin-bottom: 25px;
}

.hero h1 {
    color: white;

    font-size: clamp(48px, 7vw, 92px);

    line-height: 0.98;

    letter-spacing: -4px;

    font-weight: 700;

    max-width: 850px;

    margin-bottom: 35px;
}

.hero h1 span {
    color: #9fb1bf;
}

.hero-description {
    color: #d6e0e7;

    max-width: 620px;

    font-size: 17px;

    line-height: 1.8;

    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    padding: 16px 25px;

    border-radius: 40px;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s ease;
}

.button-light {
    background: white;
    color: #071b2d;
}

.button-light:hover {
    transform: translateY(-3px);
}

.button-outline {
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
}

.button-outline:hover {
    background: white;
    color: #071b2d;
}


/* ================= SECTION HEADING ================= */

.section-heading {
    max-width: 760px;
    margin-bottom: 70px;
}

.eyebrow {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #426278;

    margin-bottom: 22px;
}

.section-heading h2,
.contact-heading h2 {
    font-size: clamp(42px, 6vw, 75px);

    line-height: 1;

    letter-spacing: -3px;

    color: #071b2d;
}

.heading-description {
    max-width: 600px;

    margin-top: 28px;

    color: #647482;

    font-size: 16px;
}


/* ================= ABOUT ================= */

.about-section {
    background: #f5f7f8;
}

.about-grid {
    display: grid;

    grid-template-columns: 1.5fr 0.7fr;

    gap: 100px;

    align-items: center;
}

.about-text p {
    color: #52616d;

    font-size: 17px;

    margin-bottom: 25px;

    max-width: 700px;
}

.about-card {
    padding: 45px;

    background: white;

    border: 1px solid #e0e6ea;

    border-radius: 25px;

    box-shadow: 0 20px 60px rgba(7, 27, 45, 0.06);
}

.about-card span {
    display: block;

    color: #70818d;

    font-size: 13px;

    margin-bottom: 10px;
}

.about-card strong {
    display: block;

    font-size: 60px;

    line-height: 1;

    color: #0b3550;

    margin-bottom: 20px;
}

.about-card p {
    color: #667680;
}


/* ================= SERVICES ================= */

.services-section {
    background: white;
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.service-card {
    position: relative;

    padding: 42px;

    min-height: 300px;

    border: 1px solid #e1e7eb;

    border-radius: 24px;

    background: white;

    overflow: hidden;

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);

    background: #0a2a40;

    color: white;

    border-color: #0a2a40;

    box-shadow: 0 25px 60px rgba(7, 27, 45, 0.18);
}

.service-icon {
    font-size: 30px;

    color: #0c5a88;

    margin-bottom: 45px;

    transition: 0.3s ease;
}

.service-card:hover .service-icon {
    color: white;
}

.service-card h3 {
    font-size: 22px;

    margin-bottom: 15px;
}

.service-card p {
    color: #667680;

    font-size: 14px;

    max-width: 320px;
}

.service-card:hover p {
    color: #c7d5df;
}

.service-arrow {
    position: absolute;

    right: 35px;
    bottom: 30px;

    font-size: 25px;

    color: #78909e;

    transition: 0.3s ease;
}

.service-card:hover .service-arrow {
    color: white;

    transform: translateX(7px);
}


/* ================= PROJECTS ================= */

.projects-section {
    background: #f5f7f8;
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.project-card {
    position: relative;

    min-height: 520px;

    overflow: hidden;

    border-radius: 25px;

    background: #071b2d;
}

.project-card.large {
    grid-row: span 2;

    min-height: 760px;
}

.project-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    position: absolute;
    inset: 0;

    transition: transform 0.7s ease;
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 35%,
            rgba(3, 17, 28, 0.9)
        );
}

.project-info {
    position: absolute;

    left: 35px;
    right: 35px;
    bottom: 32px;

    z-index: 2;

    color: white;
}

.project-info span {
    font-size: 10px;

    letter-spacing: 2px;

    font-weight: 700;

    color: #c8d7e0;
}

.project-info h3 {
    font-size: 25px;

    line-height: 1.2;

    margin-top: 10px;

    max-width: 500px;
}


/* ================= WHY ================= */

.why-section {
    background: white;
}

.why-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 60px;
}

.why-item {
    border-top: 1px solid #cfd8de;

    padding-top: 30px;
}

.why-number {
    display: block;

    font-size: 12px;

    color: #71828d;

    margin-bottom: 25px;
}

.why-item h3 {
    font-size: 24px;

    margin-bottom: 15px;
}

.why-item p {
    color: #647482;

    font-size: 15px;
}


/* ================= TEAM ================= */

.team-section {
    background: #f5f7f8;
}

.team-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.team-card {
    background: white;

    border-radius: 22px;

    padding: 40px;

    border: 1px solid #e2e8ec;

    transition: 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 20px 50px rgba(7, 27, 45, 0.08);
}

.team-card span {
    display: block;

    color: #81909a;

    font-size: 12px;

    margin-bottom: 30px;
}

.team-card h3 {
    font-size: 24px;

    margin-bottom: 7px;
}

.team-card p {
    color: #778691;

    font-size: 14px;
}


/* ================= CONTACT ================= */

.contact-section {
    background: #071b2d;

    color: white;
}

.contact-heading {
    max-width: 800px;

    margin-bottom: 70px;
}

.contact-heading .eyebrow {
    color: #91a8b8;
}

.contact-heading h2 {
    color: white;
}

.contact-heading h2 span {
    color: #8da4b4;
}

.contact-heading > p:last-child {
    color: #aebec9;

    max-width: 650px;

    margin-top: 30px;

    font-size: 16px;
}


.contact-layout {
    max-width: 900px;
}

.contact-card {
    background: #102c41;

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 25px;

    padding: 15px 45px;
}


.contact-row {
    display: grid;

    grid-template-columns: 160px 1fr;

    gap: 30px;

    align-items: center;

    padding: 28px 0;

    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-row:last-of-type {
    border-bottom: none;
}

.contact-label {
    font-size: 10px;

    letter-spacing: 2px;

    font-weight: 700;

    color: #8da4b4;
}

.contact-row a,
.contact-row p {
    color: white;

    font-size: 15px;
}

.contact-row a:hover {
    color: #b7d1e1;
}

.contact-buttons {
    display: flex;

    gap: 12px;

    padding: 30px 0 15px;

    flex-wrap: wrap;
}

.dark-button {
    background: white;

    color: #071b2d;
}

.outline-dark-button {
    border: 1px solid rgba(255,255,255,0.4);

    color: white;
}

.outline-dark-button:hover {
    background: white;

    color: #071b2d;
}


/* ================= FOOTER ================= */

.footer {
    background: #04111c;

    color: white;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 50px;

    padding: 80px 0;
}

.footer-logo {
    width: 110px;

    height: 60px;

    object-fit: contain;

    margin-bottom: 20px;
}

.footer-content p {
    color: #91a1ac;

    font-size: 14px;
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 12px;

    text-align: right;
}

.footer-links a {
    color: #a9b6be;

    font-size: 13px;

    transition: 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);

    padding: 25px 0;

    color: #71818c;

    font-size: 12px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .nav {
        position: fixed;

        top: 82px;
        right: -100%;

        width: 280px;

        height: calc(100vh - 82px);

        background: white;

        flex-direction: column;

        align-items: flex-start;

        padding: 40px;

        gap: 25px;

        box-shadow: -10px 0 30px rgba(0,0,0,0.08);

        transition: 0.4s ease;
    }

    .nav.active {
        right: 0;
    }

    .menu-button {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .section {
        padding: 90px 0;
    }

    .logo img {
        width: 90px;
        height: 52px;
    }

    .hero h1 {
        font-size: 48px;

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card.large {
        min-height: 500px;

        grid-row: auto;
    }

    .contact-card {
        padding: 15px 25px;
    }

    .contact-row {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        text-align: left;
    }

}/* ================= SCROLL ANIMATION ================= */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}