/* ==========================================================================
   KARACA STUDIOS - PREMIUM DESIGN SYSTEM & STYLING
   ========================================================================== */

:root {
    --bg-color: #f4f1ea;       /* Warm plaster / gallery off-white */
    --text-color: #1c1a17;     /* Charcoal / warm dark grey */
    --accent-color: #c5a059;   /* Matte muted gold */
    --accent-terracotta: #c86a4b; /* Editorial terracotta */
    --secondary-text: #767064; /* Soft warm grey */
    --border-color: rgba(28, 26, 23, 0.08);
    --border-color-hover: rgba(28, 26, 23, 0.2);
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-title: 'Cinzel', 'Times New Roman', serif;
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-micro: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(28, 26, 23, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(28, 26, 23, 0.3);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    z-index: 100;
    mix-blend-mode: difference; /* Beautiful overlap behavior with dark/light elements */
}

/* To ensure nav links stay readable even in blend mode, we use off-white color */
.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #fff; /* White color for difference blend mode */
    cursor: pointer;
}

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

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-micro);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: var(--transition-micro);
}

.nav-link:hover {
    color: #fff;
}

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

.btn-minimal {
    font-family: var(--font-sans);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-micro);
    display: inline-block;
    text-decoration: none;
}

.btn-minimal:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* ==========================================================================
   SCROLL ENGINE & FIXED LAYERS
   ========================================================================== */
#hero-scroll-container {
    width: 100%;
    /* Scroll height determines speed of GSAP animations */
    height: 480vh; 
    position: relative;
}

#fixed-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
    z-index: 10;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Background Title Layer */
#bg-text-layer {
    z-index: 1;
    text-align: center;
    pointer-events: none;
    will-change: transform, opacity, filter;
    opacity: 0.08; /* Subtly visible initially */
    filter: blur(5px);
}

.bg-title {
    font-family: var(--font-title);
    font-size: 10vw;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--text-color);
}

.bg-subtitle {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    margin-top: 10px;
    color: var(--secondary-text);
}

/* Hands Layer */
#hands-layer {
    z-index: 2;
    pointer-events: none;
}

.hands-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.hand-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps relative scale, position, and distance 100% locked */
    will-change: transform, filter, opacity;
}

#hand-left {
    /* Position is locked in the 100% canvas layer */
}

#hand-right {
    /* Position is locked in the 100% canvas layer */
}








/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: floatIndicator 3s ease-in-out infinite;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 1.5px solid var(--text-color);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 3px;
    height: 6px;
    background-color: var(--text-color);
    border-radius: 1.5px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--secondary-text);
}

@keyframes scrollWheel {
    0% { opacity: 0; top: 6px; }
    30% { opacity: 1; }
    80% { opacity: 0; top: 18px; }
    100% { opacity: 0; top: 6px; }
}

@keyframes floatIndicator {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==========================================================================
   CONTENT LAYER (SLIDES UP)
   ========================================================================== */
#content-layer {
    position: absolute;
    z-index: 20;
    top: 100vh; /* Positioned below screen initially */
    width: 100%;
    height: auto;
    background-color: var(--bg-color); /* Matches bg to hide hands */
    will-change: transform;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.02);
}

.content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 8% 60px 8%;
}

.content-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    margin-bottom: 60px;
    letter-spacing: -0.01em;
}

/* Services Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(28, 26, 23, 0.05);
    border-color: var(--border-color-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1;
    display: inline-block;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text-color);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--secondary-text);
    font-weight: 300;
}

/* Portfolio / Projects */
.showcase {
    /* Matches general warm plaster, no background gradient override needed */
}

.app-box {
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 20px 50px rgba(28, 26, 23, 0.02);
    transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Enable smooth transform transition only after GSAP entrance is complete */
.service-card.animation-done,
.app-box.animation-done {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-box:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 40px 80px rgba(28, 26, 23, 0.06);
}

.app-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon-wrapper {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.app-box:hover .app-icon-wrapper {
    transform: scale(1.03) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-details {
    flex: 1.6;
}

.text-gradient {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8c6a2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.app-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--secondary-text);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Feature List */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(28, 26, 23, 0.04);
    padding: 14px 20px;
    border-radius: 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
    transition: var(--transition-micro);
}

.feature-item:hover {
    background: rgba(197, 160, 89, 0.06);
    border-color: rgba(197, 160, 89, 0.2);
    transform: translateX(4px);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    background: rgba(197, 160, 89, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.check-icon svg {
    display: block;
}

/* Store Buttons & Badges */
.store-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition-micro);
    cursor: pointer;
    border: 1px solid transparent;
}

.store-btn img {
    display: block;
}

.store-btn:hover {
    background: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
    transform: translateY(-2px);
}

.status-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(28, 26, 23, 0.04);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    color: var(--secondary-text);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Blurred Confidential Content (Giresun Su Cepte) */
.blurred-content-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(28, 26, 23, 0.03);
}

.blurred-content {
    filter: blur(8px);
    opacity: 0.45;
    user-select: none;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.upcoming-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 5;
    background: rgba(244, 241, 234, 0.1);
}

.lock-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
    animation: lockPulse 2s ease-in-out infinite;
}

.lock-text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--secondary-text);
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.content-footer {
    padding: 80px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--secondary-text);
}

.footer-col h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.footer-link {
    display: block;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 12px;
    transition: var(--transition-micro);
    width: fit-content;
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-address {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin-top: 16px;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 0.75rem;
    color: var(--secondary-text);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    #bg-text-layer .bg-title {
        font-size: 12vw;
    }
    .app-box {
        flex-direction: column;
        gap: 40px;
        padding: 40px 30px;
        text-align: center;
    }
    .app-visual {
        flex: none;
    }
    .app-icon-wrapper {
        width: 180px;
        height: 180px;
    }
    .app-details {
        text-align: center;
    }
    .feature-list {
        text-align: left;
    }
    .store-buttons {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-col:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 4%;
    }
    .nav {
        display: none; /* Mobile menu would toggle in full app */
    }
    #bg-text-layer .bg-title {
        font-size: 14vw;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
    .text-gradient {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-col:first-child {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
