/* ===== Critical CSS for above-the-fold content + Layout Structure ===== */
/* Prevents CLS when style.css loads async */
/* All @font-face inline — no external font CSS needed */

/* Poppins Font - All self-hosted */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/poppins-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/poppins-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/poppins-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/poppins-800.woff2') format('woff2');
}

/* Font Awesome 6 - Self-hosted */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/fonts/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/webfonts/fa-regular-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/webfonts/fa-brands-400.woff2') format('woff2');
}


/* ===== CSS Variables ===== */
:root {
    --esular-orange: #f24726;
    --esular-orange-dark: #d93d1f;
    --esular-orange-light: #ff6b4a;
    --esular-blue: #6ABDE6;
    --white: #fff;
    --gray-100: #f8f9fa;
    --gray-200: #f1f2f6;
    --gray-400: #a8a7b5;
    --gray-500: #89879b;
    --gray-600: #706e81;
    --gray-800: #41404e;
    --gray-900: #2b2a35;
    --dark-bg: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    --dark-solid: #1a1a1a;
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --section-padding: 120px 0;
    --container-max: 1200px;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* AOS DISABLED - Tüm elementleri hemen görünür yap */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: clip;
}

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

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
}

h4 {
    font-size: 1.375rem;
    font-weight: 600;
}

p {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* ===== Layout ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--esular-orange) 0%, var(--esular-orange-dark) 100%);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--esular-orange);
    border: 2px solid var(--esular-orange);
}

.btn-white {
    background: var(--white);
    color: var(--esular-orange);
}

.btn-lg {
    padding: 20px 48px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.875rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

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

.header-logo img {
    height: 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-800);
    position: relative;
}

/* Underline pseudo-element - must be in critical to prevent CLS */
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--esular-orange);
}

/* Nav highlight button style */
.header-nav a.nav-highlight {
    background: linear-gradient(135deg, var(--esular-orange) 0%, var(--esular-orange-light) 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.header-nav a.nav-highlight::after {
    display: none;
}

/* Mega dropdown - position critical for CLS */
.nav-mega-dropdown {
    position: relative;
}

.nav-mega-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
}

.nav-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 720px;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    padding: 0;
    overflow: hidden;
}

/* Badge */
.badge-new {
    background: #2ecc71;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 6px;
}

@media (max-width: 1024px) {
    .nav-mega-dropdown {
        display: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    contain: layout style;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
    min-height: 400px;
    contain: layout style;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 8px;
    min-height: 1.2em;
}

.hero-typing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-typing-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    min-width: 300px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    margin-top: 4px;
}

.hero-image {
    position: relative;
}

.hero-image-main {
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius-lg);
}

.hero-float-card {
    position: absolute;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-float-card:nth-child(2) {
    top: 20%;
    right: -20px;
}

.hero-float-card:nth-child(3) {
    bottom: 20%;
    left: -20px;
}

/* ===== Features Section - Layout ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    border-radius: var(--border-radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h4 {
    margin-bottom: 16px;
    font-size: 1.375rem;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* ===== Solutions Section - Layout ===== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.solutions-grid>.solution-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.solution-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
}

.solution-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.solution-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.solution-card-content {
    position: relative;
    z-index: 2;
    padding: 32px;
}

/* ===== Statistics Section - Layout ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--border-radius);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* ===== Footer - Layout ===== */
.footer {
    background: var(--dark-solid);
    color: var(--white);
    padding: 80px 0 0;
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* ===== FAQ Section ===== */
.blog-content .faq-section,
.blog-content h2:has(+ .faq-item),
.faq-section {
    color: #1a1a2e;
}

.blog-content .faq-section h2,
.faq-section h2,
.faq-title {
    color: #1a1a2e !important;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.faq-item,
.blog-content .faq-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e8e8e8;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question,
.blog-content .faq-question,
.blog-content h3,
.blog-content strong {
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5;
}

.faq-answer,
.faq-answer p,
.blog-content .faq-answer,
.blog-content .faq-answer p,
.blog-content p {
    color: #333 !important;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #25D366 !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 32px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float a:hover {
    background-color: #128C7E !important;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5) !important;
}

.whatsapp-float a i {
    color: #fff !important;
    line-height: 1;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

/* ===== Trusted By - Layout ===== */
.trusted-by-section {
    padding: 4rem 0;
    text-align: center;
}

.trusted-by-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-item {
    flex: 0 0 auto;
}

.logo-item img {
    height: 40px;
    width: auto;
    max-width: 150px;
}

/* ===== Mobile Menu - Layout ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    transform: translateX(100%);
    overflow-y: auto;
    padding-top: 80px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 24px 20px 100px;
    min-height: calc(100vh - 80px);
}

/* ===== Responsive - Structural ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 1024px) {
    .trusted-logos {
        gap: 2rem;
    }

    .logo-item img {
        height: 35px;
        max-width: 130px;
    }
}

@media (max-width: 992px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
        margin-bottom: 40px;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    h1 {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    h3 {
        font-size: clamp(1.375rem, 4vw, 1.75rem);
    }

    p {
        font-size: 1rem;
    }

    .container {
        padding: 0 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 32px;
    }

    .hero-stat {
        text-align: center;
        padding: 16px 24px;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .trusted-by-section {
        padding: 3rem 0;
    }

    .trusted-logos {
        gap: 1.5rem 2rem;
    }

    .logo-item img {
        height: 30px;
        max-width: 110px;
    }

    /* Hero - Mobil (async CSS'i beklemeden tam stil) */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        min-height: auto;
        text-align: center;
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 16px;
        color: #fff;
    }

    .hero-description {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .hero-image {
        display: none;
    }

    .hero::before,
    .hero::after {
        display: none !important;
    }

    /* Blog hero */
    section.blog-detail-hero h1 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }

    .blog-content h1 {
        font-size: 1.3rem !important;
    }

    .blog-content h2 {
        font-size: 1.15rem !important;
    }

    .blog-content h3 {
        font-size: 1rem !important;
    }

    /* Animasyonları kapat */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

    h2 {
        font-size: 1.75rem;
    }

    .hero-typing-text {
        min-width: auto;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }

    .feature-card {
        padding: 24px;
    }

    .trusted-by-section {
        padding: 2.5rem 0;
    }

    .trusted-logos {
        gap: 1rem 1.5rem;
    }

    .logo-item img {
        height: 25px;
        max-width: 90px;
    }
}

/* ===== Product Hero - Layout ===== */
.product-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.product-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .product-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .product-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .product-hero-content {
        order: 1;
    }

    .product-hero-image {
        order: 0;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .product-hero {
        padding: 100px 0 48px;
    }

    .product-hero-container {
        gap: 32px;
    }

    .product-hero-image {
        max-width: 280px;
    }
}

/* ===== RTL Support - Layout ===== */
html[dir="rtl"] body,
body.rtl-mode {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .header-container,
.rtl-mode .header-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-nav,
.rtl-mode .header-nav {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-actions,
.rtl-mode .header-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-container,
.rtl-mode .hero-container {
    direction: rtl;
}

html[dir="rtl"] .hero-content,
.rtl-mode .hero-content {
    text-align: right;
}

html[dir="rtl"] .hero-buttons,
.rtl-mode .hero-buttons {
    justify-content: flex-start;
}

html[dir="rtl"] .hero-stats,
.rtl-mode .hero-stats {
    flex-direction: row-reverse;
}

html[dir="rtl"] .mobile-menu,
.rtl-mode .mobile-menu {
    direction: rtl;
    text-align: right;
}

@media (max-width: 992px) {

    html[dir="rtl"] .hero-content,
    .rtl-mode .hero-content {
        text-align: center;
    }

    html[dir="rtl"] .hero-buttons,
    .rtl-mode .hero-buttons {
        justify-content: center;
    }
}