/* ===== DESIGN TOKENS (High-Conversion Blue & Orange Theme) ===== */

:root {
    --bg-main: #ffffff; /* Saf Beyaz */
    --bg-secondary: #f8faff; /* Açık Mavi/Gri - Ferah */
    --bg-tertiary: #ffffff; /* Card içi vb. */
    
    --text-main: #1a202c; /* Koyu Lacivert/Siyah */
    --text-muted: #4a5568; /* Orta Gri - Accessibility uyumlu */
    
    --border-color: rgba(0, 113, 227, 0.12); /* Mavimsi border */
    
    --brand-blue: #0071e3;
    --brand-orange: #ff6b00;
    
    --accent-gradient: linear-gradient(135deg, #0071e3 0%, #00a1ff 100%); /* Güven Veren Mavi */
    --cta-gradient: linear-gradient(135deg, #ff7e00 0%, #ff5200 100%); /* Satış/Aksiyon Turuncusu */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

/* ===== UTILITIES ===== */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 140px 0;
    position: relative;
    z-index: 10;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cta-gradient); /* Alışverişe yönlendiren turuncu */
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 40px;
    font-weight: 700; /* Daha kalın */
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(255, 82, 0, 0.25);
}

.btn-primary:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 82, 0, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--brand-blue);
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid var(--brand-blue);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.25);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85); /* Beyaz, yüksek saydamlık */
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 14px 32px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Yumuşak gölge */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.logo-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-orange) 100%);
    border-radius: 2px;
    opacity: 0.7;
}

.logo-slogan {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo span {
    font-weight: 400;
    color: var(--text-muted);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-main);
}

/* ===== DROPDOWN MENU ===== */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
    padding: 10px 0; /* Artırılmış padding ile köprü oluşturma */
}

/* Dropdown hover esnasında okun dönmesi */
.nav-item-dropdown > a svg {
    transition: transform 0.3s ease;
}
.nav-item-dropdown:hover > a svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    min-width: 240px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    pointer-events: none; /* Görünmezken tıklanmayı engelle */
}

/* Menüye hover yapıldığında göster */
.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

/* Dropdown içindeki linkler */
.nav-links .nav-dropdown-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links .nav-dropdown-menu a:hover {
    background: rgba(255, 107, 0, 0.08); /* Turuncu hover arka plan */
    color: var(--brand-orange) !important; /* Turuncu metin */
    transform: translateX(4px);
}

/* Yukarı doğru küçük bir ok (Tail) */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(24px);
    z-index: -1;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Arka plandaki çok hafif renk patlaması (Apple Glow) */
.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, rgba(255,255,255,0) 70%); /* Turuncu parıltı */
    z-index: 0;
    pointer-events: none;
}

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

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 48px;
    letter-spacing: -0.015em;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-tertiary); /* Beyaz kart */
    border-radius: 24px;
    padding: 48px 32px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    background-color: var(--bg-main);
    padding-bottom: 160px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    display: flex;
    flex-direction: column-reverse;
    background: var(--bg-tertiary);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 0;
    aspect-ratio: 16/11;
    display: block;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-image-wrapper img {
    transform: scale(1.04);
}

.portfolio-info {
    text-align: left;
    padding: 24px 30px;
    margin: 0;
    max-width: none;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
}

.portfolio-info .category {
    font-size: 0.8rem;
    color: var(--brand-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-radius: 40px 40px 0 0;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 60px;
    background-color: #126d2e; /* Daha koyu WhatsApp yeşili (A11y AA uyumlu) */
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.whatsapp-text {
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== FEATURES SECTION ===== */
.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    position: relative;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
    line-height: 1.2;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-list li {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.icon-check {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-main), var(--bg-main)) padding-box, 
                var(--accent-gradient) border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.feature-list p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 50px;
    }
    .feature-text h2 {
        margin-bottom: 30px;
    }
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-main);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
    header {
        padding: 12px 0 0 0;
        width: 100%;
        top: 0;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .logo-container {
        padding: 0 20px;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .logo {
        font-size: 1.15rem; /* Uzun metin sığsın diye küçültüldü */
    }
    .logo-divider, .logo-slogan {
        display: none;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
    .nav-links {
        position: static;
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap; /* Yatay kaydırma yerine alt satıra geçme */
        width: 100%;
        padding: 0 20px 12px 20px;
        gap: 10px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        animation: none;
        margin-top: 0;
    }
    .nav-links > a, .nav-item-dropdown > a {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: var(--text-main) !important;
        width: auto;
        padding: 6px 12px;
        background: rgba(0,0,0,0.04);
        border-radius: 10px;
        border-bottom: none;
        display: inline-flex;
        transition: all 0.2s;
    }
    .nav-links > a:active, .nav-item-dropdown > a:active {
        background: rgba(0, 113, 227, 0.1);
        color: var(--brand-blue) !important;
    }
    .nav-item-dropdown {
        width: auto;
        display: inline-block;
        padding: 0;
    }
    .nav-item-dropdown > a svg {
        margin-left: 4px;
    }
    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        border-radius: 0;
        background: #f8faff;
        box-shadow: inset 0 4px 10px rgba(0,0,0,0.02), 0 10px 20px rgba(0,0,0,0.08);
        padding: 12px 20px;
        border: none;
        border-bottom: 1px solid var(--border-color);
        display: none;
        margin-top: 0;
        z-index: 999;
    }
    .nav-item-dropdown.active .nav-dropdown-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .nav-links .nav-dropdown-menu a {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        padding: 8px 16px;
        border-radius: 100px;
        background: white;
        color: var(--brand-blue) !important;
        border: 1px solid rgba(0, 113, 227, 0.15);
        white-space: nowrap;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }
    
    .hero { padding-top: 160px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
    .footer-content { flex-direction: column; gap: 32px; text-align: center; }
    
    .section { padding: 80px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .contact-info { padding: 20px !important; }
    .contact-info svg { width: 20px; height: 20px; }
    .hero h1 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
}

/* ===== MOBILE BOTTOM BAR ===== */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        display: none !important; /* Mobilde gizle, alttaki bar kullanılacak */
    }
    
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        z-index: 1000;
    }
    
    .mobile-bar-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 1.05rem;
        font-weight: 700;
        color: white !important;
        text-decoration: none;
        transition: var(--transition);
        border-radius: 0;
    }
    
    .call-btn {
        background: var(--brand-blue);
    }
    
    .call-btn:hover {
        background: #005bb5;
    }
    
    .whatsapp-btn {
        background-color: #126d2e; /* A11y uyumlu koyu yeşil */
        color: white;
    }
    .whatsapp-btn:hover {
        background: #1ebc59;
    }
    
    /* Footer altındaki boşluğu artır, bar arkasında kalmasın */
    body {
        padding-bottom: 65px !important;
    }
}
