:root {
    --primary: #1a1a1a;
    --accent: #c5a059;
    --text: #333;
    --light-text: #666;
    --white: #fff;
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Saira', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.4);
}

header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: 0.3s;
}

.logo-dark {
    display: none;
}

header.scrolled .logo-white {
    display: none !important;
}

header.scrolled .logo-dark {
    display: block !important;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    transition: 0.3s;
    font-size: 15px;
    letter-spacing: 0.5px;
}

header.scrolled .nav-links a {
    color: #333;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 2px;
}

header.scrolled .hamburger span {
    background: #333;
}

/* Mobile Nav Styles */
@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1500;
        padding-bottom: 50px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: #333;
        font-size: 24px;
        margin: 15px 0;
        font-weight: 600;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background: #333;
        /* Make dark when menu is open (bg is white) */
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background: #333;
    }
}

/* Hero Section Refined (Matching User Image) */
.hero {
    height: 75vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end;
    /* Text sits towards bottom as in image */
    justify-content: flex-start;
    color: #fff;
    padding-bottom: 120px;
    overflow: hidden;
}

.heroBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: transform 8s linear, opacity 1s ease-in-out;
}

.heroShade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.heroInner {
    max-width: 800px;
    text-align: left;
}

.heroInner h1 {
    font-size: 30px !important;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.heroInner p {
    font-size: 13px !important;
    opacity: 0.95;
    margin-bottom: 25px;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
}

.heroCta {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: capitalize;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btnPrimary {
    background: #5d6d54;
    /* Greenish as in image */
    color: #fff;
    border: 1px solid #5d6d54;
}

.btnPrimary:hover {
    background: #4d5d44;
    transform: translateY(-3px);
}

.btnGhost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btnGhost:hover {
    background: #fff;
    color: #111;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .heroInner {
        text-align: center;
        padding: 0 15px;
        margin-top: 20px;
    }

    .heroInner h1 {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .heroInner p {
        font-size: 14px !important;
        line-height: 1.5;
        margin-bottom: 25px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero {
        padding-bottom: 40px;
        height: 100vh;
        /* Full viewport height on mobile */
        min-height: 550px;
        align-items: center;
        /* Center content vertically */
        justify-content: center;
    }

    .heroCta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .heroCta .btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 14px;
    }
}

/* Sections Root */
.section {
    padding: 100px 0;
}

.sectionHead {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sectionHead h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary);
}

.sectionHead p {
    color: var(--light-text);
    font-size: 18px;
}

/* Service Cards */
.cards3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.svcCard {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.svcCard:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.svcImg {
    height: 260px;
    background-size: cover;
    background-position: center;
}

.svcBody {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.svcBody h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.svcBody p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 15px;
}

.svcLink {
    margin-top: auto;
    display: inline-block;
    padding: 12px 30px;
    background: #f9f9f9;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.3s;
    align-self: flex-start;
    border: 1px solid #eee;
}

.svcLink:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Global Section Header Row Style (Confirmed Correct by User) */
.sectionHeaderRow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.sectionHeaderRow h2 {
    font-size: 34px;
    color: #222;
    margin: 0;
    font-weight: 600;
}

.sectionHeaderRow p {
    font-size: 14px;
    color: #888;
    margin: 0;
    max-width: 400px;
    text-align: right;
    line-height: 1.4;
}

/* Section Backgrounds */
#services,
#projects {
    background: #fdfdfd;
    padding: 100px 0;
}

/* Soluk arka plan */
.projectsHeaderRow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.projectsHeaderRow h2 {
    font-size: 34px;
    color: #222;
    margin: 0;
}

.projectsHeaderRow p {
    font-size: 14px;
    color: #888;
    margin: 0;
    max-width: 400px;
    text-align: right;
}

.projGrid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.projStage {
    position: relative;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.projImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease-in-out;
}

.projAnim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.projAnim.active {
    opacity: 1;
}

.projImg.fadeOut {
    opacity: 0.3;
}

.projInfoRow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 25px;
    gap: 20px;
}

.projMetaExternal {
    flex: 1;
    text-align: left;
}

.projTitle {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.2;
}

.projMetaExternal {
    text-align: left;
}

.projTitle {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.projSub {
    font-size: 18px;
    color: #888;
    font-weight: 400;
}

.projArrowsExternal {
    display: flex;
    gap: 15px;
}

.projArrowCircle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #c54b4b;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.projArrowCircle:hover {
    background: #a03c3c;
    transform: scale(1.05);
}

.projSide {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sideCard {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
    /* Increased height to align with arrows */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sideImg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.sideCard:hover .sideImg {
    transform: scale(1.05);
}

.sideBadge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.projFooter {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.learnMoreBtn {
    font-weight: 600;
    color: #222;
    font-size: 15px;
}

.learnMoreBtn:hover {
    text-decoration: underline;
}

/* Blog Section */
.blog-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Site Footer */
.siteFooter {
    background: #111;
    color: #fff;
    padding: 100px 0 40px;
}

.footerGrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.fTitle {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--accent);
}

.fText {
    opacity: 0.6;
    line-height: 2;
    font-size: 15px;
}

.fText a {
    color: #fff;
}

.fLinks {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fLinks a {
    opacity: 0.5;
    transition: 0.3s;
    font-size: 15px;
    color: #fff;
}

.fLinks a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footerBottom {
    font-size: 13px;
    opacity: 0.4;
    text-align: center;
}

@media (max-width: 1024px) {
    .projGrid {
        grid-template-columns: 1fr;
    }

    .projSide {
        flex-direction: row;
    }

    .sideCard {
        flex: 1;
    }

    .heroInner h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .fTitle {
        margin-bottom: 15px;
    }

    .footerGrid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        /* Center align footer on mobile */
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-item {
        justify-content: center;
    }

    .cards3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projSide {
        flex-direction: column;
    }

    .projStage {
        height: 300px;
        /* Smaller height for mobile */
    }

    .projTitle {
        font-size: 24px;
    }

    /* Section Headers */
    .sectionHead h2,
    .sectionHeaderRow h2 {
        font-size: 28px !important;
        text-align: center;
    }

    .sectionHeaderRow {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .sectionHeaderRow p {
        text-align: center;
        max-width: 100%;
    }

    .projGrid {
        grid-template-columns: 1fr;
    }

    .projInfoRow {
        flex-direction: column;
        gap: 20px;
    }

    .projMetaExternal {
        width: 100%;
        text-align: center;
    }

    .projArrowsExternal {
        width: 100%;
        justify-content: center;
    }
}