/* assets/css/style.css */
:root {
    --primary-color: #f6a623; /* The orange/yellow from the screenshots */
    --secondary-color: #0b2239; /* Deep blue from hero/contact sections */
    --text-color: #333333;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #eaeaea;
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-highlight {
    color: var(--primary-color);
}

.section-subtitle {
    color: #4a90e2; /* Light blue accent */
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-subtitle.white {
    color: rgba(255,255,255,0.7);
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.section-title.white {
    color: var(--white);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #e59613;
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--white);
    padding: 12px 30px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.w-100 { width: 100%; }

/* Header */
.header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}

.logo-icon-small {
    color: var(--primary-color);
    background: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}
.logo-title.white { color: var(--white); }

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 2px;
}
.logo-subtitle.white { color: rgba(255,255,255,0.6); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .btn-primary {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 101;
}

/* Hero */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(11, 34, 57, 0.95) 0%, rgba(11, 34, 57, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.8);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.phone-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-features {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-desc p {
    font-size: 1.2rem;
    color: #555;
}

/* Services */
.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.services-header-desc {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #555;
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    color: #4a90e2;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-desc {
    color: #666;
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.process-num {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.process-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.process-desc {
    color: #666;
    font-size: 0.95rem;
}

/* Detail Section / Gallery */
.detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.detail-header-desc {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #555;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    height: 400px;
}

.gallery-item {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.gallery-item.large {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

/* Contact Section */
.contact-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-text h2 { margin-bottom: 0; }

/* Footer */
.footer {
    background-color: #081726;
    padding: 40px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right strong {
    color: var(--white);
    font-size: 1.1rem;
}

/* =============================================
   BOTTOM SHEET CHAT PANEL
   ============================================= */
.chat-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 34, 57, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.chat-bottom-sheet {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 420px;
    max-height: 85vh;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(11, 34, 57, 0.2), 0 0 0 1px rgba(0,0,0,0.04);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.chat-bottom-sheet.active {
    transform: translateY(0);
}

/* Handle / Tutamak */
.chat-sheet-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 4px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.handle-bar {
    width: 40px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.2s;
}

.chat-sheet-handle:hover .handle-bar {
    background: #94a3b8;
}

/* Sheet Body */
.chat-sheet-body {
    padding: 16px 28px 28px;
    overflow-y: auto;
    flex: 1;
    min-height: 500px;
}

/* Animations for form to chat transition */
.slide-down-out {
    animation: slideDownOut 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
.slide-up-in {
    animation: slideUpIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes slideDownOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}
@keyframes slideUpIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sheet-subtitle {
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sheet-title {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 6px;
    line-height: 1.3;
}

.sheet-desc {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-group-sheet {
    margin-bottom: 16px;
}

.form-group-sheet label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group-sheet input, .form-group-sheet textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8fafc;
}

.form-group-sheet input:focus, .form-group-sheet textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: var(--white);
}

.sheet-submit {
    padding: 14px;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 8px;
}

/* Chat Conversation Header */
.chat-conv-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.chat-conv-header h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
}

.chat-conv-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Custom Scrollbar for sheet */
.chat-sheet-body::-webkit-scrollbar {
    width: 5px;
}
.chat-sheet-body::-webkit-scrollbar-track {
    background: transparent;
}
.chat-sheet-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.chat-sheet-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile bottom sheet */
@media (max-width: 768px) {
    .chat-bottom-sheet {
        right: 0;
        left: 0;
        width: 100%;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
    }
}

/* Chat Conversation Styles */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.message.visitor {
    background-color: #f1f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.message.admin {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 500;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
}

.chat-input-area button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    width: 40px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .services-header, .detail-header, .contact-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .services-grid, .process-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .gallery-item {
        height: 250px;
    }
    .gallery-item.large {
        grid-column: 1 / -1;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .nav-menu { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .nav-menu .btn-primary {
        text-align: center;
        width: 100%;
        padding: 15px;
        margin-top: 10px;
    }

    .hero { padding: 80px 0; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.25s; }
.testimonials-grid .testimonial-card:nth-child(4) { transition-delay: 0.35s; }
.testimonials-grid .testimonial-card:nth-child(5) { transition-delay: 0.45s; }
.testimonials-grid .testimonial-card:nth-child(6) { transition-delay: 0.55s; }

.stats-bar .stat-item:nth-child(1) { transition-delay: 0.0s; }
.stats-bar .stat-item:nth-child(3) { transition-delay: 0.15s; }
.stats-bar .stat-item:nth-child(5) { transition-delay: 0.30s; }
.stats-bar .stat-item:nth-child(7) { transition-delay: 0.45s; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: var(--secondary-color);
    padding: 40px 0;
    overflow: hidden;
}

.stats-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 50px;
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials-section {
    padding: 100px 0;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-header .section-subtitle,
.testimonials-header .section-title {
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(11, 34, 57, 0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(11, 34, 57, 0.12);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.18;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 1.25rem;
    color: #ddd;
}

.star.filled {
    color: #f6a623;
}

.star.half {
    position: relative;
    color: #ddd;
    display: inline-block;
}

.star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f6a623;
}

.testimonial-text {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    margin-top: 4px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #1a4a7a);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.author-info strong {
    display: block;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.author-info span {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Responsive testimonials */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        padding: 10px 30px;
    }
}

/* =============================================
   MARQUEE (Sonsuz Kaydırma) — Testimonials
   ============================================= */
@keyframes marqueeLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.testimonials-section {
    padding: 80px 0 100px;
    overflow: hidden;
}

.testimonials-section .testimonials-header {
    margin-bottom: 50px;
}

.marquee-track {
    overflow: hidden;
    /* Kenar solma efekti */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    margin-bottom: 24px;
}

.marquee-inner {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.marquee-left {
    animation: marqueeLeft 28s linear infinite;
}

.marquee-right {
    animation: marqueeRight 32s linear infinite;
}

/* Hover'da dur */
.marquee-track:hover .marquee-left,
.marquee-track:hover .marquee-right {
    animation-play-state: paused;
}

/* Marquee içindeki kart genişliği sabit */
.marquee-inner .testimonial-card {
    width: 340px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .marquee-inner .testimonial-card {
        width: 280px;
    }
}


/* =============================================
   HERO CHANGING TEXT
   ============================================= */
.changing-text {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
    width: 4.3em; /* Genişlik daraltıldı, taşınır kelimesi daha yakın duracak */
    text-align: left;
}

.changing-text.hide {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
}

/* =============================================
   TEKLİF AL BUTONU HOVER EFEKTİ (Belge İkonu)
   ============================================= */
.quote-btn {
    position: relative;
}

.quote-btn::after {
    /* Küçük ve şık bir belge simgesi için SVG bg-image kullanalım */
    content: '';
    position: absolute;
    top: 50%;
    left: 80%;
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f6a623' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: cover;
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.quote-btn:hover::after {
    opacity: 1;
    transform: translate(-50%, -200%) scale(1.2) rotate(15deg);
}
