/*
Theme Name: Developer Starter
Theme URI: https://developer starter.dev
Author: Mert
Author URI: https://developer starter.dev
Description: Minimal ve modern kişisel portfolyo WordPress teması. Final projesi için özel olarak geliştirilmiştir.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: developer starter
Tags: portfolio, minimal, modern, one-page, custom-menu, custom-logo, featured-images
*/

/* ========================================================================
   CSS CUSTOM PROPERTIES (DESIGN SYSTEM)
   ======================================================================== */

:root {
  /* Colors */
  --primary: #0f172a;          /* Slate 900 - Premium deep dark */
  --secondary: #1e293b;        /* Slate 800 */
  --accent: #6366f1;           /* Indigo 500 - Professional modern brand color */
  --accent-hover: #4f46e5;     /* Indigo 600 */
  --accent-light: rgba(99, 102, 241, 0.1);
  --bg-light: #f8fafc;         /* Slate 50 */
  --white: #ffffff;
  --text: #334155;             /* Slate 700 */
  --text-light: #64748b;       /* Slate 500 */
  --text-lighter: #94a3b8;     /* Slate 400 */
  --border: #e2e8f0;           /* Slate 200 */
  
  /* Glassmorphism settings */
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  /* Shadows & Glows */
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.12);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 20px 25px -5px rgba(0,0,0,0.05);

  /* Radius */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================================
   RESET & BASE
   ======================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

a:hover {
  color: var(--accent);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.02em;
}

ul, ol {
  list-style: none;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  gap: 8px;
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

/* ========================================================================
   HEADER & NAVIGATION
   ======================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: var(--transition);
}

/* WordPress Admin Bar Fix */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-logo::after {
  content: '.';
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background-color: var(--accent-light);
}

/* Hamburger toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ========================================================================
   HERO SECTION (DARK SLATE & RADIAL LIGHTING)
   ======================================================================== */

.hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  color: var(--white);
}

/* Blueprint Grid Overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  opacity: 0.8;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 5;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 10px #34d399;
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--white);
}

.hero-title span {
  color: var(--accent);
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #94a3b8;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta {
  font-size: 0.95rem;
  padding: 15px 36px;
}

.hero-cta-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.hero-cta-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* Developer Visual / IDE Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mock-ide {
  width: 100%;
  max-width: 480px;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), var(--shadow-glow);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.mock-ide:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
}

.ide-header {
  display: flex;
  align-items: center;
  height: 40px;
  background-color: rgba(15, 23, 42, 0.95);
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ide-dots {
  display: flex;
  gap: 6px;
}

.ide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ide-dots .dot.red { background-color: #ef4444; }
.ide-dots .dot.yellow { background-color: #f59e0b; }
.ide-dots .dot.green { background-color: #10b981; }

.ide-tab {
  margin-left: 20px;
  font-size: 0.75rem;
  font-family: 'Courier New', Courier, monospace;
  color: #94a3b8;
  padding: 4px 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border-bottom: 2px solid var(--accent);
}

.ide-body {
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

/* Syntax Highlighting */
.ide-body .kw { color: #f43f5e; } /* keyword */
.ide-body .op { color: #38bdf8; } /* operator */
.ide-body .str { color: #34d399; } /* string */
.ide-body .bool { color: #fb923c; } /* boolean */
.ide-body .cm { color: #64748b; font-style: italic; } /* comment */

/* Ambient Lighting shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.hero .shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background-color: rgba(99, 102, 241, 0.15);
}

.hero .shape-2 {
  width: 350px;
  height: 350px;
  bottom: -50px;
  left: -50px;
  background-color: rgba(244, 63, 94, 0.1);
}

.hero .shape-3 {
  width: 250px;
  height: 250px;
  top: 40%;
  right: 25%;
  background-color: rgba(168, 85, 247, 0.1);
}

/* ========================================================================
   SECTIONS (GENEL)
   ======================================================================== */

.section {
  padding: 120px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================================
   FEATURED PROJECTS SECTION
   ======================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
}

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

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(99, 102, 241, 0.2);
}

.project-image {
  height: 260px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 6px 12px;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Micro Mockups inside cards */
.project-visual-mock {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

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

/* Mini Browser Mockup */
.mock-browser-mini {
  width: 190px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.mini-header {
  height: 16px;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}

.mini-header span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
}

.mini-hero {
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 8px;
  border-radius: 4px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 8px;
}

.mini-grid div {
  height: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Mini Phone Mockup */
.mock-phone-mini {
  width: 80px;
  height: 150px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.phone-speaker {
  width: 25px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 auto 8px;
  border-radius: 10px;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-card {
  height: 50px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.phone-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  width: 80%;
}

.phone-circle {
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  align-self: center;
  margin-top: 10px;
}

/* Mini Dashboard Mockup */
.mock-dashboard-mini {
  width: 180px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.dash-sidebar {
  width: 35px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-sidebar div {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.dash-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-chart {
  height: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dash-row div {
  height: 25px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

/* Project Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 5;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.project-desc-short {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========================================================================
   ABOUT PREVIEW SECTION (ELEGANT TWO-COLUMN & MOCK GRAPH DASHBOARD)
   ======================================================================== */

.about-preview-section {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.about-preview-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-preview-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Premium Dashboard Graphic */
.about-preview-image {
  display: flex;
  justify-content: center;
}

.mock-browser {
  width: 100%;
  max-width: 480px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.browser-header {
  height: 40px;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}

.browser-dots {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 1rem;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
}

.browser-address {
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--text-light);
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 2px 30px;
  border-radius: 4px;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body {
  background-color: #f8fafc;
  padding: 12px;
}

.mock-dash {
  display: flex;
  height: 240px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.dash-nav {
  width: 45px;
  background-color: #0f172a;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dash-nav-logo {
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 6px;
  margin-bottom: 12px;
}

.dash-nav-item {
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.dash-nav-item.active {
  background-color: rgba(255, 255, 255, 0.3);
}

.dash-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-title-placeholder {
  width: 100px;
  height: 12px;
  background-color: #e2e8f0;
  border-radius: 4px;
}

.dash-user-placeholder {
  width: 24px;
  height: 24px;
  background-color: #cbd5e1;
  border-radius: 50%;
}

.dash-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dash-stat-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  background-color: #f8fafc;
}

.dash-stat-card .line-1 {
  width: 60%;
  height: 6px;
  background-color: #cbd5e1;
  border-radius: 2px;
  margin-bottom: 6px;
}

.dash-stat-card .line-2 {
  width: 90%;
  height: 10px;
  background-color: var(--accent);
  border-radius: 2px;
}

.dash-chart-section {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.chart-title {
  width: 80px;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 2px;
}

.chart-visual {
  flex: 1;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  max-height: 80px;
}

/* ========================================================================
   STATS SECTION (MODERN STAT CARDS & SVG ICONS)
   ======================================================================== */

.stats-section {
  background-color: var(--primary);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.stats-mesh-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(244, 63, 94, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 5;
}

.stat-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.stat-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: var(--transition);
}

.stat-item:hover .stat-icon-wrapper {
  background-color: var(--accent);
  color: var(--white);
  transform: scale(1.1);
}

.stat-svg-icon {
  width: 22px;
  height: 22px;
}

.stat-number {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px;
  display: none; /* JS handles formatting */
}

.stat-label {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 0.25rem;
}

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

.page-hero {
  padding: 180px 0 90px;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
  letter-spacing: -0.04em;
}

.page-hero p {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
}

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

.about-section .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper > div {
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
}

.about-image-wrapper > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text-wrapper h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.about-text-wrapper p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

/* ========================================================================
   SKILLS & PROGRESS BARS
   ======================================================================== */

.skills-section {
  background-color: var(--bg-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.skill-item {
  background-color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.skill-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.2);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.skill-name {
  font-weight: 700;
  color: var(--primary);
}

.skill-percentage {
  color: var(--accent);
  font-weight: 700;
}

.skill-bar {
  height: 8px;
  background-color: var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  border-radius: 50px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================================
   TIMELINE
   ======================================================================== */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 2;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  z-index: 10;
  top: 2.75rem;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-content {
  background-color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-3px);
}

.timeline-content h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================================================
   FILTER BUTTONS
   ======================================================================== */

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background-color: transparent;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

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

.contact-detail-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-item .detail-text .label {
  font-size: 0.8rem;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-detail-item .detail-text .value {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  color: var(--primary);
  background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-lighter);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* Form validation states */
.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: #ef4444;
}

.form-group.error .form-input:focus,
.form-group.error .form-textarea:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-group .error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: none;
  font-weight: 500;
}

.form-group.error .error-message {
  display: block;
}

/* ========================================================================
   SOCIAL LINKS
   ======================================================================== */

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

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-light);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

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

.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 5;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-logo::after {
  content: '.';
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.footer-description {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-social .social-links {
  gap: 0.75rem;
}

.footer-social .social-link {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.footer-social .social-link:hover {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: #64748b;
  font-size: 0.85rem;
}



/* ========================================================================
   404 PAGE
   ======================================================================== */

.error-404-section {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 180px 0 100px;
}

.error-code {
  font-size: 9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -4px;
}

.error-404-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-404-section p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* ========================================================================
   ANIMATIONS & KEYFRAMES
   ======================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* ========================================================================
   RESPONSIVE — TABLET (max-width: 968px)
   ======================================================================== */

@media (max-width: 968px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 100px 2rem 2rem;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
    z-index: 999;
  }

  .site-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 12px 20px;
    font-size: 1rem;
    display: block;
  }

  /* Hero visual stacking */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .mock-ide {
    transform: none !important;
    max-width: 440px;
  }

  .about-preview-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-preview-content,
  .about-grid,
  .contact-grid {
    gap: 3.5rem;
  }

  .mock-browser {
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Timeline single-column */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 45px;
    gap: 0;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    grid-column: 1;
  }

  .timeline-marker {
    left: 20px;
  }

  .page-hero h1 {
    font-size: 2.6rem;
  }
}

/* ========================================================================
   RESPONSIVE — MOBILE (max-width: 640px)
   ======================================================================== */

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .page-hero {
    padding: 140px 0 60px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .error-code {
    font-size: 6rem;
  }

  /* Mobile UI Responsive Overrides & Optimization */
  .mock-ide {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
  }
  
  .ide-header {
    height: 38px !important;
    padding: 0 10px !important;
  }
  
  .ide-tab-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  
  .ide-body {
    padding: 12px !important;
    font-size: 11px !important;
  }

  .ide-body pre code {
    font-size: 11px !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
  }

  .terminal-input-row {
    font-size: 11px !important;
  }
  
  .terminal-input-row span {
    font-size: 11px !important;
    margin-right: 4px !important;
  }

  #terminal-input {
    font-size: 11px !important;
  }

  .wp-feature-box, .wp-badge-box {
    padding: 1rem !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem !important;
  }
  
  .wp-feature-box .stat-icon-wrapper, .wp-badge-box .stat-icon-wrapper {
    margin: 0 auto !important;
  }

  .contact-detail-item {
    gap: 0.75rem !important;
  }

  .filter-buttons {
    gap: 0.5rem !important;
    margin-bottom: 2rem !important;
  }

  .filter-btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }
}
