/* 
 * Hatice Güner WP - Main Styles 
 * Color Palette: Pure White (#FFFFFF), Jet Black (#000000), Barn Red (#7E1414)
 */

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body {
    background-color: var(--color-pure-white);
    color: var(--color-jet-black);
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    font-size: 1.125rem;
    font-weight: 300;
    color: #333333;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 5%;
    transition: padding var(--transition-speed) var(--transition-ease), background-color var(--transition-speed);
}

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

.site-branding a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-branding img {
    min-width: 128px;
    height: auto;
    /* User specified 50px clear space, handled by header padding mostly, but let's ensure logo doesn't hug elements */
    margin: 10px; 
}

.logo-fallback {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-subtext {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-barn-red);
    margin-top: 5px;
}

/* ==========================================================================
   Loader Overlay
   ========================================================================== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-pure-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-line {
    width: 0;
    height: 2px;
    background-color: var(--color-barn-red);
    animation: stitchLoad 1.5s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes stitchLoad {
    0% { width: 0; }
    50% { width: 100px; }
    100% { width: 100vw; opacity: 0; }
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-text, .reveal-card, .reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-text.active, .reveal-card.active, .reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Parallax Backgrounds
   ========================================================================== */
.parallax-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.15; /* Subtlety is key */
    pointer-events: none;
    will-change: transform;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    position: relative;
    max-width: 900px;
    text-align: center;
    padding: 0 5%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--color-jet-black);
    position: relative;
}

.hero-line-art {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-barn-red) 50%, transparent 50%);
    background-size: 100% 20px;
    animation: stitchScroll 2s linear infinite;
}

@keyframes stitchScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 20px; }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 150px 0;
    background-color: var(--color-pure-white);
    position: relative;
}

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

.about-header {
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--color-barn-red);
    margin-top: 20px;
}

.about-content p {
    font-size: 1.25rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   Services Section (Architectural Cards)
   ========================================================================== */
.services-section {
    position: relative;
    padding: 150px 0;
    background-color: var(--color-jet-black);
    color: var(--color-pure-white);
    overflow: hidden;
}

.services-section .parallax-bg {
    opacity: 0.1;
    filter: grayscale(100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-ease);
    cursor: default;
}

.service-card:hover {
    background-color: var(--color-pure-white);
    color: var(--color-jet-black);
    transform: translateY(-10px);
}

.card-icon {
    margin-bottom: 30px;
}

.icon-placeholder {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-pure-white);
    transition: border-color var(--transition-speed);
}

/* Specific icons using border tricks for minimalism */
.icon-chart { border-radius: 0 20px 0 0; }
.icon-ruler { width: 60px; height: 10px; border-style: dashed; }
.icon-needle { width: 2px; height: 50px; background: var(--color-pure-white); border: none; position: relative; }
.icon-needle::before { content: ''; position:absolute; top:-10px; left:-4px; width:10px; height:10px; border: 2px solid var(--color-pure-white); border-radius: 50%; }
.icon-briefcase { border-radius: 4px; border-width: 3px; position:relative; }
.icon-briefcase::before { content: ''; position:absolute; top:-10px; left:10px; width:16px; height:8px; border: 2px solid var(--color-pure-white); border-bottom: none; border-radius: 4px 4px 0 0; }

.service-card:hover .icon-placeholder { border-color: var(--color-barn-red); }
.service-card:hover .icon-needle { background: var(--color-barn-red); }
.service-card:hover .icon-needle::before { border-color: var(--color-barn-red); }
.service-card:hover .icon-briefcase::before { border-color: var(--color-barn-red); }


.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.card-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-speed);
}

.service-card:hover .card-desc {
    color: #555555;
}

.card-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-barn-red);
    transition: width var(--transition-speed) var(--transition-ease);
}

.service-card:hover .card-hover-line {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-jet-black);
    color: var(--color-pure-white);
    padding: 80px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.logo-fallback-footer {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-pure-white);
    letter-spacing: -2px;
}

.site-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.hover-line {
    position: relative;
    color: var(--color-pure-white);
    font-weight: 500;
}

.hover-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-barn-red);
    transition: width var(--transition-speed);
}

.hover-line:hover::after {
    width: 100%;
}
