@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --primary-color: #0e1936;
    --accent-color: #e84f35;
    --text-color: #333333;
    --light-bg: #f4f6f9;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --max-width: 1280px;
    --section-padding: 5rem 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 180px;
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}

header.scrolled {
    height: 90px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom-color: var(--border-color);
}

.logo img {
    height: 160px;
    object-fit: contain;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .logo img {
    height: 76px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* ===== LANGUAGE SELECTOR (PREMIUM BADGE SYSTEM) ===== */
.lang-selector {
    position: relative;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem 0;
    z-index: 1002;
}

.active-lang {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.active-lang:hover {
    border-color: var(--accent-color);
    background-color: var(--light-bg);
}

.lang-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: inline-block;
    vertical-align: middle;
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-width: 140px;
    z-index: 1001;
    padding: 0.4rem 0;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: var(--primary-color);
    text-align: left;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background-color: var(--light-bg);
    color: var(--accent-color);
}

.lang-dropdown a.active {
    background-color: var(--light-bg);
    color: var(--accent-color);
    font-weight: 700;
}

.mobile-menu-btn { display: none; }

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #1a2c5b;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* =====/* Hero Section */
.hero {
    margin-top: 180px;
    display: grid;
    grid-template-columns: 52% 48%;
    height: 520px;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6% 0 10%;
    max-width: 700px;
}

.hero-logo {
    width: 220px;
    max-width: 100%;
    margin-bottom: 1.8rem;
    display: block;
}

.hero-subtitle {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.hero-subtitle::before {
    content: '';
    width: 28px;
    height: 2px;
    background-color: var(--accent-color);
    flex-shrink: 0;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    color: var(--primary-color);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.hero h1 span { color: var(--accent-color); }

.hero p {
    font-size: 0.95rem;
    color: #555;
    max-width: 440px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-graphic {
    background-image: linear-gradient(135deg, #0e1936 0%, #1a2c5b 100%);
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
}

.hero-graphic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.04) 45%, transparent 50%);
    background-size: 200% 200%;
    animation: shimmer 10s infinite linear;
}

.hero-graphic-lines {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.15) 80px, rgba(255,255,255,0.15) 81px);
}

.hero-graphic-accent {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== FEATURES STRIP ===== */
.features {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    max-width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1;
    padding: 1.5rem 2.5%;
    border-right: 1px solid var(--border-color);
    transition: background 0.2s;
}

.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--light-bg); }

.feature-icon {
    font-size: 1.4rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.feature-text p {
    font-size: 0.78rem;
    color: #888;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
}

.section-inner {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

.text-block p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-img {
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 1.5rem;
}

.product-img img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    padding: 1.2rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
}

.btn-buy {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-buy:hover { background-color: #1a2c5b; color: var(--white); }

.btn-pdf {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.65rem 0.9rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-pdf:hover { background-color: #c43a22; color: var(--white); }

/* ===== SUBPAGE HERO ===== */
.subpage-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2c5b 100%);
    color: var(--white);
    padding: 7rem 10% 4rem;
    margin-top: 180px;
}

.subpage-hero h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.subpage-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 700px;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 10% 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: start;
}

.footer-logo-wrapper { margin-bottom: 1rem; }

.footer-logo {
    height: auto;
    width: 180px;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: #888;
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 340px;
    margin-bottom: 1.5rem;
}

.footer-partner {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-partner p {
    font-size: 0.72rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-partner a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #bbb;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-partner a:hover { color: var(--accent-color); }

.footer-partner-logo {
    height: 36px;
    width: auto;
    max-width: 160px;
    opacity: 0.65;
    transition: all 0.3s ease;
}

.footer-partner a:hover .footer-partner-logo {
    opacity: 1;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.4rem;
    color: var(--white);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.65rem; }

.footer-col ul li a {
    color: #888;
    font-size: 0.88rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover { color: var(--accent-color); }

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #888;
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
}

.contact-info li a { color: #888; }
.contact-info li a:hover { color: var(--accent-color); }

.contact-info i {
    color: var(--accent-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 16px;
}

.footer-map {
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 216px;
    transition: all 0.3s ease;
}

.footer-map:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(232, 79, 53, 0.15);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.9) contrast(1.2);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-map:hover iframe {
    opacity: 1;
    filter: grayscale(0.2) invert(0.9) contrast(1.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.2rem 0;
    color: #444;
    font-size: 0.78rem;
}

.footer-bottom a { color: #666; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--accent-color); }

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
    .hero { grid-template-columns: 55% 45%; height: 440px; }
    .hero h1 { font-size: 2.6rem; }
    .features { flex-wrap: wrap; }
    .feature-item { min-width: 33%; border-bottom: 1px solid var(--border-color); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    #hakkimizda .section-inner > div { gap: 2rem !important; }
}

@media (max-width: 768px) {
    header { padding: 0 5%; height: 96px; }
    .logo img { height: 72px; }
    nav ul { display: none; }
    .btn-primary { padding: 0.55rem 1rem; font-size: 0.75rem; }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1003;
        padding: 5px;
    }
    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Touch devices active state for lang selector */
    .lang-selector.active-dropdown .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    nav.mobile-open ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 96px;
        left: 0; right: 0;
        background: var(--white);
        padding: 1.5rem 6%;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 999;
        gap: 0.8rem;
    }

    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        margin-top: 96px;
    }
    .hero-graphic {
        order: -1;
        height: 200px;
        clip-path: none;
    }
    .hero-content { padding: 2.5rem 6% 3rem; }
    .hero-logo { width: 160px; margin-bottom: 1.2rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.9rem; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

    .features { flex-direction: column; }
    .feature-item { border-right: none; width: 100%; }

    .section { padding: 3rem 0; }
    .section-inner { width: 92%; }
    .section-title { font-size: 1.7rem; }

    #hakkimizda .section-inner > div {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    #hakkimizda .section-inner > div > div:last-child {
        padding: 2rem !important;
        gap: 1.5rem !important;
    }

    .products-grid { grid-template-columns: 1fr; width: 92%; }

    .subpage-hero { padding: 5rem 6% 3rem; }
    .subpage-hero h1 { font-size: 1.9rem; }

    footer { padding: 3rem 6% 0; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-logo { width: 150px; }
    .footer-desc { max-width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-graphic { height: 160px; }
    .products-grid { grid-template-columns: 1fr; }
}

/* Hero Graphic Logo Watermark */
.hero-graphic-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    opacity: 0.55;
    filter: brightness(0) invert(1);
    pointer-events: none;
    z-index: 2;
    transition: all 0.5s ease;
}

.hero:hover .hero-graphic-logo-container {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05);
}

.hero-graphic-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* ===== RTL STYLING (ARABIC) ===== */
html[lang="ar"] {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .logo {
    order: 0;
}

html[lang="ar"] nav {
    order: 1;
}

html[lang="ar"] .header-actions {
    order: 2;
    flex-direction: row-reverse;
}

html[lang="ar"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[lang="ar"] .lang-dropdown a {
    text-align: right;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

html[lang="ar"] .hero-graphic {
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}

html[lang="ar"] .hero-subtitle::before {
    margin-left: 0.8rem;
    margin-right: 0;
}

html[lang="ar"] .feature-item {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

html[lang="ar"] .feature-item:last-child {
    border-left: none;
}

html[lang="ar"] .feature-icon {
    order: 1;
}

html[lang="ar"] .feature-text {
    order: 0;
    text-align: right;
}

html[lang="ar"] .text-block {
    text-align: right;
}

html[lang="ar"] .footer-col h4::after {
    left: auto;
    right: 0;
}

html[lang="ar"] .contact-info li i {
    margin-right: 0;
    margin-left: 0.8rem;
}

html[lang="ar"] .footer-partner-logo {
    margin-right: 0;
    margin-left: 1rem;
}
