/*
  style.css
  Design system & base styles for portfolio
  Notes: Keep CSS modular and use variables for theme.
*/

:root{
  /* Dark theme color system */
  --color-bg: #0b0f13; /* near-black background */
  --color-surface: #0f1720; /* slightly lighter surface */
  --color-muted: #9aa6b2; /* muted text */
  --color-text: #e6eef3; /* main text (high contrast) */
  --color-accent: #7c5cff; /* violet accent */
  --color-accent-600: #5a3cff;
  --radius: 12px;

  /* Spacing scale */
  --space-xxs: 6px;
  --space-xs: 10px;
  --space-sm: 14px;
  --space-md: 22px;
  --space-lg: 36px;
  --space-xl: 64px;

  /* Typography */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-heading: 'Inter', var(--font-sans);
  --fs-base: 16px;
}

/* === LAUNCH OVERLAY === */
.launch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0f13;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.8s ease-in;
}

.launch-overlay.fade-out {
  animation: fadeOut 1s ease-out forwards;
}

.launch-content {
  text-align: center;
}

.launch-icon {
  margin: 0 auto 32px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: dropDown 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.launch-icon svg {
  color: #7c5cff;
  width: 80px;
  height: 80px;
}

.launch-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: dropDown 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

.launch-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 0 0 16px;
  opacity: 0;
  animation: dropDown 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

.launch-icons svg {
  color: #7c5cff;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.launch-role {
  font-size: 1.25rem;
  color: #7c5cff;
  margin: 0;
  font-weight: 500;
  opacity: 0;
  animation: dropDown 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s forwards;
}

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

@keyframes fadeOut {
  to { opacity: 0; }
}

@keyframes dropDown {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reset / base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font-sans);
  font-size:var(--fs-base);
  color:var(--color-text);
  background:var(--color-bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

/* Make media elements scale nicely on all viewports */
img, picture, video, svg { max-width: 100%; height: auto; display: block; }

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

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

/* === HEADER & NAV === */
.site-header {
  backdrop-filter: saturate(120%) blur(12px);
  position: fixed;
  top: 0;
  z-index: 999;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(15,23,32,0.85), rgba(11,15,19,0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 260ms ease, box-shadow 260ms ease, backdrop-filter 260ms ease;
}

.site-header.scrolled {
  background: rgba(11, 15, 19, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 12px;
  position: relative;
  min-height: 96px;
}

.brand {
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  color: var(--color-text);
}

.brand span {
  color: var(--color-accent);
}

.nav {
  display: block;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 10px 18px;
  border-radius: 48px;
  box-shadow: 0 18px 60px rgba(124,92,255,0.08);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  padding: 0.625rem 1rem;
  border-radius: 8px;
  color: var(--color-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(124, 92, 255, 0.1);
  color: var(--color-text);
}

.nav-link.active {
  color: var(--color-accent);
  background: rgba(124, 92, 255, 0.1);
}

.nav-link-resume {
  background: var(--color-accent);
  color: #fff;
}

.nav-link-resume:hover,
.nav-link-resume:focus {
  background: var(--color-accent-600);
  color: #fff;
}

/* Keyboard focus visible for nav links */
.nav-link:focus {
  outline: 3px solid rgba(124, 92, 255, 0.14);
  outline-offset: 4px;
}

.nav-toggle {
  display: none !important;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 8px;
}

/* More dropdown for mobile */
.nav-item-more {
  position: relative;
  display: none;
}

.nav-more-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-more-btn svg {
  transition: transform 0.2s ease;
}

.nav-more-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-more-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(20, 25, 35, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  list-style: none;
  z-index: 1001;
}

.nav-more-dropdown li {
  margin: 0;
}

.nav-more-dropdown .nav-link {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
}

.nav-item-more.active .nav-more-dropdown {
  display: block;
}

.nav-item-desktop {
  display: list-item;
}

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

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

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

/* ================= HERO SECTION ================= */

.hero {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  padding: 80px 0;
}

/* === HERO IMAGE === */
.hero-visual {
  display: none; /* Hidden on desktop, shown only on mobile */
}

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}

.hero-image-wrapper:hover {
  transform: translateY(-8px);
}

.hero-image {
  width: 100%;
  height:100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}

/* === HERO CONTENT === */
.hero-content {
  max-width: 640px;
}

/* Status Badges */
.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.status-badge:hover {
  transform: translateY(-2px);
}

.badge-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.badge-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-600) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
}

/* Typography Hierarchy */
.hero-title {
  margin: 0 0 20px;
  line-height: 1.1;
}

.hero-greeting {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.hero-name {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

/* Typing Effect */
.hero-role {
  margin-bottom: 24px;
  min-height: 36px;
}

.typing-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  border-right: 3px solid var(--color-accent);
  padding-right: 8px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Description */
.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0 0 32px;
  max-width: 560px;
}

/* Action Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Hero Divider */
.hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.5), transparent);
  margin: 32px 0 24px;
}

/* Hero Contact Info */
.hero-contact-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

.connect-label {
  color: #9ca3af;
  font-size: 0.95rem;
  font-weight: 500;
  margin-right: 8px;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.hero-contact-item:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.hero-contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-600) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(124, 92, 255, 0.1);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(124, 92, 255, 0.2);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(124, 92, 255, 0.1);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* === SECTION BASE STYLES === */
.section {
  padding: 120px 0;
  scroll-margin-top: calc(var(--header-offset) + 20px);
}

/* Smaller padding for contact section */
#contact.section {
  padding: 80px 0;
  margin: 0 auto;
  max-width: 1400px;
}

#contact .container {
  padding: 0 60px;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* === ABOUT SECTION === */
.about-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-visual {
  width: 100%;
}

.about-illustration {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.about-content {
  max-width: 100%;
}

.about-intro {
  margin-bottom: 32px;
}

.about-heading {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--color-text);
}

.about-heading .highlight {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

.about-description {
  margin-bottom: 48px;
}

.about-description p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-muted);
  margin: 0 0 20px;
}

.about-description p:last-child {
  margin-bottom: 0;
}

/* Core Competencies */
.about-competencies {
  background: var(--color-surface);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.competencies-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--color-text);
}

.competencies-grid {
  display: grid;
  gap: 24px;
}

.competency-item {
  display: flex;
  gap: 16px;
  align-items: start;
}

.competency-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.competency-content h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--color-text);
}

.competency-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

/* About Visual - Illustration */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-illustration {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* About Sidebar - Legacy (now removed from HTML but keeping for compatibility) */
.about-sidebar {
  position: sticky;
  top: calc(var(--header-offset) + 30px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Contact Card */
.contact-card {
  background: var(--color-surface);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-info {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.contact-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.status-text {
  color: #10b981;
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Social Card */
.social-card {
  background: var(--color-surface);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(124, 92, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-4px);
}

/* === SKILLS SECTION === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.skill-category {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.skill-category:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.12);
}

.skill-category h3 {
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.skill-list li {
  color: var(--color-muted);
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.2s ease;
}

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

.skill-category:hover .skill-list li {
  color: var(--color-text);
}

/* About Section - Profile Image & Badges */
.about-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-badges .status-badge {
  font-size: 0.875rem;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  border: 1px solid;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-primary {
  background: rgba(124, 92, 255, 0.1);
  color: var(--color-accent);
  border-color: rgba(124, 92, 255, 0.3);
}

/* Professional Quote */
.professional-quote {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.05), rgba(124, 92, 255, 0.02));
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
}

.professional-quote p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Competency Icon SVG Styling */
.competency-icon svg {
  color: var(--color-accent);
  width: 32px;
  height: 32px;
}

/* === SERVICES SECTION === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  background: var(--color-surface);
  padding: 36px 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-600));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.15);
  border-color: var(--color-accent);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(124, 92, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 92, 255, 0.2);
  transition: all 0.3s ease;
}

.service-icon svg {
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.4);
  transform: scale(1.05);
}

.service-card:hover .service-icon svg {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.service-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

/* === PROJECTS SECTION === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.project-card {
  background: var(--color-surface);
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-600));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--color-accent);
}

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

.project-card.featured {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08) 0%, var(--color-surface) 50%);
  border-color: rgba(124, 92, 255, 0.3);
}

.project-card.featured::before {
  opacity: 1;
  height: 3px;
}

.project-card.featured:hover {
  border-color: var(--color-accent);
  box-shadow: 0 20px 48px rgba(124, 92, 255, 0.2);
}

/* Project Card Structure */
.project-header {
  padding: 24px 28px 0;
}

.project-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.type-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.project-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0 0 12px 0;
  padding: 0 28px;
}

.project-card.featured .project-title {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-desc {
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0 0 20px 0;
  padding: 0 28px;
  font-size: 0.9375rem;
}

/* Project Meta */
.project-meta {
  padding: 0 28px 24px;
}

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

.tag {
  background: rgba(124, 92, 255, 0.12);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(124, 92, 255, 0.2);
  transition: all 0.2s ease;
}

.project-card:hover .tag {
  background: rgba(124, 92, 255, 0.18);
  border-color: rgba(124, 92, 255, 0.4);
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-project {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
  font-family: inherit;
}

.btn-project svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-github {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-github:hover svg {
  transform: scale(1.1);
}

.btn-live {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-600) 100%);
  color: white;
  border-color: transparent;
}

.btn-live:hover {
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4);
  transform: translateY(-2px);
}

.btn-live:hover svg {
  transform: translateX(2px);
}

/* Enhanced Live Button Feedback States */
.btn-status-feedback {
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn-status-feedback .btn-text {
  font-size: 0.8rem;
  transition: font-size 0.2s ease;
}

/* Prevent hover effects when showing status message */
.btn-status-feedback:hover {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
}

/* Legacy styles - keeping for backward compatibility */
.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.project-card p {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.badge {
  background: rgba(124, 92, 255, 0.15);
  color: var(--color-accent);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-actions a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.card-actions a:hover {
  color: var(--color-accent-600);
}

/* Responsive adjustments for project cards */
@media (min-width: 1200px) {
  .project-card.featured {
    grid-column: span 2;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === ACHIEVEMENTS SECTION === */
.achievements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 2.5rem auto 0;
}
/* === ACHIEVEMENTS SECTION - CAROUSEL === */
.achievements-carousel {
  position: relative;
  margin-top: 48px;
  max-width: 100%;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  padding: 8px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Disable smooth transitions during reduced motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}

.achievement-card {
  background: var(--color-surface);
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-600));
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.15);
}

.achievement-card:hover::before {
  opacity: 1;
}

.achievement-icon-wrapper {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15) 0%, rgba(124, 92, 255, 0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid rgba(124, 92, 255, 0.2);
  transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon-wrapper {
  transform: scale(1.05);
  border-color: var(--color-accent);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25) 0%, rgba(124, 92, 255, 0.1) 100%);
}

.achievement-icon {
  font-size: 2rem;
  line-height: 1;
}

.achievement-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.achievement-desc {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text);
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: rgba(124, 92, 255, 0.1);
  transform: scale(1.05);
}

.carousel-btn:focus-visible {
  outline: 3px solid rgba(124, 92, 255, 0.4);
  outline-offset: 3px;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-btn svg {
  flex-shrink: 0;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.2);
}

.carousel-dot:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.6);
  outline-offset: 3px;
}

.carousel-dot.active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 5px;
}

/* Legacy styles for backward compatibility */
.achievements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 2.5rem auto 0;
}

.achievement-item {
  background: var(--color-surface);
  padding: 1.75rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  transform: translateX(8px);
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.1);
}

.achievement-content {
  flex-grow: 1;
}

/* === CONTACT SECTION === */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.required {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea {
  background: var(--color-bg);
  border: 2px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(154, 166, 178, 0.5);
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-actions .btn {
  min-width: 160px;
}

/* === TYPING EFFECT === */
.hero-typing {
  margin: 8px 0 18px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 18px;
}

.typing {
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  padding-right: 6px;
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 28px;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.18);
  cursor: pointer;
  display: none;
  z-index: 60;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.25);
}

.back-to-top:focus {
  outline: 3px solid rgba(124, 92, 255, 0.16);
  outline-offset: 3px;
}

/* === SOCIAL LINKS (LEGACY - Now in Footer Only) === */
/* .divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin: 28px 0;
}

.connect-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.connect-label {
  color: var(--color-muted);
  font-weight: 700;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
  align-items: center;
}

.social-item a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.social-item a:hover {
  color: var(--color-accent-600);
}

.social-icon {
  display: inline-block;
  vertical-align: middle;
  color: var(--color-accent);
}

.social-item a:hover .social-icon,
.social-item a:focus .social-icon {
  filter: drop-shadow(0 8px 20px rgba(124, 92, 255, 0.18));
}

.social-item a span {
  color: var(--color-text);
} */

/* === REVEAL ANIMATIONS === */
[data-reveal] {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

[data-reveal]:nth-child(1) {
  animation-delay: 0.1s;
}

[data-reveal]:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shake animation for private repository buttons */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake-animation {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* === STATUS BADGES === */
.status-badges {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.status-badge {
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-badge.primary {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-600));
  color: white;
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.14);
}

.status-badge.success {
  background: linear-gradient(90deg, #10b981, #059669);
  color: white;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08);
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.9375rem;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-muted);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: rgba(124, 92, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

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

/* Legacy footer nav - keeping for compatibility */
.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

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

/* Focus outline for accessibility */
:focus-visible {
  outline: 3px solid rgba(124, 92, 255, 0.5);
  outline-offset: 3px;
}

/* === RESPONSIVE DESIGN === */

/* Large screens */
@media (min-width: 1400px) {
  .container {
    padding: 0 4rem;
  }
  
  .hero-inner {
    gap: 4rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
}

/* Medium screens - Tablet landscape */
@media (max-width: 1100px) and (min-width: 901px) {
  .achievement-card {
    flex: 0 0 calc(50% - 12px);
  }
}

/* Tablet and below */
@media (max-width: 900px) {
  /* Header & Nav */
  .header-inner {
    padding: 18px 12px;
    min-height: 80px;
  }
  
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 19, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    padding: 80px 20px;
    border-radius: 0;
    z-index: 998;
  }
  
  .nav.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
  }
  
  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.125rem;
  }
  
  .nav-toggle {
    display: block;
    z-index: 999;
  }
  
  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 60px 0;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding: 60px 0;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .hero-name {
    font-size: 3rem;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  /* Sections */
  .section {
    padding: 80px 0;
  }
  
  .section-header {
    margin-bottom: 48px;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* About Section */
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual {
    order: -1;
  }

  .about-illustration {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .about-sidebar {
    position: static;
    order: -1;
  }
  
  .about-heading {
    font-size: 1.75rem;
  }
  
  .social-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Skills Section */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Projects Section */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card.featured {
    grid-column: 1;
  }
  
  .project-title {
    font-size: 1.25rem;
    padding: 0 24px;
  }
  
  .project-card.featured .project-title {
    font-size: 1.375rem;
  }
  
  .project-desc {
    font-size: 0.875rem;
    padding: 0 24px;
  }
  
  .project-header {
    padding: 20px 24px 0;
  }
  
  .project-meta {
    padding: 0 24px 20px;
  }
  
  .project-actions {
    padding: 16px 24px 24px;
    flex-direction: column;
  }
  
  .btn-project {
    width: 100%;
  }
  
  /* Achievements Carousel - Tablet */
  .achievement-card {
    flex: 0 0 calc(50% - 12px);
  }
  
  /* Contact Form */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .form-group-full {
    grid-column: 1;
  }
  
  .form-actions {
    justify-content: stretch;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 700px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-name {
    font-size: 2.5rem;
  }
  
  .hero-greeting {
    font-size: 1.25rem;
  }
  
  .typing-text {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-heading {
    font-size: 1.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Achievements Carousel - Mobile */
  .achievement-card {
    flex: 0 0 100%;
    padding: 28px 24px;
  }
  
  .achievement-icon-wrapper {
    width: 64px;
    height: 64px;
  }
  
  .achievement-title {
    font-size: 1rem;
  }
  
  .achievement-desc {
    font-size: 0.875rem;
  }
  
  .carousel-controls {
    gap: 16px;
    margin-top: 32px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .achievement-item {
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }
  
  .achievement-icon {
    font-size: 1.5rem;
  }
  
  .back-to-top {
    right: 16px;
    bottom: 20px;
  }
  
  /* Projects - even smaller spacing on mobile */
  .project-title {
    font-size: 1.125rem;
    padding: 0 20px;
  }
  
  .project-card.featured .project-title {
    font-size: 1.25rem;
  }
  
  .project-desc {
    font-size: 0.8125rem;
    padding: 0 20px;
  }
  
  .project-header {
    padding: 16px 20px 0;
  }
  
  .project-meta {
    padding: 0 20px 16px;
  }
  
  .project-actions {
    padding: 14px 20px 20px;
  }
  
  .project-type {
    font-size: 0.75rem;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

/* Accessibility */
:focus{outline:3px solid rgba(124,92,255,0.16);outline-offset:3px}

/* Responsive - Mobile First */
@media (max-width:900px){
  .hero{grid-template-columns:1fr;gap:var(--space-md)}
  .about-grid{grid-template-columns:1fr}
  .skills-grid{grid-template-columns:1fr}
  .projects-grid{grid-template-columns:1fr}
  .header-inner{gap:12px}
}

@media (min-width:900px){
  .nav-list{display:flex}

  /* center the nav horizontally while keeping brand left */
  .nav{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex}
  .header-inner{padding-left:0;padding-right:0}
}

/* larger horizontal padding on wide screens to match reference spacing */
@media (min-width:1200px){
  .container{padding:0 60px}
  
  .hero-inner {
    gap: 100px;
  }
}

@media (min-width:1400px){
  .hero-inner {
    grid-template-columns: 420px 1fr;
  }
}

/* reduce large vertical padding on narrow-but-wide viewports to keep sections readable */
@media (max-width:1100px){
  .section{padding:80px 0}
}

/* Responsive grids: use auto-fit to make cards reflow cleanly */
@media (min-width:700px){
  .skills-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
  .projects-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
}

@media (max-width:699px){
  .projects-grid,.skills-grid{grid-template-columns:1fr}
}

/* Additional mobile improvements */
@media (max-width:900px){
  /* Drawer nav disabled for mobile - using always-visible top navbar instead */
  
  /* make form fields stack on small screens */
  .form-grid{grid-template-columns:1fr}

  /* stack footer content */
  .footer-inner{flex-direction:column;align-items:flex-start;gap:12px}
}

/* Utility */
.text-muted{color:var(--color-muted)}
.h-100{height:100%}

/* Apply a top offset so fixed header doesn't cover content. Updated dynamically via JS. */
:root{--header-offset:96px}
main{padding-top:var(--header-offset)}

/* Ensure anchor targets and sections don't get hidden under the fixed header */
main section{scroll-margin-top:calc(var(--header-offset) + 8px)}

/* Reveal on scroll (will be toggled via JS) */
.reveal{opacity:0;transform:translateY(12px);transition:opacity 500ms ease,transform 500ms ease}
.reveal.visible{opacity:1;transform:none}

/* === NEW STYLES FOR RESTRUCTURED PORTFOLIO === */

/* Text Utilities */
.text-center {
  text-align: center !important;
}

/* About Section - Updated Layout */
.about-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-visual {
  width: 100%;
}

.about-illustration {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* Achievements Header Center */
.achievements-header {
  text-align: center;
  margin-bottom: 48px;
}

/* Contact Section - Two Column Layout */
.contact-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.contact-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(124, 92, 255, 0.1);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--color-text);
  font-size: 1rem;
}

.contact-detail-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.contact-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--color-accent);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.contact-social-icon:hover {
  background: rgba(124, 92, 255, 0.2);
  border-color: var(--color-accent);
  opacity: 1;
  transform: translateY(-2px);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--color-text);
  font-size: 1rem;
}

.contact-detail-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.contact-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--color-accent);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.contact-social-icon:hover {
  background: rgba(124, 92, 255, 0.2);
  border-color: var(--color-accent);
  opacity: 1;
  transform: translateY(-2px);
}

.contact-form-panel {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

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

/* Footer - Redesigned */
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 32px 0 24px;
}

/* Minimal Professional Footer */
.footer {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
  margin: 0;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-name {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

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

.footer-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-muted);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: rgba(124, 92, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.footer-copyright {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Profile Image - Taller and Circle on Mobile */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(124, 92, 255, 0.3);
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.15);
  transition: transform 0.4s ease;
}

/* Projects Grid - 2 per row on desktop */
.projects-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* === DESKTOP LAYOUT (>768px) === */
@media (min-width: 769px) {
  .hero-visual {
    display: none !important; /* Hide image on desktop */
    order: -1; /* Image on left for desktop (if ever shown) */
  }
}

/* Responsive Updates */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-left {
    order: -1;
  }

  .about-illustration {
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-panel {
    padding: 32px 24px;
  }

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

  .footer-nav {
    gap: 20px;
  }

  .hero-contact-info {
    flex-direction: column;
    gap: 16px;
  }

  /* Make profile image circular on mobile */
  .hero-image-wrapper {
    max-width: 280px;
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 0 auto;
  }

  /* Projects 1 per row on mobile */
  .projects-grid {
    grid-template-columns: 1fr !important;
  }
}

/* === MOBILE RESPONSIVE (≤768px) === */
@media (max-width: 768px) {
  /* === GLOBAL MOBILE === */
  .container {
    padding: 0 20px;
  }

  body {
    font-size: 15px;
  }

  /* === NAVBAR - MOBILE === */
  .site-header {
    padding: 10px 0;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .header-inner {
    padding: 0 12px;
    min-height: auto;
  }

  .brand {
    display: none !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav {
    display: block !important;
    width: 100%;
    padding: 6px 8px;
    background: rgba(255,255,255,0.02);
    box-shadow: none;
    border-radius: 12px;
  }

  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .nav-list > li {
    flex: 0 0 auto;
  }

  .nav-link {
    padding: 8px 4px;
    font-size: 0.75rem;
    justify-content: center;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
  }

  .nav-link span {
    display: block;
  }

  /* Show More dropdown, hide desktop nav items */
  .nav-item-desktop {
    display: none !important;
  }

  .nav-item-more {
    display: block !important;
  }

  .nav-more-dropdown {
    right: 0;
    left: auto;
    transform: none;
  }

  /* === HERO SECTION - MOBILE REORDER === */
  .hero {
    padding: 0;
    min-height: auto;
    margin-top: 20px;
  }

  .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    padding: 24px 0 40px;
    align-items: center;
    text-align: center;
    grid-template-columns: unset !important;
  }

  /* 1. Status Badges */
  .hero-badges {
    order: 1 !important;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
  }

  .status-badge {
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 16px;
  }

  /* 2. Name */
  .hero-title {
    order: 2 !important;
    font-size: 1.75rem;
    margin: 0 0 12px 0;
    line-height: 1.2;
  }

  .hero-greeting {
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
    color: var(--color-muted);
  }

  .hero-name {
    font-size: 2rem;
    display: block;
  }

  /* 3. Role */
  .hero-role {
    order: 3 !important;
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    min-height: 28px;
  }

  /* 4. Photo - Above description */
  .hero-visual {
    display: block !important; /* Show on mobile */
    order: 4 !important;
    margin: 20px 0 16px;
  }

  .hero-image-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50% !important;
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.3),
                0 0 16px rgba(124, 92, 255, 0.4),
                0 6px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-width: 160px;
  }

  .hero-image {
    border-radius: 50% !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 5. Description - After photo */
  .hero-description {
    order: 5 !important;
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 100%;
    margin: 0;
    padding: 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 6. Buttons - Same row */
  .hero-actions {
    order: 6 !important;
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    margin: 16px 0 0;
    padding: 0 12px;
  }

  .hero-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    min-height: 48px;
    font-size: 0.8rem;
  }

  .hero-actions .btn span {
    display: inline;
  }

  .hero-actions .btn svg {
    width: 14px;
    height: 14px;
  }

  /* 7. Divider */
  .hero-divider {
    order: 7 !important;
    width: 80%;
    max-width: 200px;
    margin: 12px auto;
    height: 1px;
  }

  /* 8. Connect Links - Horizontal icons only */
  .hero-contact-info {
    order: 8 !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
    width: 100%;
    padding: 0 12px;
  }

  .connect-label {
    display: none;
  }

  .hero-contact-item span {
    display: none;
  }

  .hero-contact-item {
    width: auto;
    min-width: 44px;
    padding: 12px;
    background: rgba(124, 92, 255, 0.1);
    border-radius: 50%;
    justify-content: center;
  }

  .hero-contact-item svg {
    width: 22px;
    height: 22px;
    margin: 0;
  }

  /* More dropdown touch-friendly */
  .nav-more-dropdown {
    min-width: 180px;
  }

  .nav-more-dropdown .nav-link {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  /* FINAL AUTHORITY: Override all competing nav systems */
  #primary-navigation {
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  /* Contact Section - Compact Mobile */
  #contact.section {
    padding: 40px 0;
  }

  .contact-section-header {
    margin-bottom: 24px;
  }

  .contact-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
  }

  .contact-label {
    font-size: 0.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Contact Info - Compact version */
  .contact-intro {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .contact-info-panel {
    gap: 24px;
  }

  /* Hide location on mobile */
  .contact-detail-item:has(svg path[d*="M12 2C8.13"]) {
    display: none;
  }

  .contact-details {
    gap: 16px;
  }

  .contact-detail-item {
    font-size: 0.9375rem;
  }

  .contact-social-icons {
    gap: 10px;
    margin-top: 8px;
  }

  .contact-social-icon {
    width: 44px; /* Accessibility: touch target size */
    height: 44px;
  }

  /* Contact Form - Stacked vertically */
  .contact-form-panel {
    padding: 0;
  }

  .contact-form .form-group {
    margin-bottom: 16px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px;
    font-size: 0.9375rem;
  }

  .btn-block {
    padding: 14px;
    font-size: 0.9375rem;
    min-height: 48px; /* Accessibility: touch target size */
  }

  /* Footer - Minimal Mobile */
  .footer {
    padding: 20px 0;
    font-size: 0.8125rem;
  }

  .footer-nav,
  .footer-social-links,
  .footer-container > *:not(p) {
    display: none; /* Hide all navigation and social links */
  }

  .footer p {
    margin: 0;
  }

  /* Launch Overlay - Mobile adjustments */
  .launch-name {
    font-size: 1.75rem;
  }

  .launch-role {
    font-size: 1rem;
  }

  .launch-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
  }

  .launch-icon svg {
    width: 64px;
    height: 64px;
  }

  .launch-icons {
    gap: 14px;
  }

  .launch-icons svg {
    width: 20px;
    height: 20px;
  }
}

/* === DESKTOP HERO LAYOUT (≥1024px) - PHOTO LEFT, CONTENT RIGHT === */
@media (min-width: 1024px) {
  .hero {
    min-height: calc(100vh - 96px);
    padding: 0;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 0;
  }

  /* Show photo on desktop - LEFT SIDE */
  .hero-visual {
    display: block !important;
    order: 1;
  }

  .hero-image-wrapper {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(124, 92, 255, 0.05));
    padding: 8px;
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.3),
                0 8px 32px rgba(124, 92, 255, 0.2),
                0 16px 48px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hero-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.5),
                0 12px 40px rgba(124, 92, 255, 0.3),
                0 20px 56px rgba(0, 0, 0, 0.5);
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
  }

  /* Content on RIGHT SIDE */
  .hero-content {
    order: 2;
    max-width: 100%;
  }

  .hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    line-height: 1.1;
  }

  .hero-greeting {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
  }

  .hero-name {
    font-size: 4rem;
    display: block;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-role {
    font-size: 1.5rem;
    margin: 16px 0 24px;
    min-height: 36px;
  }

  .hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 32px;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 32px;
  }

  .hero-actions .btn {
    padding: 14px 28px;
    font-size: 1rem;
    width: auto;
  }

  .hero-divider {
    display: none; /* Hide divider on desktop */
  }

  .hero-contact-info {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
  }

  .connect-label {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.95rem;
  }

  .hero-contact-item {
    background: transparent;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    min-width: auto;
  }

  .hero-contact-item:hover {
    background: rgba(124, 92, 255, 0.1);
  }

  .hero-contact-item span {
    display: inline;
    margin-left: 8px;
  }

  .hero-contact-item svg {
    width: 20px;
    height: 20px;
    margin: 0;
  }
}
