/* =========================================
   VARIABLES
========================================= */
:root {
    --primary: #0b132b;    /* Dark Navy */
    --secondary: #1c2541;  /* Marine Dark */
    --tertiary: #3a506b;   /* Slate Gray Blue */
    --accent: #5bc0be;     /* Teal / Highlight */
    --light-bg: #f4f4f6;   /* Light Gray Background */
    --white: #ffffff;
    --text-dark: #2d3142;
    --text-light: #9ba4b5;
    
    --font-main: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   RESET & BASICS
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* =========================================
   LAYOUT UTILS
========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary); }
.text-white { color: var(--white) !important; }

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent);
    border-radius: 2px;
}
.divider-light { background-color: var(--white); opacity: 0.3; }

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #4eb0ad;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.icon {
    width: 24px;
    height: 24px;
}

/* =========================================
   HEADER & NAVBAR
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.2rem 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    height: 55px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--accent);
}

.dropdown-icon {
    width: 14px;
    height: 14px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    min-width: 140px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.lang-menu li a:hover {
    background-color: var(--bg-color);
    color: var(--accent);
}

@font-face {
    font-family: 'Twemoji Country Flags';
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065-E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2') format('woff2');
    font-display: swap;
}

.flag-icon {
    font-size: 1.2rem;
    font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiOne Color", sans-serif;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-menu-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    left: 0;
    transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(244,244,246,1) 0%, rgba(255,255,255,1) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title span {
    color: var(--accent);
}

.hero-desc {
    font-size: 1.1rem;
    margin: 1.5rem 0 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mockup-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.mockup-placeholder::before {
    display: none;
}

a.hero-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    pointer-events: none;
    width: auto;
    height: auto;
    text-decoration: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 5;
    pointer-events: auto;
}

.hero-slide.prev-1 {
    opacity: 0.6;
    transform: translate(calc(-50% - 130px), -50%) scale(0.85);
    z-index: 4;
    pointer-events: auto;
}

.hero-slide.next-1 {
    opacity: 0.6;
    transform: translate(calc(-50% + 130px), -50%) scale(0.85);
    z-index: 4;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hero-slide.prev-1 {
        transform: translate(calc(-50% - 90px), -50%) scale(0.8);
    }
    .hero-slide.next-1 {
        transform: translate(calc(-50% + 90px), -50%) scale(0.8);
    }
}

.hero-app-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 5;
}

.hero-app-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: none;
    position: relative;
    z-index: 5;
    white-space: nowrap;
}

.hero-slide.active .hero-app-title {
    color: var(--primary);
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.about-text h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    background: var(--light-bg);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
}

/* =========================================
   APPS SECTION
========================================= */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.app-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.app-title {
    margin-bottom: 1rem;
}

.app-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.app-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
    position: relative;
    margin-top: auto;
}

.app-link::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.app-link:hover::after {
    right: -25px;
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--light-bg);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-title {
    margin-bottom: 1rem;
}

.service-desc {
    margin-bottom: 0;
}

.service-highlight {
    margin-top: 4rem;
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border-left: 4px solid var(--accent);
}

.service-highlight p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* =========================================
   WHY US SECTION
========================================= */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-list {
    margin-top: 2rem;
}

.why-list li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check-icon {
    color: var(--accent);
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

/* =========================================
   PROCESS SECTION
========================================= */
.process-timeline {
    margin-top: 3rem;
}

.process-step {
    padding: 2rem;
    border-radius: var(--radius-md);
    background: var(--light-bg);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 5rem;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
    border: 1px solid var(--light-bg);
}

.step-icon {
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-title {
    margin-bottom: 0.5rem;
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.c-icon {
    font-size: 2rem;
}

.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.contact-form-area {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.2);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* =========================================
   LANGUAGE SPECIFIC TYPOGRAPHY
========================================= */
body[data-lang="tr"] .hero-title,
body[data-lang="es"] .hero-title,
body[data-lang="fr"] .hero-title,
body[data-lang="pt-BR"] .hero-title,
body[data-lang="de"] .hero-title {
    font-size: 2.6rem;
    line-height: 1.25;
}

body[data-lang="fr"] .hero-buttons,
body[data-lang="de"] .hero-buttons {
    flex-wrap: nowrap;
}

body[data-lang="fr"] .hero-buttons .btn,
body[data-lang="de"] .hero-buttons .btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    text-align: center;
}

body[data-lang="en"] .hero-title {
    font-size: 3.0rem;
    line-height: 1.2;
}

body[data-lang="zh"] .hero-title,
body[data-lang="ko"] .hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
}

/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
========================================= */
@media (max-width: 992px) {
    .hero-container,
    .about-grid,
    .why-us-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-header {
        text-align: center;
    }
    
    .divider {
        margin: 0 auto;
    }
    
    .stats-grid {
        margin-top: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body[data-lang="en"] .hero-title {
        font-size: 2.0rem;
    }

    body[data-lang="tr"] .hero-title,
    body[data-lang="es"] .hero-title,
    body[data-lang="fr"] .hero-title,
    body[data-lang="pt-BR"] .hero-title,
    body[data-lang="de"] .hero-title {
        font-size: 1.8rem;
    }

    body[data-lang="zh"] .hero-title,
    body[data-lang="ko"] .hero-title {
        font-size: 1.9rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-right {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-area {
        padding: 2rem;
    }
}

/* =========================================
   COOKIE BANNER
========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.15);
}

.cookie-text {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.cookie-link {
    color: var(--accent);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .cookie-text {
        padding-right: 2rem;
    }
}

/* =========================================
   SCROLL TO TOP BUTTON
========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: #4eb0ad;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}
