/* Kayacı Bilgisayar — Modern Corporate Design */
/* 30+ years in IT & Healthcare Informatics */

:root {
  --primary: #1a5276;
  --primary-light: #2e86c1;
  --primary-dark: #0c2d48;
  --accent: #8503A6;
  --accent-light: #a855c9;
  --surface: #ffffff;
  --bg: #f0f4f8;
  --bg-alt: #e8edf4;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --border: #dfe6e9;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-height: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  padding: 0 40px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.top-bar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.top-bar .brand img {
  height: 40px;
}

.top-bar .brand-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.top-bar .brand-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-top: -2px;
}

/* Navigation */
.top-bar nav { display: flex; align-items: center; gap: 5px; }

.top-bar nav a {
  color: rgba(255,255,255,0.7);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.top-bar nav a:hover,
.top-bar nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 80px 40px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/images/bg2.png') repeat;
  opacity: 0.06;
  pointer-events: none;
}

.hero .hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 15px auto 0;
  line-height: 1.7;
}

/* ===== CONTENT AREA ===== */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 40px;
}

.page-section { display: none; animation: pageIn 0.35s ease-out; }
.page-section.active { display: block; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION TITLES ===== */
.section-header {
  margin-bottom: 35px;
}

.section-header .label {
  font-size: 12px;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 6px;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

/* ===== NEWS SECTION ===== */
.news-grid { display: flex; flex-direction: column; gap: 20px; }

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px 30px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

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

.news-card .news-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.news-card h3 a { color: var(--primary-dark); }
.news-card h3 a:hover { color: var(--primary-light); }

.news-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.product-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.product-card h3 a { color: inherit; }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px;
  margin-bottom: 25px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--primary-light); }

.product-detail h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}

.product-detail p { margin-bottom: 12px; line-height: 1.8; }

.product-detail ul { margin: 15px 0 15px 0; list-style: none; }

.product-detail ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  margin-bottom: 2px;
  line-height: 1.6;
}

.product-detail ul li::before {
  content: '▸';
  position: absolute;
  left: 8px;
  color: var(--primary-light);
  font-weight: 700;
}

.product-detail ul li strong {
  color: var(--primary-dark);
}

/* ===== ABOUT ===== */
.about-content { max-width: 800px; }
.about-content p { margin-bottom: 16px; line-height: 1.8; }
.about-content .highlight-box {
  background: linear-gradient(135deg, rgba(26,82,118,0.05), rgba(46,134,193,0.08));
  border-left: 4px solid var(--primary-light);
  padding: 20px 25px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-weight: 500;
  color: var(--primary-dark);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.contact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.contact-item:hover { box-shadow: var(--shadow); }

.contact-item .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-light);
}

.contact-item h3 { font-size: 15px; color: var(--primary-dark); margin-bottom: 4px; }
.contact-item p { font-size: 13px; color: var(--text-light); }

/* Contact illustration */
.contact-illustration {
  text-align: center;
  padding: 50px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 25px;
}

.contact-illustration p {
  margin-top: 15px;
  color: var(--text-light);
  font-size: 14px;
}

/* ===== REFERENCES ===== */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.ref-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: var(--primary-dark);
  transition: all 0.2s;
}

.ref-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 50px 40px 30px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-inner h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.footer-inner ul { list-style: none; }
.footer-inner ul li { margin-bottom: 8px; }
.footer-inner ul li a { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-inner ul li a:hover { color: #fff; }

.footer-inner .footer-about p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .top-bar nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .top-bar nav.open { display: flex; }
  .top-bar nav a { padding: 12px 18px; width: 100%; }
  
  .hero { padding: 50px 20px 45px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  
  .content-wrapper { padding: 30px 20px; }
  .section-header h2 { font-size: 24px; }
  
  .product-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 25px; }
  .top-bar { padding: 0 20px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .top-bar .brand-text { font-size: 15px; }
  .top-bar .brand img { height: 32px; }
}
