:root {
  --bg-color: #1f1f1f;
  --bg-color-alt: #000000;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --btn-primary-bg: #2997ff;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: rgba(255, 255, 255, 0.1);
  --btn-secondary-text: #f5f5f7;
  --nav-bg: rgba(31, 31, 31, 0.7);
  --nav-bg-alt: rgba(0, 0, 0, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --icon-filter: invert(1);

  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: dark light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-color: #fbfbfb;
    --bg-color-alt: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --btn-primary-bg: #0071e3;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: rgba(0, 0, 0, 0.1);
    --btn-secondary-text: #1d1d1f;
    --nav-bg: rgba(255, 255, 255, 0.7);
    --nav-bg-alt: rgba(245, 245, 245, 0.7);
    --border-color: rgba(0, 0, 0, 0.1);
    --icon-filter: none;
  }
}

:root[data-theme="light"] {
  --bg-color: #fbfbfb;
  --bg-color-alt: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --btn-primary-bg: #0071e3;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: rgba(0, 0, 0, 0.1);
  --btn-secondary-text: #1d1d1f;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-bg-alt: rgba(245, 245, 245, 0.7);
  --border-color: rgba(0, 0, 0, 0.1);
  --icon-filter: none;
}

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

html {
  background-color: var(--bg-color);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
}

main {
  width: 100%;
  overflow: visible;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.ripple {
  display: inline-block;
  position: relative;
  width: 120px;
  height: 120px;
}
.ripple::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--text-primary);
  opacity: 0;
  animation: rippleanim 0.9s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
@keyframes rippleanim {
  0% {
    transform: scale(0.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.reveal.active {
  opacity: 1;
}

/* Inner elements stagger animation */
.reveal-item {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition:
    opacity 1.2s cubic-bezier(0.15, 0, 0.15, 1),
    transform 1.2s cubic-bezier(0.15, 0, 0.15, 1);
  will-change: opacity, transform;
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Specific reveal types */
.reveal-text.active {
  animation: textReveal 1.2s cubic-bezier(0.15, 0, 0.15, 1) forwards;
}

.reveal-image {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  transition:
    transform 1.6s cubic-bezier(0.15, 0, 0.15, 1),
    opacity 1.6s cubic-bezier(0.15, 0, 0.15, 1);
  will-change: transform, opacity;
}

.reveal-image.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(40px) skewY(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 48px;
  background-color: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.8s ease;
  padding: 0 20px;
}

.navbar.alt {
  background-color: var(--nav-bg-alt);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lang-selector {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.lang-btn:hover {
  opacity: 1;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.theme-btn:hover {
  opacity: 1;
}

.theme-icon {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.lang-btn .icon {
  width: 16px;
  height: 16px;
  filter: var(--icon-filter);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background-color: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-dropdown.show {
  display: flex;
  margin-right: 1em !important;
}

.lang-option {
  overflow-x: hidden !important;
  white-space: nowrap;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.lang-option:hover {
  background-color: var(--btn-secondary-bg);
}

.logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 1;
}

/* Sections */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 100vh;
  justify-content: center;
  overflow: hidden;
  padding: 80px 20px 60px;
}

.bg-alt {
  background-color: var(--bg-color-alt);
}

.hero-section {
  justify-content: center;
}

.content {
  text-align: center;
  z-index: 10;
  max-width: 920px;
  padding: 60px 20px;
  width: 100%;
}

h1,
h2 {
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
}

.title-hero {
  font-size: 56px;
  line-height: 1.07;
}

h2 {
  font-size: 48px;
  line-height: 1.08;
}

.subtitle {
  font-size: 24px;
  line-height: 1.16;
  font-weight: 400;
  margin-top: 12px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* Buttons */
.ctas {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background-color: var(--btn-primary-text);
  color: var(--btn-primary-bg);
}

.btn-obsidian {
  background-color: #7a36cb;
  color: #ffffff;
}

.btn-obsidian:hover {
  background-color: #ffffff;
  color: #7a36cb;
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

/* Image Wrappers */
.image-wrapper {
  margin-top: 30px;
  width: 100%;
  max-width: 920px;
  display: flex;
  justify-content: center;
}

.hero-image {
  flex-grow: 1;
  align-items: flex-end;
  margin-top: 30px;
  padding: 0 20px;
}

.yazar-image,
.other-image {
  margin-top: 30px;
  padding: 0 20px 40px;
}

.image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-wrapper a:hover {
  transform: scale(1.02);
}

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

.hero-image img {
  max-height: 60vh;
  object-position: bottom center;
}

.yazar-image img,
.other-image img {
  max-height: 60vh;
  border-radius: 20px;
}

/* Socials Section */
.socials-section {
  padding: 80px 20px 20px;
  background-color: var(--bg-color);
  justify-content: flex-start; /* Override global center to allow spacing */
}

.social-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 80px;
  justify-items: center;
  max-width: 400px;
  margin: 0 auto 50px;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--text-primary);
}

.social-icon {
  width: 96px;
  height: 96px;
  border-radius: 22.5%;
  overflow: hidden;
  background-color: var(--btn-secondary-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s ease;
  padding: 20px;
}

.social-link:hover .social-icon {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .social-link:hover .social-icon {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10%;
}

/* Contact Info */
.contact-info {
  margin-top: 0;
  text-align: center;
}
.contact-info a {
  font-size: 3.3em;
}

.email-link {
  display: inline-block;
  font-size: 28px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  letter-spacing: -0.01em;
}

.email-link:hover {
  transform: translateY(-8px) scale(1.15);
  opacity: 1;
}

/* Footer */
footer {
  width: 100%;
  padding: 40px 20px 0;
  background-color: transparent;
  display: flex;
  justify-content: center;
}

.footer-content {
  width: 100%;
  max-width: 980px;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.footer-logo {
  height: 16px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-brand:hover,
.footer-brand:hover .footer-logo {
  color: var(--text-primary);
  opacity: 1;
}

/* Responsive constraints */
@media (max-width: 768px) {
  .title-hero {
    font-size: 40px;
  }
  h2 {
    font-size: 32px;
  }
  .subtitle {
    font-size: 20px;
  }
  .hero-section {
    padding-top: 80px;
  }
  .product-section {
    padding-top: 80px;
  }
  .social-icon {
    width: 72px;
    height: 72px;
    padding: 14px;
  }
  .ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 28px auto 0;
  }
  .btn {
    width: 100%;
  }
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: calc(100% - 40px);
  max-width: 600px;
  background-color: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 24px;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.8s cubic-bezier(0.15, 0, 0.15, 1),
    opacity 0.8s ease;
  opacity: 0;
  visibility: hidden;
}

.cookie-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.cookie-content p {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  outline: none !important;
  border: none !important;
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
