/* ===================================
   CETAMED - Professional Clean Design
   =================================== */

/* CSS Variables */
:root {
  /* Colors - Professional Palette */
  --primary: #0066cc;
  --primary-dark: #004c99;
  --primary-light: #3385d6;
  --secondary: #00a86b;
  --accent: #ff6b35;
  
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6b6b6b;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  
  /* Spacing - Consistent Layout */
  --max-width: 1140px;
  --section-padding: 80px 0;
  --container-padding: 0 24px;
  
  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===================================
   HEADER
   =================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1003;
}

.header__logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.header__logo-img:hover {
  opacity: 0.8;
}

.header__logo-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  display: none;
}

/* Mobile Toggle */
.header__nav-toggle {
  display: none;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.header__nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1003;
  padding: 10px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.header__nav-toggle-label span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* Overlay - Desktop'ta gizli */
.header__nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Navigation */
.header__nav {
  display: block;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  transition: var(--transition);
}

.header__nav-link:hover {
  color: var(--primary);
  background: rgba(0, 102, 204, 0.05);
}

.header__cta {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-left: 8px;
  transition: var(--transition);
}

.header__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ===================================
   HERO
   =================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-medium);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 600px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__button {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__button:first-child {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.25);
}

.hero__button:first-child:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
  transform: translateY(-2px);
}

.hero__button--secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

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

/* ===================================
   SECTIONS
   =================================== */

section {
  padding: var(--section-padding);
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ===================================
   ABOUT
   =================================== */

.about {
  background: var(--bg-white);
}

.about__title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text-dark);
}

.about__description {
  font-size: 1.125rem;
  color: var(--text-medium);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.about__list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.about__item {
  background: var(--bg-light);
  padding: 28px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  font-size: 1.0625rem;
  color: var(--text-medium);
  line-height: 1.7;
  transition: var(--transition);
}

.about__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  background: white;
}

/* ===================================
   SERVICES
   =================================== */

.services {
  background: var(--bg-light);
}

.services__title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 56px;
  text-align: center;
  color: var(--text-dark);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border);
  cursor: pointer;
}

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

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 168, 107, 0.08) 100%);
  border-radius: var(--radius);
}

.service-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-card__description {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ===================================
   PROJECTS
   =================================== */

.projects {
  background: white;
}

.projects__title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text-dark);
}

.projects__subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.project-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

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

.project-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 24px 12px;
  color: var(--text-dark);
  line-height: 1.4;
}

.project-card__description {
  font-size: 0.9375rem;
  color: var(--text-medium);
  margin: 0 24px 16px;
  line-height: 1.6;
  flex-grow: 1;
}

.project-card__status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 24px 12px;
}

.project-card__status--active {
  background: rgba(0, 168, 107, 0.12);
  color: var(--secondary);
}

.project-card__date {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin: 0 24px 24px;
}

/* ===================================
   MEDYADA BİZ
   =================================== */

.medyada {
  background: var(--bg-light);
}

.medyada__title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text-dark);
}

.medyada__subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.medyada__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.media-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.media-card__image-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.media-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-card:hover .media-card__image {
  transform: scale(1.08);
}

.media-card__body {
  padding: 28px;
}

.media-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.4;
}

.media-card__meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.media-card__excerpt {
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 20px;
}

.media-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.media-card__cta:hover {
  color: var(--primary-dark);
  gap: 10px;
}

/* ===================================
   CONTACT
   =================================== */

.contact {
  background: white;
}

.contact__title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 56px;
  text-align: center;
  color: var(--text-dark);
}

.contact__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.contact__form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact__form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.contact__form-group {
  margin-bottom: 24px;
}

.contact__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

.contact__input:focus,
.contact__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.08);
}

.contact__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.contact__checkbox-label input {
  margin-top: 2px;
  flex-shrink: 0;
}

.contact__submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.contact__submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.contact__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact__success-message {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(0, 168, 107, 0.08);
  color: var(--secondary);
  border-radius: 8px;
  font-size: 0.875rem;
  border: 1px solid rgba(0, 168, 107, 0.2);
}

.contact__info {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact__info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.contact__info p {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.contact__info strong {
  color: var(--text-dark);
  font-weight: 600;
}

.contact__info a {
  color: var(--primary);
  transition: var(--transition);
}

.contact__info a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #e0e0e0;
  padding: 56px 0 0;
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.footer__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.footer__link-list li {
  margin-bottom: 12px;
}

.footer__link-list a {
  color: #d0d0d0;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer__link-list a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer__social-icons {
  display: flex;
  gap: 12px;
}

.footer__social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer__social-icons a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer__social-icons img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.footer__contact p {
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: #d0d0d0;
}

.footer__contact a {
  color: var(--primary-light);
  transition: var(--transition);
}

.footer__contact a:hover {
  color: white;
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: #a0a0a0;
}

.footer__bottom a {
  color: var(--primary-light);
  transition: var(--transition);
}

.footer__bottom a:hover {
  color: white;
}

/* ===================================
   COOKIE BAR
   =================================== */

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(12px);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-bar p {
  margin: 0;
  font-size: 0.875rem;
  flex: 1;
}

.cookie-bar a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-bar__buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-bar__button {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.cookie-bar__button--accept {
  background: var(--primary);
  color: white;
}

.cookie-bar__button--accept:hover {
  background: var(--primary-dark);
}

.cookie-bar__button--reject {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-bar__button--reject:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===================================
   ANIMATIONS
   =================================== */

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

/* ===================================
   RESPONSIVE
   =================================== */

/* MOBİL MENÜ - TAM DÜZELTME */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .header__logo-tagline {
    display: none !important;
  }
  
  /* Toggle button göster */
  .header__nav-toggle-label {
    display: flex !important;
  }
  
  /* Navigation container - mobil */
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 100px 28px 40px;
    overflow-y: auto;
    z-index: 1002;
  }
  
  /* Menü açık durumu */
  .header__nav-toggle:checked ~ .header__nav {
    right: 0 !important;
  }
  
  /* Overlay göster */
  .header__nav-toggle:checked ~ .header__nav-overlay {
    display: block !important;
    opacity: 1 !important;
  }
  
  /* Hamburger animasyonu */
  .header__nav-toggle:checked + .header__nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: var(--primary);
  }
  
  .header__nav-toggle:checked + .header__nav-toggle-label span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  
  .header__nav-toggle:checked + .header__nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary);
  }
  
  /* Menü listesi */
  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  
  .header__nav-item {
    width: 100%;
  }
  
  .header__nav-link {
    display: block;
    padding: 16px 20px;
    font-size: 1.0625rem;
    border-radius: 10px;
    width: 100%;
  }
  
  .header__nav-link:active {
    background: rgba(0, 102, 204, 0.1);
  }
  
  .header__nav-cta {
    margin-top: 16px;
  }
  
  .header__cta {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 14px 24px;
  }
  
  .hero {
    min-height: auto;
    padding: 100px 0 64px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__button {
    width: 100%;
    justify-content: center;
  }
  
  .services__grid,
  .projects__grid,
  .medyada__grid {
    grid-template-columns: 1fr;
  }
  
  .contact__wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact__form,
  .contact__info {
    padding: 28px 20px;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__social-icons {
    justify-content: center;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .cookie-bar__buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-bar__button {
    width: 100%;
  }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header__logo-tagline {
    display: none;
  }
}

/* Desktop - menü normal halde */
@media (min-width: 769px) {
  .header__nav-toggle-label {
    display: none !important;
  }
  
  .header__nav-overlay {
    display: none !important;
  }
  
  .header__nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
}

/* Geniş ekranlar */
@media (min-width: 1200px) {
  .header__logo-tagline {
    display: block;
  }
}