/* ==========================================================================
   Bekir Bostancı & Novatech Studios - Ultra-Premium Light Theme Design System
   ========================================================================== */

:root {
  /* Color Palette - Elegant Light Theme */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-secondary: #f1f5f9;
  --bg-surface-tertiary: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --primary-glow: rgba(79, 70, 229, 0.15);

  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;
  --accent-cyan: #06b6d4;

  --border-light: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 10px 30px -5px rgba(79, 70, 229, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: normal;
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-surface-secondary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

/* Section Common Layout */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  max-width: 100%;
  word-break: break-word;
}

.section-tag.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Header Navbar & Clean Brand Title
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-title-link {
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast);
  max-width: 75%;
}

.brand-title-link:hover {
  transform: translateY(-1px);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-subname {
  display: block;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 0.45rem;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-toggle:hover {
  background: var(--border-light);
}

/* Mobile Drawer Slide-in Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-close {
  background: var(--bg-surface-secondary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-light);
}

.drawer-link.highlight {
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  word-break: break-word;
  line-height: 1.4;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  word-break: break-word;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 650px;
  word-break: break-word;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  word-break: break-word;
}

.tech-pill.studio {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.pill-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
}
.pill-dot.studio { background: #ffffff; }
.pill-dot.media { background: #ec4899; }
.pill-dot.unity { background: #000000; }
.pill-dot.csharp { background: #68217a; }
.pill-dot.android { background: #3ddc84; }
.pill-dot.ios { background: #000000; }
.pill-dot.web { background: #3b82f6; }

/* Hero Visual Stack (Desktop Layered Stack) */
.hero-visual {
  position: relative;
  width: 100%;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  transition: transform var(--transition-normal);
  width: 100%;
}

.main-card {
  width: 100%;
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}

.card-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.hero-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.hero-card-info {
  padding-top: 1rem;
}

.hero-card-info h4 {
  font-size: 1.15rem;
}

.hero-card-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Floating Card Styling on Desktop */
@media (min-width: 769px) {
  .hero-card-stack {
    display: block;
  }
  .floating-card-1 {
    position: absolute;
    top: -20px;
    left: -10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
    width: auto;
  }
  .floating-card-2 {
    position: absolute;
    bottom: -20px;
    right: -10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite 2s;
    width: auto;
  }
}

.floating-icon {
  font-size: 1.5rem;
}

.floating-card-1 small, .floating-card-2 small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}

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

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  word-break: break-word;
}

/* ==========================================================================
   About Me Section
   ========================================================================== */
.hakkimda-section {
  background: var(--bg-main);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-feature-card {
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.studio-theme {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
}

.game-theme {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-crimson);
}

.app-theme {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.web-theme {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}

.about-feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.about-feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projeler-section {
  background: var(--bg-surface);
}

.projeler-section .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-secondary);
  padding: 0.35rem;
  border-radius: var(--radius-full);
}

.filter-btn {
  background: none;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.clickable-card {
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.4);
}

.click-hint {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--bg-surface-secondary);
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Fallback Styled Thumbnails */
.fallback-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-bg {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.race-bg {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.candy-bg {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.thumb-icon-large {
  font-size: 4rem;
}

.store-badges-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.badge.playstore {
  background: rgba(15, 23, 42, 0.85);
  color: #3ddc84;
}

.badge.appstore {
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
}

.badge.web {
  background: rgba(79, 70, 229, 0.9);
  color: #ffffff;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-category {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface-secondary);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-secondary);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.yetenekler-section {
  background: var(--bg-main);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-main);
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border-light);
}

.skill-list li:last-child {
  border-bottom: none;
}

.badge-skill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.iletisim-section {
  background: var(--bg-surface);
}

.contact-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-info h2 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
  word-break: break-all;
}

.contact-link:hover {
  color: #818cf8;
}

.item-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item small {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
}

.contact-item strong {
  color: #ffffff;
  font-size: 1rem;
  word-break: break-all;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-btn {
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  word-break: break-all;
  max-width: 100%;
}

.social-btn:hover {
  background: var(--primary);
}

.contact-form-container {
  background: #ffffff;
  color: var(--text-main);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
}

/* ==========================================================================
   Footer Overhaul
   ========================================================================== */
.footer {
  background: #0f172a;
  color: #ffffff;
  padding-top: 4rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
  overflow-x: hidden;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-about .brand-name {
  color: #ffffff;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 0.85rem;
  max-width: 400px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-links-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  color: #94a3b8;
  font-size: 0.925rem;
  transition: color var(--transition-fast);
  word-break: break-all;
}

.footer-links-col a:hover {
  color: #818cf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  background: #090d16;
  width: 100%;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}

.footer-bottom a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

/* ==========================================================================
   Modal Popup
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  padding: 2.5rem;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-surface-secondary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   COMPREHENSIVE ULTRA-PREMIUM MOBILE RESPONSIVE STYLES (<768px and <480px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .tech-stack-pills {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 2rem;
  }
  .about-grid, .projects-grid, .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .brand-subname {
    display: none;
  }
  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
  }

  /* Perfected Mobile Status Pill */
  .status-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    font-size: 0.775rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    line-height: 1.4;
    white-space: normal;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* Perfected Mobile Hero Title */
  .hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: center;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
  }

  .tech-stack-pills {
    justify-content: center;
    gap: 0.4rem;
  }
  .tech-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }

  /* Mobile Hero Card Stack - FULL WIDTH CARDS UN-SQUISHED! */
  .hero-card-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .hero-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .floating-card-1, .floating-card-2 {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    animation: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.85rem 1rem !important;
    border-radius: var(--radius-md) !important;
  }

  /* Perfected Mobile Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .stat-card {
    padding: 0.85rem 0.5rem;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
  }
  .stat-number {
    font-size: 1.25rem;
  }
  .stat-label {
    font-size: 0.775rem;
  }

  .about-grid, .projects-grid, .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .projeler-section .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  /* Perfected Filter Bar on Mobile */
  .filter-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding: 0.35rem;
    border-radius: var(--radius-full);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .contact-card {
    padding: 2rem 1.25rem;
    gap: 2rem;
  }
  .contact-info h2 {
    font-size: 1.75rem;
  }
  .contact-form-container {
    padding: 1.5rem 1.25rem;
  }

  /* Ultra-Premium Mobile Footer */
  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
  }
  .footer-desc {
    max-width: 100%;
  }
  .footer-bottom-container p {
    font-size: 0.8rem;
  }
  .modal-card {
    padding: 1.5rem;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.45rem;
  }
  .hero-subtitle {
    font-size: 0.875rem;
  }
  .status-pill {
    font-size: 0.725rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
