/* ==========================================================================
   Burak Özkırdeniz Portfolio - Static Site Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Light Mode */
  --color-bg: #fafaf9;
  --color-text: #111827;
  --color-text-secondary: #1f2937;
  --color-text-muted: #4b5563;

  /* Primary (Blue) */
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;

  /* Accent (Purple) */
  --color-accent-400: #a78bfa;
  --color-accent-500: #8b5cf6;
  --color-accent-600: #7c3aed;

  /* Surface colors */
  --color-surface: #f3f4f6;
  --color-surface-hover: #e5e7eb;
  --color-surface-icon: #4b5563;
  --color-surface-icon-hover: #2563eb;

  /* Navbar button */
  --color-nav-btn-bg: #f3f4f6;
  --color-nav-btn-hover: #e5e7eb;
  --color-nav-btn-icon: #374151;

  /* Tag colors */
  --color-tag-bg: linear-gradient(to right, #dbeafe, #ede9fe);
  --color-tag-text: #1d4ed8;
  --color-tag-border: #bfdbfe;

  /* Glow colors */
  --color-glow-from: #60a5fa;
  --color-glow-to: #a78bfa;
  --color-blob-1: #60a5fa;
  --color-blob-2: #a78bfa;

  /* Button */
  --color-btn-bg: #2563eb;
  --color-btn-hover: #1d4ed8;
  --color-btn-shadow: rgba(37, 99, 235, 0.25);

  /* Fonts - System fonts for faster loading */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #030712;
  --color-text: #f3f4f6;
  --color-text-secondary: #e5e7eb;
  --color-text-muted: #9ca3af;

  --color-surface: #1f2937;
  --color-surface-hover: #374151;
  --color-surface-icon: #9ca3af;
  --color-surface-icon-hover: #60a5fa;

  --color-nav-btn-bg: #1f2937;
  --color-nav-btn-hover: #374151;
  --color-nav-btn-icon: #facc15;

  --color-tag-bg: linear-gradient(to right, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.2));
  --color-tag-text: #93c5fd;
  --color-tag-border: rgba(59, 130, 246, 0.3);

  --color-glow-from: #3b82f6;
  --color-glow-to: #8b5cf6;
  --color-blob-1: #2563eb;
  --color-blob-2: #7c3aed;

  --color-btn-bg: #2563eb;
  --color-btn-hover: #3b82f6;
  --color-btn-shadow: rgba(37, 99, 235, 0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.navbar-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.theme-toggle {
  padding: 0.5rem;
  border-radius: 9999px;
  background-color: var(--color-nav-btn-bg);
  color: var(--color-nav-btn-icon);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--color-nav-btn-hover);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 0 2rem;
}

/* Mouse Glow Effect */
.mouse-glow {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  background: linear-gradient(to bottom right, var(--color-glow-from), var(--color-glow-to));
  will-change: transform;
  transition: opacity 0.3s ease;
  display: none;
}

@media (min-width: 640px) {
  .mouse-glow {
    display: block;
  }
}

/* Background Blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.3;
}

.blob-1 {
  top: -10rem;
  right: -10rem;
  background-color: var(--color-blob-1);
}

.blob-2 {
  bottom: -10rem;
  left: -10rem;
  background-color: var(--color-blob-2);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Text Content */
.hero-text {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
  }
}

.hero-title-accent {
  color: var(--color-primary-600);
}

[data-theme="dark"] .hero-title-accent {
  color: var(--color-primary-400);
}

/* Subtitle */
.hero-subtitle {
  margin-bottom: 2rem;
}

.hero-role {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .hero-role {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .hero-role {
    font-size: 1.5rem;
  }
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .tags {
    justify-content: flex-start;
  }
}

.tag {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  border: 1px solid var(--color-tag-border);
}

@media (min-width: 640px) {
  .tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* CTA Button */
.cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .cta-wrapper {
    justify-content: flex-start;
  }
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  background-color: var(--color-btn-bg);
  color: white;
  box-shadow: 0 10px 15px -3px var(--color-btn-shadow);
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background-color: var(--color-btn-hover);
  transform: scale(1.05);
}

.cta-btn svg {
  width: 18px;
  height: 18px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .social-links {
    justify-content: flex-start;
  }
}

.social-link {
  padding: 0.75rem;
  border-radius: 9999px;
  background-color: var(--color-surface);
  color: var(--color-surface-icon);
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--color-surface-hover);
  color: var(--color-surface-icon-hover);
  transform: scale(1.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Profile Image Section */
.hero-image {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-image {
    justify-content: flex-end;
  }
}

.profile-wrapper {
  position: relative;
}

.profile-glow {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  filter: blur(32px);
  opacity: 0.5;
  background: linear-gradient(to bottom right, var(--color-primary-600), var(--color-accent-600));
}

[data-theme="dark"] .profile-glow {
  background: linear-gradient(to bottom right, var(--color-primary-600), var(--color-accent-600));
}

.profile-img {
  position: relative;
  width: 14rem;
  height: 14rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .profile-img {
    width: 18rem;
    height: 18rem;
    border-radius: 1.5rem;
  }
}

@media (min-width: 768px) {
  .profile-img {
    width: 20rem;
    height: 20rem;
  }
}

@media (min-width: 1024px) {
  .profile-img {
    width: 24rem;
    height: 24rem;
  }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Responsive Padding
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .navbar-container {
    padding: 0 1.5rem;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .navbar-container {
    padding: 0 2rem;
  }

  .hero-content {
    padding: 5rem 2rem;
  }

  .hero {
    padding: 4rem 0 0;
  }
}