﻿/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Colors */
:root {
  --primary: #002f87;
  --secondary: #8d9091;
  --text: #333b4a;
  --bg-gray: #f5f7fa;
  --border: #e5e7eb;
}

body { color: var(--text); background: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.top-bar { height: 40px; background: #fff; border-bottom: 1px solid var(--border); }
.top-bar-content { display: flex; justify-content: flex-end; align-items: center; height: 100%; gap: 16px; }
.search-btn, .lang-switch { background: none; border: none; cursor: pointer; color: var(--secondary); font-weight: bold; font-size: 14px; }
.divider-vertical { width: 1px; height: 16px; background: var(--border); }

/* Main Nav */
.main-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.main-nav-container { height: 80px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-menu { display: flex; gap: 32px; }
.nav-menu a { font-size: 13px; font-weight: 700; color: var(--secondary); letter-spacing: 0.5px; transition: color 0.2s; }
.nav-menu a:hover { color: var(--primary); }

.header-actions { display: flex; gap: 16px; align-items: center; }
.btn { padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); padding: 10px 24px; }
.mobile-menu-btn { display: none; }

/* Hero Slider */
.hero-slider { position: relative; width: 100%; height: 480px; overflow: hidden; }
.slider-track { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,0.3); color: #fff; border: none; z-index: 10; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.prev-btn { left: 24px; }
.next-btn { right: 24px; }
.slider-dots { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.dot.active { background: #fff; }

/* Quick Access */
.quick-access { background: var(--primary); border-radius: 12px; margin: -32px auto 0; max-width: 1152px; width: calc(100% - 48px); position: relative; z-index: 20; display: flex; box-shadow: 0 8px 32px rgba(0,47,135,0.2); }
.qa-container { display: flex; width: 100%; align-items: center; }
.qa-title { background: #001d54; color: #fff; font-weight: 700; padding: 24px 32px; border-radius: 12px 0 0 12px; font-size: 16px; }
.qa-links { display: flex; align-items: center; gap: 24px; padding: 0 32px; flex-grow: 1; justify-content: space-between; }
.qa-links a { color: #fff; font-weight: 600; font-size: 15px; }
.divider { color: rgba(255,255,255,0.2); }
.download-app { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 8px; }

/* Market Data */
.market-data { padding: 64px 0 32px; }
.market-tabs { display: flex; gap: 32px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab { background: none; border: none; color: var(--secondary); font-size: 16px; font-weight: 600; padding-bottom: 16px; cursor: pointer; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.tab.active { color: var(--primary); border-color: var(--primary); }
.ticker-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ticker-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ticker-name { font-size: 13px; color: var(--secondary); font-weight: 600; }
.ticker-value { font-size: 20px; font-weight: 800; color: var(--text); }
.ticker-change { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.up { color: #0d9e4f; }
.down { color: #e02020; }

/* Products */
.products { padding: 32px 0 64px; background: var(--bg-gray); }
.products h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.section-subtitle { font-size: 16px; color: var(--secondary); margin-bottom: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border-radius: 16px; padding: 32px; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; border: 1px solid rgba(0,0,0,0.05); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card-icon { width: 56px; height: 56px; border-radius: 16px; background: #f0f4ff; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.product-card p { font-size: 15px; color: var(--secondary); line-height: 1.6; margin-bottom: 24px; }
.card-link { font-weight: 700; color: var(--primary); font-size: 14px; }

/* Responsive */
@media(max-width: 1024px) {
  .nav-menu-container { display: none; }
  .mobile-menu-btn { display: block; }
  .ticker-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .qa-container { flex-direction: column; }
  .qa-title { width: 100%; border-radius: 12px 12px 0 0; }
  .qa-links { flex-direction: column; padding: 24px; gap: 16px; }
  .divider { display: none; }
}
@media(max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
  .ticker-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 320px; }
}
/* Append to styles.css */
.section { padding: 64px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.section-header h2 { font-size: 32px; font-weight: 800; color: #333b4a; margin-bottom: 8px; }
.section-subtitle { font-size: 15px; color: #8d9091; max-width: 600px; line-height: 1.5; }
.view-all { font-weight: 700; color: #002f87; font-size: 14px; white-space: nowrap; }

/* Market Grid */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 16px; }
.market-column { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.02); }
.market-column h3 { font-size: 18px; font-weight: 700; color: #333b4a; margin-bottom: 24px; }
.market-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.market-row:last-child { border-bottom: none; }
.market-name { display: flex; flex-direction: column; flex: 1; }
.market-name strong { font-size: 14px; color: #333b4a; }
.market-name span { font-size: 11px; color: #8d9091; margin-top: 2px; }
.market-price { font-size: 15px; font-weight: 700; color: #333b4a; width: 80px; text-align: right; margin-right: 16px; }
.market-badge { padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; width: 70px; text-align: right; }
.market-badge.up { background: #e6f6ec; color: #0d9e4f; }
.market-badge.down { background: #fce8e8; color: #e02020; }
.market-footer { font-size: 12px; color: #8d9091; display: flex; align-items: center; gap: 6px; }

/* News Grid */
.news-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.news-card { background: #f8f9fa; border-radius: 12px; padding: 32px; display: flex; flex-direction: column; transition: transform 0.2s; text-decoration: none; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.news-icon-large { margin-bottom: auto; }
.news-content h3 { font-size: 18px; font-weight: 700; color: #333b4a; margin-bottom: 12px; line-height: 1.4; text-transform: uppercase; }
.news-date { font-size: 13px; color: #8d9091; margin-bottom: 24px; display: block; }
.read-more { font-size: 14px; font-weight: 700; color: #002f87; margin-top: auto; }
.news-right-col { display: flex; flex-direction: column; gap: 24px; }
.wide-card { flex-direction: row; align-items: center; justify-content: space-between; }
.wide-card h3 { font-size: 16px; margin-bottom: 8px; }
.wide-card .news-date { margin-bottom: 0; }
.read-more-arrow { font-size: 20px; color: #002f87; font-weight: bold; }
.news-bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex: 1; }
.news-bottom-row .news-card { padding: 24px; }
.news-bottom-row h3 { font-size: 14px; }

/* YouTube */
.youtube-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.youtube-card { display: block; }
.yt-thumbnail { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 16px; aspect-ratio: 16/9; }
.yt-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.youtube-card:hover .yt-thumbnail img { transform: scale(1.05); }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: #ff0000; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.yt-play svg { width: 24px; height: 24px; }
.youtube-card h3 { font-size: 16px; font-weight: 700; color: #333b4a; line-height: 1.4; }

/* App CTA */
.app-cta-banner { background: linear-gradient(135deg, #002f87 0%, #0052cc 100%); border-radius: 24px; padding: 0 64px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; }
.app-cta-content { color: #fff; max-width: 500px; padding: 64px 0; position: relative; z-index: 2; }
.app-cta-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.app-cta-content p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; line-height: 1.6; }
.app-buttons { display: flex; gap: 16px; }
.store-btn { display: flex; align-items: center; gap: 12px; background: #000; color: #fff; padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); }
.store-text { display: flex; flex-direction: column; }
.store-text span { font-size: 10px; }
.store-text strong { font-size: 16px; font-weight: 600; }
.app-cta-mockup { width: 300px; height: 400px; position: relative; z-index: 1; margin-top: 64px; }
.mockup-phone { background: #fff; width: 260px; height: 500px; border-radius: 32px 32px 0 0; padding: 16px; border: 8px solid #333; position: absolute; bottom: 0; right: 0; box-shadow: -10px 10px 30px rgba(0,0,0,0.3); }
.phone-screen { background: #fff; width: 100%; height: 100%; }
.phone-header { font-size: 12px; font-weight: bold; text-align: center; margin-bottom: 16px; }
.phone-tabs { font-size: 16px; font-weight: bold; color: #002f87; text-align: center; margin-bottom: 24px; }
.phone-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.phone-row .blue { color: #002f87; }
.phone-row .green { color: #0d9e4f; }

@media(max-width: 768px) {
  .market-grid, .news-grid, .news-bottom-row, .youtube-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: 16px; }
  .app-cta-banner { flex-direction: column; padding: 32px; text-align: center; }
  .app-cta-mockup { display: none; }
  .app-buttons { flex-direction: column; }
}
/* Update Slider CSS */
.hero-slider { position: relative; width: 100%; aspect-ratio: 24/7; max-height: 480px; overflow: hidden; background: #002f87; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; z-index: 1; display: block; }
.slide.active { opacity: 1; z-index: 2; }
.slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* Hide baked-in buttons if any, style our own properly */
.slider-btn { position: absolute; bottom: 24px; top: auto; transform: none; width: 36px; height: 36px; border-radius: 8px; background: #fff; color: #002f87; border: none; z-index: 10; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.prev-btn { right: 72px; left: auto; }
.next-btn { right: 24px; }
.slider-btn svg { width: 18px; height: 18px; }

.slider-dots { position: absolute; bottom: 32px; left: 32px; transform: none; display: flex; gap: 8px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: all 0.2s; padding: 0; }
.dot.active { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.2); }

@media (max-width: 768px) {
  .hero-slider { aspect-ratio: 16/9; min-height: 200px; }
  .slider-btn { bottom: 16px; width: 32px; height: 32px; }
  .prev-btn { right: 56px; }
  .next-btn { right: 16px; }
  .slider-dots { bottom: 24px; left: 16px; }
}

@media (max-width: 480px) {
  .hero-slider { aspect-ratio: 4/3; }
}
/* Global Mobile Fixes */
html, body { max-width: 100vw; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section-header h2 { font-size: 24px; }
  .app-cta-content h2 { font-size: 28px; }
  .qa-links { padding: 16px; gap: 12px; align-items: flex-start; }
  .qa-links a { font-size: 14px; }
  .market-row { flex-wrap: wrap; }
}
/* Header Mobile Layout */
@media (max-width: 768px) {
  .main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px; }
  .logo { order: 1; margin: 0; }
  .nav-menu-container { display: none; }
  .header-actions { order: 3; display: flex; width: 100%; gap: 16px; margin-top: 16px; justify-content: space-between; }
  .mobile-menu-btn { order: 2; display: block; margin: 0; background: transparent; border: none; padding: 0; cursor: pointer; color: #002f87; }
  .header-actions .mobile-menu-btn { display: none; } /* Wait, if I hide it here, I need it outside. Let's just use CSS order */
}
/* Fix Header Mobile with Display Contents */
@media (max-width: 768px) {
  .header-actions { display: contents; }
  .mobile-menu-btn { order: 2; display: block; margin-left: auto; margin-right: 0; background: transparent; border: none; padding: 0; color: #002f87; }
  .btn-outline, .btn-primary { 
    order: 3; 
    width: calc(50% - 8px); 
    margin-top: 16px; 
    text-align: center; 
    padding: 12px 0; 
    font-size: 14px; 
    font-weight: 700;
    border-radius: 8px;
  }
  .btn-outline { border: 1px solid #002f87; color: #002f87; }
  .btn-primary { background: #001d54; color: #fff; border: none; }
}

/* Slider Mobile Responsive */
.mobile-slide { display: none; }
.desktop-slide { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }

@media (max-width: 768px) {
  .hero-slider { aspect-ratio: auto; height: 480px; }
  .desktop-slide { display: none !important; }
  .mobile-slide { display: flex; flex-direction: column; width: 100%; height: 100%; background: #0a3a99; }
  .mobile-slide-img { height: 50%; width: 100%; background-size: cover; background-position: right top; background-repeat: no-repeat; }
  .mobile-slide-content { padding: 32px 24px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; flex: 1; }
  .mobile-slide-content h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 24px; line-height: 1.4; }
  .slide-btn { background: #fff; color: #002f87; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
  
  /* Dots inside the blue area */
  .slider-dots { bottom: 24px; left: 24px; }
  /* Arrows hidden on mobile */
  .slider-btn { display: none !important; }
}
/* Mobile Menu Overlay Styles */
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 9999; display: none; overflow-y: auto; flex-direction: column; }
.mobile-menu-overlay.active { display: flex; }
.mobile-menu-inner { background: #fff; flex: 1; display: flex; flex-direction: column; min-height: 100%; }
.mobile-menu-header-bar { display: flex; justify-content: flex-end; padding: 8px 24px; border-bottom: 1px solid #e5e7eb; align-items: center; background: #f8f9fa; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
.close-menu-btn { background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.mobile-menu-actions { display: flex; gap: 16px; padding: 0 24px 24px; border-bottom: 1px solid #e5e7eb; }
.mobile-menu-actions .btn { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; border-radius: 8px; font-weight: 700; }
.mobile-accordion { list-style: none; margin: 0; padding: 0 24px; }
.mobile-accordion li { border-bottom: 1px solid #e5e7eb; }
.accordion-title { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; color: #333b4a; cursor: pointer; }
.accordion-title svg { color: #8d9091; }
.mobile-menu-footer-apps { margin-top: auto; padding: 32px 24px; display: flex; gap: 16px; justify-content: center; border-top: 1px solid #e5e7eb; }
.store-btn-black { display: flex; align-items: center; gap: 8px; background: #fff; color: #000; padding: 8px 16px; border-radius: 8px; border: 1px solid #000; text-decoration: none; flex: 1; justify-content: center; }
.store-btn-black:hover { background: #f8f9fa; }
.app-btn-text { display: flex; flex-direction: column; text-align: left; }
.app-btn-text span { font-size: 10px; line-height: 1; }
.app-btn-text strong { font-size: 14px; font-weight: 600; line-height: 1.2; }
/* Fix Header Height on Mobile */
@media (max-width: 768px) {
  .main-nav { height: auto !important; min-height: 72px; }
  .nav-menu-container { display: none; }
}
/* Mobile Quick Links Styles */
.mobile-quick-links { display: none; }
@media (max-width: 768px) {
  .mobile-quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding: 0 16px; }
  .mql-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; display: flex; align-items: center; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
  .mql-icon { width: 36px; height: 36px; background: #f0f4ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
  .mql-text { font-size: 14px; font-weight: 700; color: #002f87; flex: 1; line-height: 1.2; }
  .mql-arrow { flex-shrink: 0; margin-left: 8px; }
}
@media (max-width: 768px) {
  .main-nav-container { height: auto !important; }
}
/* Services Section Styles */
.services-section { overflow: hidden; }
.services-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
.srv-card { background: #f4f6f8; border-radius: 16px; padding: 32px 16px; display: flex; flex-direction: column; align-items: center; text-decoration: none; text-align: center; transition: transform 0.3s; }
.srv-card:hover { transform: translateY(-4px); }
.srv-icon { width: 56px; height: 56px; background: #1f64d0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.srv-text { font-size: 15px; font-weight: 700; color: #333b4a; line-height: 1.3; }
.srv-dots { display: none; }

.kurumsal-title { text-align: center; color: white; font-size: 28px; font-weight: 700; margin: 48px 0 32px; }
.kurumsal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }

/* Mobile responsive for services */
@media (max-width: 768px) {
  .services-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 16px; scrollbar-width: none; }
  .services-track::-webkit-scrollbar { display: none; }
  .services-track .srv-card { min-width: calc(50% - 8px); scroll-snap-align: start; padding: 24px 12px; }
  .srv-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
  .srv-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); display: block; }
  .srv-dot.active { background: transparent; border: 2px solid white; box-sizing: border-box; transform: scale(1.2); }
  .kurumsal-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .kurumsal-title { margin: 32px 0 24px; font-size: 20px; }
}
/* Mobile Slider Image Styles */
.mobile-slide-image { display: none; }
@media (max-width: 768px) {
  .mobile-slide-image { display: block; width: 100%; height: auto; object-fit: contain; }
  .slider-dots { display: none !important; } /* Hide real dots because baked into image */
  .hero-slider { height: auto; aspect-ratio: auto; } /* Let the image dictate height */
}
@media (max-width: 768px) {
  .hero-slider { height: auto !important; aspect-ratio: 507/547 !important; }
}
@media (max-width: 768px) {
  .hero-slider { height: auto !important; aspect-ratio: auto !important; background: transparent; }
  .slider-track { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; }
  .slide { position: relative !important; grid-column: 1; grid-row: 1; width: 100%; height: auto; }
  .slide img { width: 100%; height: auto; display: block; }
}
/* Solidify Mobile Header Layout */
@media (max-width: 768px) {
  .main-nav { 
    display: grid !important; 
    grid-template-columns: 1fr auto !important; 
    grid-template-areas: 'logo menu' 'actions actions' !important; 
    gap: 16px !important; 
    padding: 16px !important; 
    height: auto !important; 
  }
  .logo { grid-area: logo; margin: 0 !important; align-self: center; }
  .header-actions { 
    grid-area: actions; 
    display: flex !important; 
    width: 100% !important; 
    gap: 16px !important; 
    margin: 0 !important; 
  }
  .header-actions .btn { flex: 1 !important; margin: 0 !important; text-align: center; justify-content: center; width: auto !important; }
  .header-actions .mobile-menu-btn { 
    position: absolute !important; 
    top: 24px; 
    right: 16px; 
    display: block !important; 
    background: transparent; border: none; color: #002f87; padding: 0; 
  }
}
@media (max-width: 768px) {
  .main-nav { position: relative !important; }
}
@media (max-width: 768px) {
  .header-actions { display: flex !important; }
}
