/* =========================================
   Navisteknoloji — Main Stylesheet
   ========================================= */

:root {
  --navy:       #1b1d30;
  --navy-light: #232d46;
  --blue:       #2e4473;
  --blue-light: #6799cb;
  --white:      #ffffff;
  --light:      #f0f5fb;
  --gray:       #6b7280;
  --dark-gray:  #374151;
  --border:     #e5e7eb;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --transition: all .3s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark-gray); background: var(--white); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.7; }

/* ---- UTILITIES ---- */
.container     { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section       { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { color: var(--navy); margin-bottom: .75rem; }
.section-title p  { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.text-blue { color: var(--blue-light); }
.text-navy { color: var(--navy); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; transition: var(--transition);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy     { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ---- HEADER ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0; transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(27,29,48,.95); backdrop-filter: blur(10px);
  padding: .75rem 0; box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.site-logo { display: flex; align-items: center; }
.site-logo img { max-height: 44px; width: auto; filter: brightness(0) invert(1); }

.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-menu > a,
.nav-dropdown > a {
  color: rgba(255,255,255,.85); padding: .5rem .875rem;
  border-radius: var(--radius); font-size: .95rem; font-weight: 500;
  transition: var(--transition);
}
.nav-menu > a:hover,
.nav-dropdown > a:hover { color: var(--white); background: rgba(255,255,255,.1); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: .7rem; opacity: .7; }
.dropdown-menu {
  position: absolute; top: calc(100% + .5rem); left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 230px; padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; color: var(--dark-gray) !important;
  padding: .625rem 1rem !important; border-radius: 6px; font-size: .9rem;
}
.dropdown-menu a:hover { background: var(--light) !important; color: var(--navy) !important; }

/* Language toggle */
.lang-toggle { display: flex; background: rgba(255,255,255,.15); border-radius: 6px; overflow: hidden; margin-left: 1rem; }
.lang-btn { padding: .375rem .75rem; color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600; transition: var(--transition); letter-spacing: .5px; }
.lang-btn.active { background: var(--blue); color: var(--white); }
.lang-btn:hover:not(.active) { color: var(--white); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(27,29,48,.90) 0%, rgba(35,45,70,.85) 50%, rgba(46,68,115,.75) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(103,153,203,.2) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-block; background: rgba(103,153,203,.2); color: var(--blue-light);
  border: 1px solid rgba(103,153,203,.4); padding: .375rem 1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--blue-light); }
.hero-subtitle { color: rgba(255,255,255,.75); font-size: 1.2rem; margin-bottom: 2.5rem; max-width: 600px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { display: block; width: 100%; }

/* ---- ABOUT ---- */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { color: var(--navy); margin-bottom: 1.25rem; }
.about-text p { color: var(--gray); margin-bottom: 1rem; font-size: 1.05rem; }
.about-image img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover; max-height: 480px;
}

/* ---- SERVICES ---- */
.services-section { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); transition: var(--transition); border-bottom: 3px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--blue-light); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--navy-light));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.service-card h3 { color: var(--navy); margin-bottom: .75rem; }
.service-card p  { color: var(--gray); font-size: .95rem; margin-bottom: 1.25rem; }
.service-link {
  color: var(--blue-light); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .25rem; transition: var(--transition);
}
.service-link:hover { gap: .5rem; }

/* ---- WHY US ---- */
.why-section { background: var(--navy); }
.why-section .section-title h2 { color: var(--white); }
.why-section .section-title p  { color: rgba(255,255,255,.6); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; }
.why-item { text-align: center; padding: 2rem 1.5rem; }
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-item h4 { color: var(--white); margin-bottom: .5rem; }
.why-item p  { color: rgba(255,255,255,.6); font-size: .9rem; }

/* ---- CTA BANNER ---- */
.cta-section { background: linear-gradient(135deg, var(--blue), var(--navy)); padding: 5rem 0; text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.1rem; }

/* ---- SERVICE DETAIL ---- */
.page-hero {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 8rem 0 4rem; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,29,48,.90) 0%, rgba(46,68,115,.80) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-breadcrumb { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 1rem; }
.page-breadcrumb a { color: var(--blue-light); }
.page-breadcrumb span { margin: 0 .5rem; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; }

.hizmet-content { padding: 5rem 0; }
.hizmet-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.hizmet-intro p { color: var(--gray); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.hizmet-scope { background: var(--light); border-radius: var(--radius-lg); padding: 2rem; margin-top: 2rem; }
.hizmet-scope h3 { color: var(--navy); margin-bottom: 1rem; font-size: 1.1rem; }
.hizmet-scope ul { display: flex; flex-direction: column; gap: .75rem; }
.hizmet-scope li { display: flex; align-items: center; gap: .75rem; color: var(--dark-gray); font-size: .95rem; }
.hizmet-scope li::before {
  content: '✓'; width: 22px; height: 22px; background: var(--blue); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.hizmet-sidebar { position: sticky; top: 100px; }
.value-box { background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; }
.value-box h3 { color: var(--blue-light); margin-bottom: 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.value-box p  { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.7; }
.cta-box { background: var(--light); border-radius: var(--radius-lg); padding: 2rem; text-align: center; }
.cta-box h3 { color: var(--navy); margin-bottom: .75rem; font-size: 1rem; }
.cta-box p  { color: var(--gray); font-size: .9rem; margin-bottom: 1.5rem; }
.cta-box .btn { width: 100%; justify-content: center; }

/* ---- CONTACT ---- */
.contact-section { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info h2 { color: var(--navy); margin-bottom: 1rem; }
.contact-info p  { color: var(--gray); margin-bottom: 2rem; line-height: 1.7; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-item-icon { width: 40px; height: 40px; background: var(--light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item-text h4 { color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .25rem; }
.contact-item-text p  { color: var(--gray); font-size: .95rem; }
.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .9rem; font-weight: 500; color: var(--dark-gray); margin-bottom: .5rem; }
.form-group input,
.form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 2px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: .95rem;
  color: var(--dark-gray); transition: var(--transition); background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group .error-msg { color: #ef4444; font-size: .8rem; margin-top: .25rem; display: none; }
.form-group.has-error input,
.form-group.has-error textarea { border-color: #ef4444; }
.form-group.has-error .error-msg { display: block; }
.form-submit { text-align: right; }
.form-success { display: none; background: #f0fdf4; border: 2px solid #86efac; border-radius: var(--radius); padding: 1rem; color: #166534; text-align: center; margin-top: 1rem; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .site-logo { display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .hizmet-grid  { grid-template-columns: 1fr; }
  .hizmet-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy); padding: 5rem 2rem 2rem;
    z-index: 999; gap: .5rem; overflow-y: auto;
  }
  .nav-menu.open > a { font-size: 1.1rem; padding: 1rem; }
  .nav-menu.open .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,.05); padding: .5rem;
  }
  .nav-menu.open .dropdown-menu a { color: rgba(255,255,255,.8) !important; }
  .nav-menu.open .lang-toggle { margin: 1rem 0 0; }
  .hamburger { display: flex; z-index: 1001; }
  .hero-buttons { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
