/* ===========================================
   Enhanced Portfolio - Modern Animations
   =========================================== */

/* ===========================================
   TABLE OF CONTENTS
   ===========================================
   1. CSS Reset & Base
   2. CSS Variables
   3. Scrollbar Styling
   4. Typography
   5. Background & Decorative Elements
   6. Layout Structure
   7. Sidebar
   8. Navigation
   9. Social Links
   10. Main Content
   11. Section Headers
   12. About Section
   13. Experience Section
   14. Education Section
   15. Projects Section
   16. Services Section
   17. Tech Stack Section
   18. Contact/CTA Section
   19. Footer
   20. Animations & Keyframes
   21. Utility Classes
   22. SVG Filters
   23. Media Queries
   =========================================== */

/* ===========================================
   1. CSS RESET & BASE
   =========================================== */

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

::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
  text-shadow: none;
}

::-moz-selection {
  background: var(--accent-glow);
  color: var(--text-primary);
  text-shadow: none;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

/* Enhanced focus states for all links */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Smooth cursor pointer */
button,
a,
[role="button"] {
  cursor: pointer;
  user-select: none;
}

/* Smooth transitions for interactive elements */
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

/* ===========================================
       2. CSS VARIABLES
       =========================================== */

:root {
  /* iOS Dark Teal */
  --bg-darkest: #0a1818;
  --bg-darker: #0f2424;
  --bg-dark: #1a3d3d;
  --bg-medium: #245252;

  /* Glass & Borders */
  --glass-subtle: rgba(255, 255, 255, 0.03);
  --glass-medium: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(94, 184, 184, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 8px 32px rgba(94, 184, 184, 0.15);

  /* Text */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-accent: #5eb8b8;

  /* Accent */
  --accent: #5eb8b8;
  --accent-soft: #4a9a9a;
  --accent-glow: rgba(94, 184, 184, 0.2);
  --accent-bright: #6fd4d4;

  /* Typography */
  --font-sans: "Geist", sans-serif;
  --font-mono: "Geist Mono", monospace;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===========================================
       3. SCROLLBAR STYLING
       =========================================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Sidebar custom scrollbar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: 10px;
}

/* ===========================================
       4. TYPOGRAPHY
       =========================================== */

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

h1 {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
}

h1,
h2 {
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
}

h4 {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  color: var(--text-accent);
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 15px;
}

/* ===========================================
       5. BACKGROUND & DECORATIVE ELEMENTS
       =========================================== */

.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    var(--bg-dark) 0%,
    var(--bg-darker) 50%,
    var(--bg-darkest) 100%
  );
}

.glass-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, #2d6060, transparent 70%);
}

.orb-2 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, #245252, transparent 70%);
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  right: 15%;
  background: radial-gradient(circle, #1a3d3d, transparent 70%);
}

/* ===========================================
       6. LAYOUT STRUCTURE
       =========================================== */

.container {
  display: flex;
  min-height: 100vh;
}

/* ===========================================
       7. SIDEBAR
       =========================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 42%;
  max-width: 450px;
  height: 100vh;
  padding: 80px 50px;
  display: flex;
  z-index: 10;
  background: var(--glass-subtle);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.sidebar-inner {
  width: 100%;
  margin: auto 0;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  justify-content: center;
}

/* Sidebar intro */
.intro .title-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeSlideUp 0.8s ease-out 0.3s backwards;
}

.intro h1 {
  margin-bottom: 16px;
  animation: fadeSlideUp 1s ease-out 0.5s backwards;
}

.intro h2 {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeSlideUp 0.8s ease-out 0.7s backwards;
}

.intro p {
  max-width: 400px;
  line-height: 1.8;
  animation: fadeSlideUp 0.8s ease-out 0.9s backwards;
  text-wrap: balance;
}

/* ===========================================
       8. NAVIGATION
       =========================================== */

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 0;
}

nav li {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease, transform 0.3s ease;
  animation: fadeSlideLeft 0.6s ease-out backwards;
}

/* Staggered animation delays */
nav li:nth-child(1) a {
  animation-delay: 0.8s;
}

nav li:nth-child(2) a {
  animation-delay: 0.9s;
}

nav li:nth-child(3) a {
  animation-delay: 1s;
}

nav li:nth-child(4) a {
  animation-delay: 1.1s;
}

nav li:nth-child(5) a {
  animation-delay: 1.2s;
}

nav li:nth-child(6) a {
  animation-delay: 1.3s;
}

/* Left indicator line */
nav a::before {
  content: "";
  width: 18px;
  height: 2px;
  flex-shrink: 0;
  background: var(--text-tertiary);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease, box-shadow 0.3s ease;
}

/* Bottom active bar */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover state */
nav a:hover {
  color: var(--accent-bright);
  padding-left: 4px;
}

/* Active state */
nav a.active {
  color: var(--accent-bright);
  padding-left: 6px;
}

nav a.active::before {
  width: 56px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 18px var(--accent-glow), 0 0 36px rgba(255, 255, 255, 0.04);
}

/* Focus state for accessibility */
nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Active background halo */
nav li:has(a.active)::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

/* ===========================================
       9. SOCIAL LINKS
       =========================================== */

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.3s var(--ease);
  animation: scaleIn 0.5s ease-out backwards;
  position: relative;
}

.social-icon:nth-child(1) {
  animation-delay: 1.7s;
}

.social-icon:nth-child(2) {
  animation-delay: 1.8s;
}

.social-icon:nth-child(3) {
  animation-delay: 1.9s;
}

.social-icon:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--glass-subtle);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.social-icon:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s var(--ease);
}

.social-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--border-accent);
}

/* ===========================================
       10. MAIN CONTENT
       =========================================== */

.main-content {
  margin-left: min(42%, 450px);
  width: calc(100% - min(42%, 450px));
  min-height: 100vh;
  position: relative;
  overflow: visible;
  padding-top: 100px;
}

.content-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

section {
  margin-bottom: 120px;
  position: relative;
  transform: none !important;
}

/* ===========================================
       11. SECTION HEADERS
       =========================================== */

.section-header {
  position: sticky;
  top: 0;
  padding: 24px 0;
  margin-bottom: 40px;
  z-index: 5;
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
  color: var(--text-accent);

  isolation: isolate;
}

/* Header reveal animations */
.section-header.header-reveal {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.section-header.header-reveal h2 {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1s var(--ease-out) 0.2s,
    transform 1s var(--ease-spring) 0.2s;
}

.section-header.header-reveal.header-revealed h2 {
  opacity: 1;
  transform: translateX(0);
}

/* Subtle hover effect on section headers */
.section-header:not(.is-sticky) h2 {
  transition: all 0.3s var(--ease);
}

.section-header:not(.is-sticky):hover h2 {
  transform: translateX(4px);
  color: var(--accent-bright);
}

.section-header h2 {
  font-size: clamp(22px, 4vw, 36px);
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 820px;
  display: flex;
  margin: 0 auto;
  cursor: default;
}

/* Glass effect layers */
.glass-filter,
.glass-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.glass-filter {
  z-index: 0;
  backdrop-filter: blur(4px);
  filter: url(#lensFilter) saturate(100%) brightness(1);
}

.glass-overlay {
  z-index: 1;
  background: rgba(255, 255, 255, 0.05);
}

/* Default: glass OFF */
.section-header .glass-filter,
.section-header .glass-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms var(--ease);
}

/* When sticky: glass ON */
.section-header.is-sticky .glass-filter,
.section-header.is-sticky .glass-overlay {
  opacity: 1;
}

/* ===========================================
       12. ABOUT SECTION
       =========================================== */

.about-content p:not(:last-of-type) {
  margin-bottom: 24px;
}

.about-content a {
  color: var(--accent);
  font-weight: 500;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

/* Base underline */
.about-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;

  background: linear-gradient(90deg, var(--accent), var(--accent-bright));

  opacity: 0.4;
  transform: scaleX(0.4);
  transform-origin: left;

  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease,
    filter 0.4s ease;
}

/* Hover */
.about-content a:hover {
  color: var(--accent-bright);
}

.about-content a:hover::after {
  transform: scaleX(1);
  opacity: 1;
  filter: blur(0.2px);
}

/* Active */
.about-content a:active::after {
  transform: scaleX(0.85);
  transition-duration: 0.15s;
}

/* Focus */
.about-content a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ===========================================
       13. EXPERIENCE SECTION
       =========================================== */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  container-type: inline-size;
  container-name: experience;
}

.experience-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--glass-subtle);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Animated gradient border */
.experience-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--accent),
    var(--accent-bright),
    var(--accent)
  );
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-spring);
}

/* Subtle glow effect */
.experience-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    var(--accent-glow) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.experience-item:hover {
  background: var(--glass-medium);
  border-color: var(--border-medium);
  transform: translateX(6px) translateY(-2px);
  box-shadow: var(--shadow-glow), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.experience-item:active {
  transform: translateX(4px) translateY(-1px);
  transition: all 0.15s var(--ease);
}

.experience-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.experience-item:hover::after {
  opacity: 0.3;
}

.experience-period {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}

.experience-content {
  position: relative;
  z-index: 1;
}

.experience-title {
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
  display: inline-block;
  position: relative;
}

.experience-title::after {
  content: "";
  margin-left: 8px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd4d4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.1002 3C7.45057 3.00657 5.53942 3.09617 4.31806 4.31754C3 5.63559 3 7.75698 3 11.9997C3 16.2425 3 18.3639 4.31806 19.6819C5.63611 21 7.7575 21 12.0003 21C16.243 21 18.3644 21 19.6825 19.6819C20.9038 18.4606 20.9934 16.5494 21 12.8998'/%3E%3Cpath opacity='0.4' d='M20.5532 3.44415L15.0039 8.97814M20.5532 3.44415C20.0592 2.94964 16.7316 2.99573 16.0281 3.00574M20.5532 3.44415C21.0471 3.93866 21.0011 7.26992 20.9911 7.97418'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0;
  transform: translateX(-10px);
  display: inline-block;
  transition: all 0.3s var(--ease);
  color: currentColor;
}

.experience-item:hover .experience-title {
  color: var(--accent-bright);
}

.experience-item:hover .experience-title::after {
  opacity: 1;
  transform: translateX(0);
}

.experience-description {
  line-height: 1.8;
  margin-bottom: 16px;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;

  & > li {
    list-style: none;
  }
}

/* ===========================================
       14. EDUCATION SECTION
       =========================================== */

.education-card {
  background: var(--glass-subtle);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 36px;
  transition: all 0.3s var(--ease);
  cursor: default;

  container-type: inline-size;
  container-name: education;
}

.education-card:hover {
  background: var(--glass-medium);
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--border-medium);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 24px;
}

.education-field {
  color: var(--accent);
  font-size: 15px;
  margin-top: 8px;
  font-weight: 500;
}

.education-badge {
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.education-description {
  line-height: 1.8;
}

/* ===========================================
       15. PROJECTS SECTION
       =========================================== */

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

.project-card {
  background: var(--glass-subtle);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Animated top gradient line */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-bright),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-spring);
}

/* Radial glow effect */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    var(--accent-glow),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.project-card:hover {
  background: var(--glass-medium);
  border-color: var(--border-medium);
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-glow), 0 12px 32px rgba(0, 0, 0, 0.25);
}

.project-card:active {
  transform: translateY(-4px) scale(1.005);
  transition: all 0.15s var(--ease);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover::after {
  opacity: 0.4;
}

.project-card:first-child {
  grid-column: span 2;
}

.project-icon {
  font-size: 44px;
  margin-bottom: 20px;
  display: flex;
  width: min-content;
  opacity: 0.9;
  transition: all 0.5s var(--ease-spring);
  position: relative;
  z-index: 1;
}

.project-card:hover .project-icon {
  transform: scale(1.08);
  opacity: 1;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}

.project-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

.project-title::after {
  content: "";
  margin-left: 8px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd4d4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.1002 3C7.45057 3.00657 5.53942 3.09617 4.31806 4.31754C3 5.63559 3 7.75698 3 11.9997C3 16.2425 3 18.3639 4.31806 19.6819C5.63611 21 7.7575 21 12.0003 21C16.243 21 18.3644 21 19.6825 19.6819C20.9038 18.4606 20.9934 16.5494 21 12.8998'/%3E%3Cpath opacity='0.4' d='M20.5532 3.44415L15.0039 8.97814M20.5532 3.44415C20.0592 2.94964 16.7316 2.99573 16.0281 3.00574M20.5532 3.44415C21.0471 3.93866 21.0011 7.26992 20.9911 7.97418'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0;
  transform: translateX(-10px);
  display: inline-block;
  transition: all 0.3s var(--ease);
  color: currentColor;
}

.project-card:hover .project-title {
  color: var(--accent-bright);
}

.project-card:hover .project-title::after {
  opacity: 1;
  transform: translateX(0);
}

.project-description {
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;

  & > li {
    list-style: none;
  }
}

/* ===========================================
       16. SERVICES SECTION
       =========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--glass-subtle);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 36px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Gradient border animation */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--accent-glow),
    transparent,
    var(--accent-glow)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

/* Icon background glow */
.service-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.service-card:hover {
  background: var(--glass-medium);
  border-color: var(--border-medium);
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-glow), 0 12px 32px rgba(0, 0, 0, 0.25);
}

.service-card:active {
  transform: translateY(-3px) scale(1.01);
  transition: all 0.15s var(--ease);
}

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

.service-card:hover::after {
  opacity: 0.6;
}

.service-card:first-child {
  grid-column: span 2;
}

.service-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--glass-medium);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  transition: all 0.4s var(--ease-spring);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-glow);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 19px;
  position: relative;
  z-index: 1;
  transition: color 0.3s var(--ease);
}

.service-card:hover h3 {
  color: var(--accent-bright);
}

.service-card p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.service-card li {
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
  font-size: 14px;
  color: var(--text-tertiary);
  transition: all 0.3s var(--ease);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd4d4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath opacity='0.4' d='M3 13.3333C3 13.3333 4.5 14 6.5 17C6.5 17 6.78485 16.5192 7.32133 15.7526M17 6C14.7085 7.14577 12.3119 9.55181 10.3879 11.8223'/%3E%3Cpath d='M8 13.3333C8 13.3333 9.5 14 11.5 17C11.5 17 17 8.5 22 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  color: currentColor;
}

.service-card:hover li {
  color: var(--text-secondary);
}

.service-card:hover li::before {
  color: var(--accent-bright);
}

/* ===========================================
       17. TECH STACK SECTION
       =========================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tech-card {
  background: var(--glass-subtle);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Animated gradient border */
.tech-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-bright),
    var(--accent),
    transparent
  );
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}

/* Bottom accent line */
.tech-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--accent-bright),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.tech-card:hover {
  background: var(--glass-medium);
  border-color: var(--border-medium);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-glow), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tech-card:hover::before {
  opacity: 0.3;
}

.tech-card:hover::after {
  opacity: 1;
}

.tech-card h4 {
  margin-bottom: 18px;
  font-size: 16px;
  position: relative;
  transition: color 0.3s var(--ease);
}

.tech-card:hover h4 {
  color: var(--accent-bright);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  & > li {
    list-style: none;
  }
}

.tech-items .tag {
  background: var(--glass-medium);
  border-color: var(--border-medium);
}

/* ===========================================
       18. CONTACT/CTA SECTION
       =========================================== */

.cta-section {
  text-align: center;
  background: var(--glass-subtle);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 60px 40px;
  margin-top: 40px;

  container-type: inline-size;
  container-name: cta;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

/* Email CTA - Large Text Style */
/* ===========================================
     iOS Liquid — Text-style Email CTA
     =========================================== */

.email-container {
  position: relative;
  display: inline-block;
}

/* Interactive text */
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;

  color: var(--text-primary);
  text-decoration: none;

  position: relative;
  padding: 4px 0;

  transition: transform 0.6s var(--ease), color 0.4s ease;
}

/* Liquid gradient text */
/* ===========================================
     Ultra-minimal liquid text link
     =========================================== */

.email-container {
  display: inline-block;
}

/* Base link */
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  font-family: var(--font-mono);
  font-size: clamp(24px, 5cqw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;

  color: var(--text-primary);
  text-decoration: none;

  position: relative;
  padding: 4px 0;

  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Text */
.email-text {
  background: linear-gradient(120deg, var(--text-primary), var(--accent));
  background-size: 100% 100%;
  background-position: 0% 50%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  transition: background-position 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s ease;
}

/* Underline */
.email-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;

  background: linear-gradient(90deg, transparent, var(--accent), transparent);

  opacity: 0.25;
  transform: scaleX(0.6);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Arrow */
.email-arrow {
  display: flex;
  align-items: center;
  opacity: 0.4;
  transform: translateX(-6px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);

  & > svg {
    width: 24px;
    height: 24px;
  }
}

/* Hover */
.email-link:hover {
  transform: translateX(6px);
}

.email-link:hover .email-text {
  background-position: 100% 50%;
  opacity: 1;
}

.email-link:hover::after {
  opacity: 0.8;
  transform: scaleX(1);
}

.email-link:hover .email-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Active */
.email-link:active {
  transform: translateX(3px);
}

/* Focus state for accessibility */
.email-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

/* ===========================================
       19. FOOTER
       =========================================== */

footer {
  text-align: center;
  padding: 40px 0 30px;
  margin-top: 80px;
  border-top: 1px solid var(--border-subtle);
}

footer p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===========================================
       20. ANIMATIONS & KEYFRAMES
       =========================================== */

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

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes headerReveal {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  60% {
    opacity: 1;
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerTextReveal {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  60% {
    opacity: 1;
    transform: translateX(2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===========================================
       21. UTILITY CLASSES
       =========================================== */

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--bg-darkest);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
}

/* Shared tag styles */
.tag {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--glass-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease);
  cursor: default;
  user-select: none;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--glass-medium);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(94, 184, 184, 0.15);
}

.tag:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s var(--ease);
}

/* Scroll-reveal animations */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

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

/* Stagger animation delays for experience */
.experience-list .reveal-item:nth-child(1) {
  transition-delay: 0s;
}

.experience-list .reveal-item:nth-child(2) {
  transition-delay: 0.1s;
}

.experience-list .reveal-item:nth-child(3) {
  transition-delay: 0.2s;
}

/* Stagger animation delays for projects */
.projects-grid .reveal-item:nth-child(1) {
  transition-delay: 0s;
}

.projects-grid .reveal-item:nth-child(2) {
  transition-delay: 0.1s;
}

.projects-grid .reveal-item:nth-child(3) {
  transition-delay: 0.15s;
}

.projects-grid .reveal-item:nth-child(4) {
  transition-delay: 0.2s;
}

.projects-grid .reveal-item:nth-child(5) {
  transition-delay: 0.25s;
}

/* Stagger animation delays for services */
.services-grid .reveal-item:nth-child(1) {
  transition-delay: 0s;
}

.services-grid .reveal-item:nth-child(2) {
  transition-delay: 0.1s;
}

.services-grid .reveal-item:nth-child(3) {
  transition-delay: 0.15s;
}

.services-grid .reveal-item:nth-child(4) {
  transition-delay: 0.2s;
}

/* Stagger animation delays for tech */
.tech-grid .reveal-item {
  transition-delay: 0s;
}

.tech-grid .reveal-item:nth-child(2) {
  transition-delay: 0.08s;
}

.tech-grid .reveal-item:nth-child(3) {
  transition-delay: 0.16s;
}

.tech-grid .reveal-item:nth-child(4) {
  transition-delay: 0.24s;
}

.tech-grid .reveal-item:nth-child(5) {
  transition-delay: 0.32s;
}

.tech-grid .reveal-item:nth-child(6) {
  transition-delay: 0.4s;
}

/* ===========================================
       22. SVG FILTERS
       =========================================== */

/* SVG filter is defined inline in HTML */

/* ===========================================
       23. MEDIA QUERIES
       =========================================== */

/* ========== Height-Based Queries ========== */

@media (max-height: 800px) {
  section {
    margin-bottom: 40px;
  }

  .sidebar {
    padding: 50px;
  }

  .sidebar-content {
    justify-content: flex-start;
    min-height: auto;
  }

  .main-content {
    padding-top: 40px;
  }
}

@media (max-height: 600px) {
  section {
    margin-bottom: 32px;
  }

  .sidebar {
    padding: 40px 50px;
  }

  .sidebar-content {
    gap: 30px;
  }

  .main-content {
    padding-top: 32px;
  }
}

/* ========== Width-Based Queries ========== */

@media (max-width: 1536px) {
  section {
    margin-bottom: 80px;
  }

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

  .section-header h2 {
    padding: 0 40px;
  }

  .content-wrapper {
    padding: 0 40px;
  }
}

@media (max-width: 1024px) {
  section {
    margin-bottom: 40px;
  }

  .sidebar {
    width: 36%;
    max-width: 380px;
    padding-inline: 24px;
  }

  .main-content {
    margin-left: min(36%, 380px);
    width: calc(100% - min(36%, 380px));
    padding-top: 80px;
  }

  .projects-grid,
  .services-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .project-card:first-child,
  .service-card:first-child {
    grid-column: span 1;
  }

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

  .email-arrow {
    & > svg {
      width: 18px;
      height: 18px;
    }
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 60px 24px 40px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  nav {
    display: none;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding-top: 60px;
  }

  .content-wrapper {
    padding: 0 24px;
  }

  section {
    margin-bottom: 60px;
  }

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

  .section-header h2 {
    padding: 0 24px;
  }

  .experience-period {
    order: -1;
  }

  .projects-grid,
  .services-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .project-card:first-child {
    grid-column: span 1;
  }

  .cta-section {
    padding: 48px 28px;
  }

  .glass-orb {
    display: none;
  }

  .email-link {
    font-size: 14px;
    padding: 11px 16px;
    border-radius: 12px;
  }

  .email-arrow {
    & > svg {
      width: 14px;
      height: 14px;
    }
  }
}

@container experience (max-width: 640px) {
  .experience-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }
}

@container education (max-width: 420px) {
  .education-header {
    gap: 4px;
  }
}

@container education (max-width: 340px) {
  .education-header {
    flex-direction: column;
  }
}

/* ========== Accessibility ========== */

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #c0c0c0;
    --border-subtle: rgba(255, 255, 255, 0.2);
    --border-medium: rgba(255, 255, 255, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .glass-orb {
    transform: none !important;
  }
}

/* Print styles */
