@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #E82C35; /* Orijinal logodaki dinamik kırmızı */
  --secondary-color: #3B3B3B; /* Logodaki 'tuna' yazısının füme/koyu gri rengi */
  --bg-color: #FFFFFF; /* Tertemiz beyaz arka plan */
  --surface-color: #FFFFFF;
  --surface-hover: #F8F9FA; /* Çok hafif gri */
  --text-primary: #1A1A1A; /* Okunabilir yumuşak siyah */
  --text-secondary: #6C757D; /* Yumuşak gri metinler */
  --border-color: #E9ECEF; /* Çok ince gri sınır çizgileri */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --header-height: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

/* Header */
header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; z-index: 1000; transition: all 0.4s ease;
}
header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03); border-bottom: 1px solid var(--border-color); }
header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.logo:hover {
  opacity: 0.8;
}

.nav-links { display: flex; gap: 32px; }
.nav-links a { 
  font-size: 15px; font-weight: 500; color: var(--text-secondary); 
  position: relative; transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--secondary-color); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background: var(--primary-color); transition: all 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-primary {
  background: var(--primary-color); color: #FFF !important; padding: 14px 32px; border-radius: 8px;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer; display: inline-block;
  transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(232, 44, 53, 0.2);
}
.btn-primary:hover { 
  background: #D12028; transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(232, 44, 53, 0.3); 
}

.btn-secondary {
  background: transparent; color: var(--secondary-color) !important; padding: 14px 32px; border-radius: 8px;
  font-weight: 600; font-size: 15px; border: 2px solid var(--border-color); display: inline-block;
  transition: all 0.3s ease;
}
.btn-secondary:hover { border-color: var(--secondary-color); background: var(--surface-hover); }

/* Page Header */
.page-header {
  padding: calc(var(--header-height) + 80px) 0 80px; text-align: center;
  background: var(--surface-hover); border-bottom: 1px solid var(--border-color);
}
.page-header h1 { font-size: 52px; margin-bottom: 20px; color: var(--secondary-color); letter-spacing: -1.5px; }
.page-header p { font-size: 18px; color: var(--text-secondary); max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: var(--header-height); background: var(--bg-color); overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 800px; position: relative; z-index: 2; }
.hero-tag {
  display: inline-block; color: var(--primary-color); font-size: 14px; font-weight: 600; 
  margin-bottom: 24px; padding: 8px 16px; border-radius: 30px; background: rgba(232, 44, 53, 0.08);
}
.hero h1 { font-size: 64px; line-height: 1.1; margin-bottom: 24px; color: var(--secondary-color); letter-spacing: -2px; font-weight: 800; }
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 20px; color: var(--text-secondary); margin-bottom: 40px; max-width: 600px; line-height: 1.8; }
.hero-stats { display: flex; gap: 64px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.stat-item h3 { font-size: 36px; color: var(--secondary-color); margin-bottom: 4px; font-weight: 800; }
.stat-item p { font-size: 13px; color: var(--text-secondary); margin-bottom: 0; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.hero-buttons { display: flex; gap: 16px; margin-top: 40px; margin-bottom: 48px; }
.mobile-menu-btn { display: none; cursor: pointer; padding: 4px; z-index: 1001; }

/* Sections */
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 42px; margin-bottom: 16px; color: var(--secondary-color); letter-spacing: -1px; }
.section-header p { color: var(--text-secondary); font-size: 18px; max-width: 700px; margin: 0 auto; }

/* Services Grid */
.tefas-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.service-detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 32px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.service-card {
  background: var(--surface-color); border: 1px solid var(--border-color); padding: 48px 40px;
  border-radius: 16px; transition: all 0.4s ease; box-shadow: 0 10px 40px rgba(0,0,0,0.02);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 20px 50px rgba(0,0,0,0.06); }
.service-icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; 
  background: rgba(232, 44, 53, 0.08); color: var(--primary-color); border-radius: 16px; font-size: 24px;
}
.service-card h3 { font-size: 24px; margin-bottom: 16px; color: var(--secondary-color); font-weight: 700; }
.service-card p { color: var(--text-secondary); font-size: 16px; margin-bottom: 32px; flex-grow: 1; line-height: 1.8; }
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 500; color: var(--text-primary); }
.feature-item i { color: var(--primary-color); font-size: 16px; }

/* Teams */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.team-card { background: var(--surface-color); border: 1px solid var(--border-color); padding: 40px 32px; text-align: center; border-radius: 16px; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.team-card:hover { border-color: transparent; transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--primary-color); background: rgba(232, 44, 53, 0.05); }
.team-card h4 { font-size: 22px; margin-bottom: 4px; color: var(--secondary-color); }
.team-card h5 { color: var(--primary-color); font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.team-card p { color: var(--text-secondary); font-size: 15px; text-align: left; margin-top: 24px; border-top: 1px solid var(--border-color); padding-top: 24px; }

/* Timeline / History */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background: var(--border-color); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-item { padding: 0 50px 60px 50px; position: relative; width: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 16px; height: 16px; right: -8px; background: var(--primary-color); border: 4px solid var(--surface-color); top: 6px; border-radius: 50%; z-index: 1; box-shadow: 0 0 0 2px var(--border-color); }
.left { left: 0; text-align: right; }
.right { left: 50%; text-align: left; }
.right::after { left: -8px; }
.timeline-content { position: relative; background: var(--surface-color); padding: 32px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.timeline-content h3 { font-size: 22px; color: var(--secondary-color); margin-bottom: 12px; }
.timeline-content p { color: var(--text-secondary); font-size: 15px; }

/* FAQ */
.faq-item { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 16px; padding: 24px 32px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.01); }
.faq-item:hover { border-color: rgba(0,0,0,0.1); box-shadow: 0 10px 25px rgba(0,0,0,0.03); }
.faq-item h4 { font-size: 18px; margin-bottom: 16px; color: var(--secondary-color); }
.faq-item p { color: var(--text-secondary); font-size: 16px; margin: 0; line-height: 1.8; }

/* Process Steps */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.process-step { position: relative; padding: 40px 24px; background: var(--surface-color); border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.process-step-num { width: 64px; height: 64px; background: rgba(232, 44, 53, 0.08); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin: 0 auto 24px; font-family: var(--font-heading); }
.process-step h4 { font-size: 20px; margin-bottom: 16px; color: var(--secondary-color); }
.process-step p { color: var(--text-secondary); font-size: 15px; }

/* Content Blocks */
.content-block { margin-bottom: 64px; }
.content-block h2 { color: var(--secondary-color); font-size: 36px; margin-bottom: 24px; letter-spacing: -1px; }
.content-block h3 { font-size: 26px; margin-bottom: 20px; color: var(--secondary-color); }
.content-block p { color: var(--text-secondary); font-size: 17px; margin-bottom: 24px; line-height: 1.8; }
.content-block ul { margin-left: 0; margin-bottom: 32px; }
.content-block li { margin-bottom: 12px; list-style-type: none; position: relative; padding-left: 24px; font-size: 16px; color: var(--text-primary); }
.content-block li::before { content: '•'; position: absolute; left: 0; color: var(--primary-color); font-size: 20px; font-weight: bold; }

/* Table */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface-color); border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
table th { font-weight: 600 !important; font-size: 15px; color: var(--secondary-color) !important; background: var(--surface-hover); padding: 20px; border-bottom: 1px solid var(--border-color) !important; text-align: left; }
table td { font-weight: 400 !important; font-size: 15px; padding: 20px; border-bottom: 1px solid var(--border-color) !important; color: var(--text-primary); }
table tr:last-child td { border-bottom: none !important; }

/* Contact Section */
.contact-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-details { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; }
.contact-item-icon { width: 56px; height: 56px; background: rgba(232, 44, 53, 0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 24px; }
.contact-item-content h4 { font-size: 18px; margin-bottom: 4px; color: var(--secondary-color); font-weight: 600; }
.contact-item-content p { color: var(--text-secondary); font-size: 16px; margin-bottom: 0; }
.contact-form { background: var(--surface-color); padding: 48px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--secondary-color); }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--surface-hover); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px 16px; color: var(--text-primary); font-family: var(--font-main); font-size: 15px; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); background: var(--surface-color); box-shadow: 0 0 0 3px rgba(232, 44, 53, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn { width: 100%; margin-top: 8px; }

/* Footer */
footer { border-top: 1px solid var(--border-color); padding: 80px 0 40px; background: var(--surface-hover); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 64px; }
.footer-col h3 { font-size: 16px; margin-bottom: 24px; color: var(--secondary-color); font-weight: 700; }
.footer-col p { color: var(--text-secondary); font-size: 15px; margin-bottom: 24px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-color); }
.social-links { display: flex; gap: 16px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-color); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.3s ease; }
.social-links a:hover { background: var(--primary-color); color: #FFFFFF; border-color: transparent; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); font-size: 14px; }
.footer-legal a { margin-left: 24px; color: var(--text-secondary); }
.footer-legal a:hover { color: var(--secondary-color); }

/* Responsive */
@media (max-width: 1200px) {
  .hero-stats { gap: 32px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 992px) {
  .hero h1 { font-size: 48px; }
  .hero-stats { flex-direction: column; gap: 32px; margin-top: 40px; padding-top: 24px; }
  .contact-container, .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; text-align: left; }
  .left { text-align: left; }
  .left::after, .right::after { left: 23px; }
  .right { left: 0%; }
  
  /* Reset Service Rows & TEFAS */
  .service-detail-row { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .service-detail-row > div { order: 0 !important; }
  .tefas-section-grid { grid-template-columns: 1fr; padding: 32px !important; text-align: center; }
  
  /* Reset Hero Buttons */
  .hero-buttons { flex-direction: column; align-items: stretch; max-width: 300px; margin-left: auto; margin-right: auto; }
  .hero-buttons a { width: 100%; }

  /* Mobile Nav Menu */
  .nav-links {
    flex-direction: column; position: absolute; top: var(--header-height); left: 0; width: 100%;
    background: var(--surface-color); padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path 0.4s ease; gap: 16px;
  }
  .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .nav-links a { font-size: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; display: block; }
  .nav-links a::after { display: none; }
  
  .mobile-menu-btn { display: block; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
  .header-actions { display: none !important; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .page-header h1 { font-size: 36px; }
  .page-header p { font-size: 16px; }
  
  .form-row, .process-grid { grid-template-columns: 1fr; }
  .section-padding { padding: 60px 0; }
  .section-header h2 { font-size: 32px; }
  
  /* Mobile Header */
  header .container { padding: 0 16px; }
  .logo img { height: 36px !important; }
  .header-actions a { padding: 8px 16px !important; font-size: 12px !important; }
  
  /* Cards */
  .service-card { padding: 32px 24px; }
  .service-icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 24px; }
  .service-card h3 { font-size: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-tag { font-size: 12px; }
  .header-actions { display: none !important; } /* Complete mobile hide, assume hamburger handles it */
}

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 9999; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.1); transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 -10px 40px rgba(0,0,0,0.2); }
.cookie-banner.show { bottom: 0; }
.cookie-banner p { margin: 0; font-size: 15px; color: #E0E0E0; line-height: 1.6; }
.cookie-banner a { color: var(--primary-color); text-decoration: underline; font-weight: 600; }
@media (max-width: 768px) { .cookie-banner .container { flex-direction: column; text-align: center; gap: 16px; } }

/* Warning Modal */
.warning-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 15, 28, 0.85); backdrop-filter: blur(8px);
    z-index: 99999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease; padding: 16px;
}
.warning-modal-overlay.show { opacity: 1; visibility: visible; }
.warning-modal-content {
    background: linear-gradient(135deg, #F33945 0%, #DF1453 100%);
    border-radius: 16px; width: 100%; max-width: 1000px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5); color: #FFF;
    display: flex; flex-direction: column; max-height: 90vh;
    transform: scale(0.95) translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.warning-modal-overlay.show .warning-modal-content { transform: scale(1) translateY(0); }
.warning-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 32px 0 32px;
}
.close-modal-btn {
    background: transparent; border: none; color: #FFF; font-size: 24px;
    cursor: pointer; opacity: 0.8; transition: opacity 0.3s;
}
.close-modal-btn:hover { opacity: 1; }
.warning-modal-body {
    padding: 32px; overflow-y: auto; text-align: center;
    scrollbar-width: none; -ms-overflow-style: none;
}
.warning-modal-body::-webkit-scrollbar { display: none; }
.warning-modal-body h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: 1px; color: #FFF; }
.warning-modal-body h4 { font-size: 18px; font-weight: 600; margin-bottom: 24px; color: #FFF; }
.warning-modal-body p { font-size: 15px; line-height: 1.6; margin-bottom: 16px; color: #FFF; }
.ihbar-links { margin: 16px 0; color: #FFF; }
.ihbar-links a { color: #FFF; text-decoration: underline; font-weight: 400; font-size: 15px; display: inline-block; margin-top: 2px; }
.ihbar-links a:hover { opacity: 0.8; }
.modal-social-text { font-size: 15px; margin-bottom: 16px; display: flex; flex-direction: column; align-items: center; color: #FFF; }
.modal-social-text ul { list-style-type: disc; text-align: left; margin-top: 8px; padding-left: 20px; }
.modal-social-text li { margin-bottom: 4px; }
.modal-socials { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.modal-socials a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #FFF; font-size: 14px; transition: all 0.3s; text-decoration: none; }
.modal-socials a:hover { background: #FFF; color: #DF1453; }
@media (max-width: 768px) {
    .warning-modal-content { max-height: 92vh; margin: 0 16px; }
    .warning-modal-header { padding: 12px 16px; }
    .close-modal-btn { font-size: 20px; }
    .warning-modal-body { padding: 16px; }
    .warning-modal-body h3 { font-size: 18px; margin-bottom: 4px; }
    .warning-modal-body h4 { font-size: 14px; margin-bottom: 12px; }
    .warning-modal-body p { font-size: 13px; margin-bottom: 10px; line-height: 1.5; }
    .ihbar-links { padding: 12px; margin: 12px 0; }
    .ihbar-links a { font-size: 13px; }
    .modal-socials { gap: 12px; margin-top: 12px; }
    .modal-socials a { width: 36px; height: 36px; font-size: 16px; }
}
