/* ============================================
   ERKAN EREBAK - MAIN CSS
   Referans: Portfolio Minimal Tasarım
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
  --primary: #4A3AFF;
  --primary-light: #6C5FFF;
  --primary-pale: #EEEDFF;
  --primary-bg: rgba(74, 58, 255, 0.06);

  --navy: #1B1B3A;
  --navy-light: #2D2D5E;

  --cream: #F8F8FC;
  --warm-white: #FEFEFF;
  --charcoal: #1B1B3A;
  --mid: #5A5A7A;
  --soft: #9494B0;

  --border: rgba(74, 58, 255, 0.10);
  --border-light: rgba(27, 27, 58, 0.08);
  --shadow-sm: 0 4px 20px rgba(27, 27, 58, 0.06);
  --shadow-md: 0 12px 40px rgba(27, 27, 58, 0.10);
  --shadow-lg: 0 20px 60px rgba(27, 27, 58, 0.14);

  --gradient: linear-gradient(135deg, #4A3AFF 0%, #6C5FFF 100%);
  --gradient-dark: linear-gradient(135deg, #1B1B3A 0%, #2D2D5E 50%, #4A3AFF 100%);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --section-padding: 80px 24px;
  --section-padding-sm: 56px 24px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 50px;

  --transition: all 0.3s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageEnter 0.5s ease forwards;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  background: none;
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(34px, 8vw, 60px);
  font-weight: 300;
}

h2 {
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 400;
}

h3 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 400;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--primary);
}

p {
  color: var(--mid);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Section Label --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--primary);
}

/* --- Section Title & Desc --- */
.section-title {
  margin-bottom: 16px;
}

.section-desc {
  color: var(--mid);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(74, 58, 255, 0.30);
  touch-action: manipulation;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 58, 255, 0.40);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-pale);
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, 20px) scale(1.05); }
}

@keyframes floatBtn {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rotate360 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  animation: floatBtn 3s ease-in-out infinite;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  background: #128C7E;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* --- Footer --- */
footer {
  background: var(--navy);
  padding: 48px 24px 120px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: white;
  line-height: 1.3;
}

.footer-desc {
  font-size: 13px;
  color: var(--soft);
  margin-top: 8px;
  line-height: 1.6;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-title {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer-nav-col a {
  font-size: 14px;
  color: var(--soft);
  transition: var(--transition);
}

.footer-nav-col a:hover {
  color: white;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  max-width: 960px;
  margin: 32px auto;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

/* --- Social Links (Interactive Hover Component) --- */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.social-link-item {
  position: relative;
  cursor: pointer;
  padding: 10px 24px;
  transition: opacity 0.25s ease;
  text-decoration: none;
}

.social-links.has-hover .social-link-item {
  opacity: 0.4;
}

.social-links.has-hover .social-link-item.is-hovered {
  opacity: 1;
}

.social-link-name {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}

.social-link-item.is-hovered .social-link-name {
  color: white;
}

.social-link-icon {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 48px;
  height: 48px;
  pointer-events: none;
  opacity: 0;
  filter: blur(3px);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  transform: translateX(-50%) translateY(8px);
}

.social-link-item.is-hovered .social-link-icon {
  opacity: 1;
  filter: blur(0);
  transform: translateX(-50%) translateY(-4px);
}

.social-link-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.social-link-svg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.social-link-svg--instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link-svg--tiktok {
  background: #010101;
}

.social-link-svg--facebook {
  background: #1877F2;
}

/* Click pulse effect */
.social-link-item.is-clicked .social-link-icon {
  animation: socialPulse 0.3s ease;
}

@keyframes socialPulse {
  0%   { transform: translateX(-50%) translateY(-4px) scale(1); }
  50%  { transform: translateX(-50%) translateY(-4px) scale(1.25); }
  100% { transform: translateX(-50%) translateY(-4px) scale(1); }
}

/* Fallback: old social-btn for other pages */
.social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(74, 58, 255, 0.3);
  color: white;
}

.social-btn svg {
  color: inherit;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 24px 48px;
  background: var(--cream);
  position: relative;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 520px;
  margin: 0 auto;
}

/* --- Utility --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Scrollbar hide for horizontal scroll --- */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ============================================
   DESKTOP RESPONSIVE (768px+)
   ============================================ */
@media (min-width: 768px) {
  :root {
    --section-padding: 100px 48px;
    --section-padding-sm: 72px 48px;
  }

  .container {
    max-width: 960px;
  }

  .page-hero {
    min-height: 35vh;
    padding: 120px 48px 64px;
  }

  .page-hero p {
    max-width: 640px;
    font-size: 16px;
  }

  footer {
    padding: 64px 48px 120px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-desc {
    margin-left: 0;
  }

  .footer-bottom {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
}

/* ============================================
   LARGE DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .container {
    max-width: 1080px;
  }

  h1 {
    font-size: clamp(36px, 5vw, 60px);
  }

  p {
    font-size: 16px;
  }

  .section-desc {
    max-width: 640px;
    font-size: 16px;
  }
}
