/* =============================================
   NOVA Mimarlık & Tasarım - Style Sheet
   Minimal / Clean Architecture Aesthetic
   ============================================= */

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    white-space: pre-wrap;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
}

/* --- Selection --- */
::selection {
    background: #d4c5a9;
    color: #111;
}

::-moz-selection {
    background: #d4c5a9;
    color: #111;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f0;
}

::-webkit-scrollbar-thumb {
    background: #d4c5a9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #111;
}

/* --- Fade Up Animation --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }
.fade-up-delay-6 { transition-delay: 0.6s; }

/* --- Hero Section --- */
.hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* --- Section Spacing --- */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

/* --- Section Label --- */
.section-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(17, 17, 17, 0.35);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* --- Project Cards --- */
.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card .project-image {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

/* --- Image Placeholder (for demo without actual images) --- */
.img-placeholder {
    background: linear-gradient(135deg, #e8dfd0 0%, #d4c5a9 50%, #c4b494 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 100%);
}

.img-placeholder-dark {
    background: linear-gradient(135deg, #2a2a2a 0%, #111 50%, #1a1a1a 100%);
}

.img-placeholder-green {
    background: linear-gradient(135deg, #5a7028 0%, #4a5d23 50%, #3d4e1c 100%);
}

.img-placeholder-cream {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8dfd0 50%, #d4c5a9 100%);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: #111;
    color: #fff;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: all 0.4s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #4a5d23;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #111;
    border: 1px solid #111;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: all 0.4s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline:hover {
    background: #111;
    color: #fff;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: all 0.4s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-white:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* --- Divider Line --- */
.divider {
    width: 60px;
    height: 1px;
    background: #d4c5a9;
}

/* --- Filter Buttons --- */
.filter-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: rgba(17,17,17,0.4);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #111;
    border-color: #111;
}

/* --- Team Card --- */
.team-card .team-image {
    transition: transform 0.6s ease;
}

.team-card:hover .team-image {
    transform: scale(1.03);
}

/* --- Form Inputs --- */
.form-input {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(17,17,17,0.1);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #111;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-bottom-color: #4a5d23;
}

.form-input::placeholder {
    color: rgba(17,17,17,0.3);
    font-weight: 300;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img,
.gallery-item .img-placeholder {
    transition: transform 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:hover .img-placeholder {
    transform: scale(1.05);
}

/* --- Process Steps --- */
.process-step {
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3.5rem;
    bottom: -2rem;
    width: 1px;
    background: rgba(17,17,17,0.08);
}

.process-step:last-child::before {
    display: none;
}

/* --- Counter Animation --- */
.counter {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
}

/* --- Page Header --- */
.page-header {
    padding: 4rem 0 3rem;
}

@media (min-width: 1024px) {
    .page-header {
        padding: 6rem 0 4rem;
    }
}

/* --- Lightbox (for gallery) --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,0.95);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Horizontal Rule Styled --- */
.hr-styled {
    border: none;
    height: 1px;
    background: rgba(17,17,17,0.06);
}

/* --- Link Underline Effect --- */
.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #111;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
