:root {
    /* 2026 Innovative Palette: "The Obsidian Studio" */
    --base: #050505;
    /* Pitch Black Base */
    --surface: #0a0a0a;
    /* Elevated Graphite Surface */
    --surface-glass: rgba(20, 20, 20, 0.4);
    --accent: #ff8c00;
    /* Burned Amber - The Soul of the Wood */
    --accent-glow: rgba(255, 140, 0, 0.3);
    --text-high: #ffffff;
    --text-mid: #999999;
    --text-low: #333333;
    --border: rgba(255, 255, 255, 0.05);
    --border-bright: rgba(255, 255, 255, 0.1);

    /* Technical Spacing */
    --bento-gap: 16px;
    --radius-full: 999px;
    --radius-lg: 20px;
    --radius-sm: 8px;

    /* High-Fashion Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-serif: 'Tenor Sans', serif;

    /* Animation Tokens */
    --bezier: cubic-bezier(0.19, 1, 0.22, 1);
    --speed: 0.6s;
}

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

html,
body {
    scroll-behavior: smooth;
    background-color: var(--base);
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-mid);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-color: var(--base);
    background-image:
        radial-gradient(circle at 50% -20%, rgba(255, 140, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
    background-attachment: fixed;
    opacity: 0.98;
}

/* --- Noise Removed for Lucid Look --- */
/* body::after removed */

/* --- Tech Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    color: var(--text-high);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h1 {
    font-size: clamp(1.8rem, 8vw, 8rem);
    line-height: 0.95;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

a,
button {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: var(--speed) var(--bezier);
}

/* --- Containers --- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    overflow-x: hidden;
}

.pt-page {
    padding-top: 160px;
}

@media (max-width: 1024px) {
    .pt-page {
        padding-top: 110px;
    }
}

@media (max-width: 768px) {
    .pt-page {
        padding-top: 100px;
    }
}

/* --- Floating Header --- */
header.site-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: 64px;
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 12px;
    transition: var(--speed) var(--bezier);
}

header.site-header:hover {
    border-color: var(--border-bright);
    background: rgba(20, 20, 20, 0.6);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-high);
    margin-left: 10px;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin: 0 auto;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.nav-links a:hover {
    color: var(--accent);
}

.header-cta {
    background: var(--accent);
    color: var(--base);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    letter-spacing: 0.1em;
}

/* --- Hero Section 2026 --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 100px;
}

.hero-tag {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    margin-bottom: 24px;
    display: block;
    animation: fadeIn 2s var(--bezier);
}

.hero h1 span {
    display: block;
    overflow: hidden;
}

.hero h1 .word {
    display: inline-block;
    animation: slideInUp 1.2s var(--bezier) forwards;
    transform: translateY(100%);
}

.word-delay-1 {
    animation-delay: 0.1s !important;
}

.word-delay-2 {
    animation-delay: 0.2s !important;
}

.hero-meta {
    margin-top: 40px;
    display: flex;
    gap: 100px;
    animation: fadeIn 3s var(--bezier);
    position: relative;
    z-index: 2;
}

/* --- Hero Visual Expansion --- */
.hero-image-container {
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    width: 60%;
    height: 80vh;
    z-index: 1;
    pointer-events: none;
}

.hero-studio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    opacity: 0.6;
    mask-image: linear-gradient(to left, black 50%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, var(--base) 0%, transparent 60%);
}

.hero h1 {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.meta-item h5 {
    color: var(--text-low);
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.meta-item p {
    color: var(--text-mid);
    font-weight: 300;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: var(--bento-gap);
    margin-bottom: 80px;
}

.bento-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    padding: 60px 40px 80px 40px;
    /* Increased bottom padding to 80px */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.6s var(--bezier);
    min-height: 400px;
}

.bento-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.bento-content {
    position: relative;
    z-index: 3;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--base) 0%, transparent 80%);
    z-index: 2;
    opacity: 0.8;
}

.bento-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s var(--bezier), opacity 0.6s var(--bezier);
    opacity: 0.6;
}

.bento-item:hover .bento-img {
    transform: scale(1.05);
    opacity: 0.8;
}

.bento-1 {
    grid-column: span 8;
}

.bento-2 {
    grid-column: span 4;
}

.bento-3 {
    grid-column: span 5;
}

.bento-4 {
    grid-column: span 7;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

/* --- Carousel Controls --- */
.carousel-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-high);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--bezier);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--accent);
    color: var(--base);
    border-color: var(--accent);
    transform: scale(1.1);
}

.scroll-carousel {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    scroll-behavior: smooth;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.scroll-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.scroll-carousel .blog-card {
    min-width: 400px;
    flex: 0 0 400px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .scroll-carousel .blog-card {
        min-width: 280px;
        flex: 0 0 280px;
    }
}

/* --- Animation Keyframes --- */
@keyframes slideInUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDownHead {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* --- Reveal System --- */
.reveal {
    opacity: 0;
    animation: slideInUp 1.2s var(--bezier) forwards;
    animation-delay: var(--delay, 0s);
}

.reveal-fade {
    opacity: 0;
    animation: fadeIn 2s var(--bezier) forwards;
    animation-delay: var(--delay, 0s);
}

/* --- Blog Detail Refinements --- */
.header-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    backdrop-filter: blur(5px);
}

.detail-meta {
    font-size: 0.65rem;
    color: var(--text-low);
}

.blog-post-header h1 {
    font-weight: 400;
    color: var(--text-high);
}

/* --- Vision Grid Expansion --- */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.vision-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
}

.vision-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--bezier);
}

.vision-image:hover .vision-img {
    transform: scale(1.05);
}

.vision-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--base) 0%, transparent 100%);
    opacity: 0.4;
}

/* --- Mobile Fix --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    header.site-header {
        top: 12px;
        width: calc(100% - 24px);
        height: 56px;
        padding: 0 12px;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        /* Hide desktop nav */
    }

    .logo {
        margin-left: 10px;
        font-size: 0.9rem;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .bento-grid {
        grid-template-rows: auto;
    }

    .bento-item {
        grid-column: span 12 !important;
        min-height: auto;
        padding: 30px 20px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 24px;
        margin-top: 60px;
    }

    h1 {
        font-size: clamp(1.8rem, 8vw, 3.5rem);
        word-break: break-word;
    }

    .hero {
        padding-top: 140px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-image-container {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        height: 300px;
        margin-top: 20px;
    }

    .hero-studio-img {
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    }

    .hero-mask {
        display: none;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vision-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        word-break: break-word;
        line-height: 1.1;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .py-20 {
        padding: 40px 0;
    }

    /* Target inline styles common in the project */
    div[style*="padding: 100px 60px"] {
        padding: 40px 20px !important;
    }

    div[style*="padding: 60px"] {
        padding: 30px 15px !important;
    }

    /* Target specific grids in iletisim.php and hizmetler.php */
    div[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    div[style*="column-count: 3"] {
        column-count: 1 !important;
    }

    div[style*="position: sticky"] {
        position: static !important;
    }

    div[style*="padding: 40px"] {
        padding: 20px !important;
    }

    div[style*="padding-left: 40px"] {
        padding-left: 20px !important;
    }

    /* Fix category headers in hizmetler.php */
    .category-section>div[style*="padding: 60px"] {
        padding: 30px 20px !important;
        min-height: auto !important;
    }

    /* Fix contact form specific spacing */
    form[style*="gap: 32px"] {
        gap: 20px !important;
    }

    /* Landing Page Specifics */
    .page-hero-title {
        font-size: 2rem !important;
        margin-bottom: 20px !important;
        line-height: 1.1 !important;
    }

    /* Surgical Header Tweaks */
    .logo {
        font-size: 0.8rem !important;
        margin-left: 5px !important;
    }

    .header-cta {
        padding: 6px 14px !important;
        font-size: 0.65rem !important;
    }

    .mobile-menu-btn {
        width: 32px !important;
        gap: 4px !important;
    }

    .category-header-box {
        padding: 25px 15px !important;
    }

    .seo-hub-block {
        padding: 40px 15px !important;
        margin-top: 60px !important;
    }

    .seo-intro {
        margin-bottom: 40px !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .hero-tag {
        font-size: 0.6rem !important;
        letter-spacing: 0.2rem !important;
    }
}

/* --- Mobile Menu System --- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-high);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--base);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s var(--bezier);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-links a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-high);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-cta {
    background: var(--accent);
    color: var(--base) !important;
    padding: 15px 40px;
    border-radius: var(--radius-full);
    font-size: 1rem !important;
    margin-top: 20px;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--text-high);
    font-size: 3rem;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }
}