/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Theme: Dark Mode (Default) */
  --bg-color: hsl(220, 15%, 8%);
  --bg-color-alt: hsl(220, 15%, 11%);
  --card-bg: rgba(22, 28, 38, 0.55);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: hsl(0, 0%, 96%);
  --text-secondary: hsl(215, 15%, 70%);
  --text-muted: hsl(215, 10%, 50%);
  
  --primary: hsl(260, 85%, 65%);
  --primary-rgb: 124, 58, 237;
  --primary-hover: hsl(260, 95%, 70%);
  --secondary: hsl(190, 90%, 50%);
  --secondary-hover: hsl(190, 100%, 55%);
  
  --glass-blur: blur(16px);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

[data-theme="light"] {
  /* Theme: Light Mode Override */
  --bg-color: hsl(0, 0%, 97%);
  --bg-color-alt: hsl(210, 20%, 94%);
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(0, 0, 0, 0.06);
  --card-border-hover: rgba(0, 0, 0, 0.12);
  
  --text-primary: hsl(220, 20%, 15%);
  --text-secondary: hsl(220, 15%, 35%);
  --text-muted: hsl(220, 10%, 55%);
  
  --primary: hsl(260, 75%, 55%);
  --primary-hover: hsl(260, 85%, 50%);
  --secondary: hsl(190, 85%, 45%);
  --secondary-hover: hsl(190, 95%, 40%);
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.05), 0 2px 5px rgba(0,0,0,0.02);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 5px 15px rgba(0,0,0,0.03);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-normal);
}

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

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

li {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--card-border-hover);
  border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass:hover {
  border-color: var(--card-border-hover);
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
  border: 1px solid var(--card-border-hover);
  background-color: var(--card-bg);
  color: var(--text-primary);
}

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

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.custom-cursor,
.custom-cursor-dot {
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: difference;
  display: none;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--secondary);
  border: none;
  transition: transform 0.1s;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor,
  .custom-cursor-dot {
    display: block;
  }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: height var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  height: 65px;
  background-color: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo .dot {
  color: var(--secondary);
}

.nav-menu ul {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle,
.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover,
.mobile-menu-toggle:hover {
  background-color: var(--card-border-hover);
  color: var(--secondary);
}

/* Theme Icon Visibility */
.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-menu-toggle.active .icon-open {
  display: none;
}

.mobile-menu-toggle.active .icon-close {
  display: block;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-color-alt);
  z-index: 999;
  padding: 100px 30px;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  padding: 8px 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-primary);
  padding-left: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  z-index: 1;
  position: relative;
}

.hero-text-wrapper {
  max-width: 650px;
}

.greeting-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.blob-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(30, 240, 255, 0.2) 100%);
  filter: blur(40px);
  border-radius: 50%;
  animation: blob-animate 8s infinite alternate ease-in-out;
}

.hero-card {
  width: 90%;
  max-width: 340px;
  border-radius: var(--border-radius-md);
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.hero-card .card-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-card .dot.red { background-color: #ff5f56; }
.hero-card .dot.yellow { background-color: #ffbd2e; }
.hero-card .dot.green { background-color: #27c93f; }

.hero-card .card-code {
  color: var(--text-secondary);
}

.hero-card .keyword { color: #f472b6; }
.hero-card .variable { color: #60a5fa; }
.hero-card .operator { color: #38bdf8; }
.hero-card .string { color: #34d399; }
.hero-card .number { color: #fbbf24; }
.hero-card .boolean { color: #a78bfa; }

.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-down-indicator .mouse {
  width: 26px;
  height: 44px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-down-indicator .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 2px;
  animation: scroll-wheel 1.5s infinite;
}

/* Typing cursor styling */
.typing-text::after {
  content: '|';
  margin-left: 2px;
  color: var(--primary);
  animation: blink-caret 0.75s step-end infinite;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-image-container {
  width: 320px;
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.profile-placeholder-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-color-alt) 0%, var(--card-border-hover) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-placeholder-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(var(--primary-rgb), 0.15) 100%);
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.placeholder-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.2;
}

.image-border-decoration {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 320px;
  height: 400px;
  border: 2px solid var(--secondary);
  border-radius: var(--border-radius-md);
  z-index: 1;
  transition: transform var(--transition-slow);
}

.about-visual:hover .image-border-decoration {
  transform: translate(-10px, -10px);
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  box-shadow: var(--shadow-lg);
}

.experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1.3;
}

.about-intro {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Tabs UI */
.tabs-container {
  margin-top: 40px;
}

.tabs-headers {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.tab-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 10px 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.tab-btn.active {
  color: var(--primary);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fade-in 0.4s ease;
}

/* Skills Content Styling */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.skill-name {
  color: var(--text-primary);
}

.skill-pct {
  color: var(--secondary);
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--card-border);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Timeline Content Styling */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--card-border);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 3px solid var(--primary);
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  background-color: var(--secondary);
}

.timeline-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.time-period {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.about-cv-wrapper {
  margin-top: 36px;
}

.resume-btn {
  gap: 10px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(30, 240, 255, 0.1) 100%);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 24px;
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(30, 240, 255, 0.2) 100%);
}

.service-icon {
  width: 26px;
  height: 26px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.filter-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--card-border-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

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

.project-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

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

.project-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform var(--transition-slow);
}

.project-img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.8;
  transition: transform var(--transition-normal);
}

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

.project-card:hover .project-img-placeholder svg {
  transform: scale(1.1) rotate(-5deg);
}

.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-4 { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); }

.project-category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-short-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-color-alt);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.project-view-more {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  align-self: flex-start;
  transition: gap var(--transition-fast);
}

.project-card:hover .project-view-more {
  gap: 10px;
  color: var(--primary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-headline {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-intro-text {
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: all var(--transition-fast);
}

.info-item:hover .info-icon-box {
  background-color: var(--secondary);
  color: var(--bg-color);
  transform: scale(1.05);
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.info-value {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

a.info-value:hover {
  color: var(--secondary);
}

.social-links-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-sm);
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-color);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-container {
  padding: 40px;
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

textarea.form-input {
  resize: vertical;
}

.form-error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.form-group.error .form-input {
  border-color: #ef4444;
}

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

.btn-submit {
  width: 100%;
  gap: 10px;
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* Submit Success Box */
.form-status-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  z-index: 10;
}

.form-status-box.active {
  transform: translateY(0);
}

.status-inner {
  max-width: 320px;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: var(--secondary);
  margin-bottom: 20px;
  animation: pulse-grow 2s infinite ease-in-out;
}

.status-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  background-color: var(--bg-color);
  transition: background-color var(--transition-slow), border-color var(--transition-normal);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.25rem;
  margin-bottom: 4px;
  display: inline-block;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

/* ==========================================================================
   PROJECT DETAILS MODAL
   ========================================================================== */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 12, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: var(--border-radius-lg);
  overflow-y: auto;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
  padding: 40px;
}

.project-modal.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-color-alt);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--secondary);
  color: var(--bg-color);
  transform: rotate(90deg);
  border-color: transparent;
}

.modal-header-img-placeholder {
  width: 100%;
  height: 280px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 24px;
  position: relative;
}

.modal-header-img-placeholder svg {
  width: 64px;
  height: 64px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.modal-tags span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-color-alt);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.modal-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary); }
}

@keyframes blob-animate {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.15); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes pulse-grow {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Scroll reveal initial states */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 80px;
  }
  
  .hero-text-wrapper {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-visual {
    order: -1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .about-visual {
    margin-bottom: 20px;
  }
  
  .experience-badge {
    right: 0;
    bottom: -10px;
  }
  
  .contact-form-container {
    padding: 30px 20px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-right {
    flex-direction: column-reverse;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .blob-wrapper {
    width: 260px;
    height: 260px;
  }
  
  .profile-image-container,
  .image-border-decoration {
    width: 260px;
    height: 325px;
  }
  
  .tabs-headers {
    gap: 12px;
  }
  
  .tab-btn {
    font-size: 0.9rem;
  }
  
  .modal-container {
    padding: 24px 16px;
  }
}
