@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
    /* DAG YAPI TASARIM BRAND THEME */
    --bg-color: #fcfcfc;
    --text-color: #2a2a2a;
    --text-muted: #545454;
    --gold: #EFD094;
    --gold-hover: #d8b878;
    --slate: #545454;
    --card-bg: #ffffff;
    --section-alt: #f4f4f2;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1400px;
}

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

html, body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea {
    cursor: none !important;
}

ul {
    list-style: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
    mix-blend-mode: multiply; /* Adjusted for light theme */
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: rgba(179, 139, 89, 0.2);
    border: 1px solid var(--gold);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.text-gold { 
    color: var(--gold); 
    font-weight: 600;
}
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* Header / Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.transparent:not(.scrolled):not(.menu-open) {
    background-color: transparent !important;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background-color: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #545454;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-sub {
    font-size: 1em;
    color: #EFD094;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
    color: var(--text-color);
    font-weight: 600;
}

header.scrolled nav a, header.scrolled .logo {
    color: var(--text-color); /* To ensure visibility on scrolled light background */
}

/* Transparent header for pages with dark hero backgrounds */
header.transparent:not(.scrolled) .logo, header.transparent:not(.scrolled) nav a {
    color: #ffffff;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

nav a:hover, nav a.active {
    color: var(--gold);
}

/* Button */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--gold);
    background-color: var(--gold);
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Section Spacing */
section {
    padding: 120px 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 0;
    filter: brightness(0.7); /* Lighter filter */
    transform-origin: center;
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 2;
    color: #ffffff; /* Keep hero text white due to photo background */
}

.hero-title {
    font-size: clamp(40px, 8vw, 100px);
    line-height: 1.1;
    margin-bottom: 20px;
    overflow: hidden;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 2px;
    max-width: 600px;
    margin-bottom: 40px;
}


/* About / Vision Section */
.about {
    background-color: var(--bg-color);
    padding-top: 100px;
    padding-bottom: 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.about-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 48px;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 20px;
}

.about-text .btn {
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Services Section */
.services {
    background-color: var(--section-alt);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}
.service-icon {
    font-size: 28px;
    color: var(--gold);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    background: rgba(239, 208, 148, 0.15);
    border: 1px solid var(--gold);
}
.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}
.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Why Us & Work Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.process-step {
    background: var(--card-bg);
    padding: 30px;
    border-top: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.step-num {
    font-size: 24px;
    color: #1a1a1a;
    background: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 6px 14px rgba(239, 208, 148, 0.35);
}
.process-step h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}
.process-step p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Founders / Leadership Section */
.team {
    background-color: var(--bg-color);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.founder-card-premium {
    display: block !important;
    padding: 36px 40px !important;
    background: #ffffff;
    text-align: left;
}
.founder-card-premium .contact-text-box h3 {
    font-size: 26px;
    margin-bottom: 20px !important;
    color: var(--text-color);
    font-family: var(--font-heading);
}
.founder-card-premium .contact-phone-row {
    width: 100%;
    max-width: 340px;
    padding: 12px 18px;
    margin-top: 5px;
}

/* Pure Photo Gallery Grid (For Projects Page) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* Lightbox / Image Gallery Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}
.lightbox-close:hover {
    color: var(--gold);
    transform: scale(1.1);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    user-select: none;
}
.lightbox-nav:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #545454;
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
    left: 40px;
}
.lightbox-next {
    right: 40px;
}
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    letter-spacing: 3px;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Contact Section Premium Design */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 44px;
    margin-bottom: 25px;
    line-height: 1.15;
}

.contact-details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 35px;
}

.contact-card-premium {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.contact-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--gold);
    transition: height 0.4s ease;
}

.contact-card-premium:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 208, 148, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.contact-card-premium:hover::before {
    height: 100%;
}

.contact-icon-box {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 12px;
    background: rgba(239, 208, 148, 0.15);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a2a2a;
    transition: all 0.4s ease;
}

.contact-card-premium:hover .contact-icon-box {
    background: var(--gold);
    transform: scale(1.05) rotate(5deg);
    color: #1a1a1a;
}

.contact-icon-box svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-text-box {
    flex: 1;
}

.contact-text-box h4 {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-text-box p, .contact-text-box .contact-link {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--gold-hover);
}

.contact-phone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-phone-row:hover {
    background: rgba(239, 208, 148, 0.15);
    border-color: var(--gold);
    transform: translateX(4px);
}

.contact-phone-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
}

.contact-phone-number {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color);
}

.contact-phone-row:hover .contact-phone-number {
    color: #1a1a1a;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: none;
    filter: grayscale(100%) contrast(120%) opacity(0.85);
    transition: filter 0.4s ease;
}

.map-container iframe:hover {
    filter: grayscale(0%) contrast(100%) opacity(1);
}

/* Footer */
footer {
    background-color: var(--section-alt);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo {
    font-size: 32px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-bottom {
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Page Header (for inner pages) */
.page-header {
    min-height: 380px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 170px;
    padding-bottom: 60px;
    background-color: var(--section-alt);
    position: relative;
}

.page-header h1 {
    font-size: 54px;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* Responsive */
/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}
header.transparent:not(.scrolled):not(.menu-open) .hamburger span {
    background-color: #ffffff;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

header.menu-open {
    background-color: var(--bg-color) !important;
}
header.menu-open .logo {
    color: var(--text-color) !important;
}

@media (max-width: 1024px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .team-grid, .services-grid, .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid, .process-grid, .gallery-grid {
        grid-template-columns: 1fr;
        row-gap: 45px;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 99;
    }
    
    nav.open {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        display: flex;
    }
    
    nav a {
        font-size: 24px;
        color: var(--text-color) !important;
    }
    
    .hero-title {
        font-size: 30px !important;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    section {
        padding: 85px 0;
        overflow-x: hidden;
    }

    .about {
        padding-bottom: 95px !important;
    }

    .about-text .btn {
        margin-top: 25px !important;
        margin-bottom: 25px !important;
        display: inline-block;
    }
    
    h1, h2, .about-text h2, .contact-info h2, .team h2, .services h2, section h2 {
        font-size: 28px !important;
        margin-bottom: 25px !important;
        word-wrap: break-word;
        max-width: 100%;
    }

    .logo {
        font-size: 22px !important;
        line-height: 1.2;
        max-width: 90%;
        word-wrap: break-word;
    }

    .footer-logo {
        font-size: 24px !important;
        word-wrap: break-word;
        max-width: 100%;
    }

    .custom-cursor {
        display: none !important;
    }

    .page-header {
        min-height: 300px;
        height: auto;
        padding-top: 140px;
        padding-bottom: 40px;
    }
    .page-header h1 {
        font-size: 34px;
    }
    
    /* Mobile Team Stack */
    .team-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .contact-card-premium {
        padding: 18px 20px;
        gap: 15px;
    }
    .founder-card-premium {
        padding: 26px 24px !important;
    }
    .founder-card-premium .contact-text-box h4 {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    .founder-card-premium .contact-text-box h3 {
        font-size: 24px !important;
        margin-bottom: 18px !important;
    }
    .founder-card-premium .contact-phone-row {
        max-width: 100% !important;
        padding: 12px 14px;
    }

    /* Mobile Lightbox */
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    .lightbox-prev {
        left: 15px;
    }
    .lightbox-next {
        right: 15px;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 32px;
    }
    .lightbox-img {
        max-width: 95vw;
        max-height: 75vh;
    }
}
