/*-----------------------------------*\
  #PORTFOLIO - FLUID ORBIT LAYOUT
  Modern iOS 26 inspired design with liquid glass
\*-----------------------------------*/

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /* === Colors - Cyan/Green Theme === */
  --accent-primary: #00D9FF;
  --accent-secondary: #00FF88;
  --accent-gradient: linear-gradient(135deg, #00D9FF 0%, #00FF88 100%);
  --accent-gradient-reverse: linear-gradient(135deg, #00FF88 0%, #00D9FF 100%);

  /* Glows */
  --glow-cyan: 0 0 40px rgba(0, 217, 255, 0.3);
  --glow-green: 0 0 40px rgba(0, 255, 136, 0.3);
  --glow-mixed: 0 0 60px rgba(0, 217, 255, 0.2), 0 0 100px rgba(0, 255, 136, 0.15);

  /* Dark backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(18, 18, 26, 0.6);
  --bg-card-hover: rgba(25, 25, 35, 0.8);
  --bg-gradient-jet: linear-gradient(to bottom right,
      hsla(240, 1%, 18%, 0.251) 0%,
      hsla(240, 2%, 11%, 0) 100%), hsl(240, 2%, 13%);

  /* Glass effects */
  --glass-bg: rgba(20, 20, 30, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.1);

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 217, 255, 0.3);
  --border-gradient-onyx: linear-gradient(to bottom right,
      hsl(0, 0%, 25%) 0%,
      hsla(0, 0%, 25%, 0) 50%);

  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 80px rgba(0, 217, 255, 0.1);

  /* Typography */
  --ff-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Font sizes */
  --fs-hero: clamp(2.5rem, 6vw, 4rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --section-padding: clamp(60px, 10vh, 120px);
  --container-padding: clamp(20px, 5vw, 80px);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

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

body {
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/*-----------------------------------*\
  #DYNAMIC ISLAND NAVIGATION
\*-----------------------------------*/

.dynamic-island {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  /* Liquid Glass Effect */
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);

  /* Animated border */
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);

  /* Shadows & Glow */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 217, 255, 0.1),
    inset 0 1px 0 var(--glass-highlight);

  padding: 10px 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dynamic-island::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), transparent 50%, rgba(0, 255, 136, 0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dynamic-island:hover::before {
  opacity: 1;
}

.island-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.island-home {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.island-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  /* Default: subtle green border */
  border: 2px solid var(--accent-secondary);
  transition: all 0.3s ease;
}

/* Avatar neon glow when FireT is active */
.island-home.active .island-avatar {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px rgb(0 255 136 / 30%), 0 0 30px rgba(0, 255, 136, 0.3);
}

/* Avatar subtle when not active */
.island-home:not(.active) .island-avatar {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: none;
}

.island-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.island-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-small);
  white-space: nowrap;
  transition: all 0.3s ease;
  /* Default text color */
  color: var(--text-secondary);
}

/* FireT text glow when active */
.island-home.active .island-name {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.island-home:hover .island-name {
  color: var(--text-primary);
}

.island-nav {
  display: flex;
  gap: 4px;
  position: relative;
  /* Context for slider */
  padding: 4px;
  /* Space for slider */
  transition: all 0.3s ease;
  z-index: 1;
}

.nav-slider {
  position: absolute;
  top: 4px;
  /* Match padding */
  bottom: 4px;
  left: 0;
  width: 0;
  /* JS will set this */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  z-index: -1;
  /* Behind text */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Sliding effect */
  opacity: 0;
  /* Hidden initially */
}

.island-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: color var(--transition-fast);
  /* Only animate color */
  white-space: nowrap;
  position: relative;
  z-index: 2;
  /* Text above slider */
}

.island-pill:hover {
  color: var(--text-primary);
  /* No background on hover, maybe slight text brightening */
}

.island-pill.active {
  color: #fff;
  /* White text for active */
  /* Background handled by slider */
}

/* Ghost pill - invisible but positions slider */
.island-pill.ghost {
  visibility: hidden;
  width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Dynamic Island always visible - no collapse */

/* Mobile - Tablet */
@media (max-width: 768px) {
  .dynamic-island {
    padding: 8px 14px;
    max-width: 95vw;
  }

  .island-name {
    display: none;
  }

  .island-content {
    gap: 10px;
  }

  .island-nav {
    gap: 2px;
    padding: 2px;
  }

  .island-pill {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* Mobile - Small Screens */
@media (max-width: 480px) {
  .dynamic-island {
    top: 12px;
    padding: 6px 10px;
    max-width: 98vw;
  }

  .island-avatar {
    width: 28px;
    height: 28px;
    border-width: 1px;
  }

  .island-content {
    gap: 8px;
  }

  .island-nav {
    display: flex;
    gap: 2px;
    padding: 2px;
    max-width: 70vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .island-nav::-webkit-scrollbar {
    display: none;
  }

  .island-pill {
    padding: 5px 8px;
    font-size: 10px;
    flex-shrink: 0;
  }

  .nav-slider {
    top: 2px;
    bottom: 2px;
  }
}

/*-----------------------------------*\
  #HERO SECTION
\*-----------------------------------*/

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--section-padding) var(--container-padding);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.5) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(50px, -30px) scale(1.1);
  }

  50% {
    transform: translate(-30px, 50px) scale(0.95);
  }

  75% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

/*-----------------------------------*\
  #HERO: MODERN SPLIT LAYOUT
\*-----------------------------------*/

.hero-container.split-layout {
  min-height: auto;
  /* Removed 100vh to prevent huge gaps */
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  align-items: center;
  gap: 60px;
  padding: 130px 20px 80px;
  /* Adjusted padding: Top enough for nav, bottom for breathing room */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* ===== Left Column: Avatar & Socials ===== */
.hero-left-col {
  display: flex;
  justify-content: center;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  z-index: 2;
}

.main-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Circle avatar */
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-2), 0 0 50px rgba(0, 217, 255, 0.15);
  animation: floatAvatar 6s ease-in-out infinite;
}

.avatar-glow-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 255, 136, 0.3);
  animation: spinSlow 20s linear infinite;
  z-index: -1;
}

/* Floating Social Icons */
.floating-socials {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  margin-bottom: -30px;
  /* Float below avatar */
}

.float-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 40, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: floatUp 3s ease-in-out infinite;
  animation-delay: var(--d);
}

.float-icon:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateY(-5px);
  border-color: transparent;
}

@keyframes floatAvatar {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatUp {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}


/* ===== Right Column: Content ===== */
.hero-right-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Left aligned text */
  max-width: 650px;
  /* Limit width to prevent spanning too wide */
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 50px;
  font-size: 13px;
  /* Slightly smaller */
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 15px;
  /* Reduced margin */
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-name-big {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 56px);
  /* Reduced significantly */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  /* Reduced margin */
  color: var(--text-primary);
  white-space: nowrap;
  /* Keep on one line if possible */
}

.hero-tech-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  /* Reduced margin */
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  /* More compact */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.tech-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.tech-pill ion-icon {
  font-size: 18px;
  color: var(--accent-primary);
}

.hero-bio-text {
  font-size: 16px;
  /* Reduced from 18px */
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 30px;
  /* Reduced margin */
}

.hero-stats-row {
  display: flex;
  gap: 30px;
  /* Reduced gap */
  margin-bottom: 30px;
  /* Reduced margin */
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.stat-unit {
  display: flex;
  flex-direction: column;
}

.stat-unit .num {
  font-family: var(--ff-display);
  font-size: 28px;
  /* Slightly smaller */
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-unit .lbl {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-btn-group {
  display: flex;
  gap: 20px;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-container.split-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
    padding-top: 100px;
  }

  .hero-left-col {
    order: -1;
  }

  .hero-right-col {
    align-items: center;
  }

  .hero-tech-row {
    justify-content: center;
  }

  .hero-stats-row {
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero-btn-group {
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .hero-btn-group .btn {
    padding: 12px 20px;
    font-size: 13px;
    white-space: nowrap;
    width: auto;
  }

  .avatar-wrapper {
    width: 250px;
    height: 250px;
  }

  .float-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Mobile Buttons */
@media (max-width: 480px) {
  .hero-btn-group {
    gap: 10px;
  }

  .hero-btn-group .btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

/*-----------------------------------*\
  #RESUME SECTION
\*-----------------------------------*/

.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.resume-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.resume-header ion-icon {
  font-size: 24px;
  color: var(--accent-primary);
}

.resume-header h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  margin: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  border-left: 2px solid var(--border-subtle);
  padding-left: 0;
  margin-left: 10px;
}

.timeline-item {
  position: relative;
  padding: 24px;
  margin-left: 30px;
}

.timeline-dot {
  position: absolute;
  left: -41px;
  /* Adjust to align with border line */
  top: 30px;
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border: 4px solid var(--accent-secondary);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-secondary);
  box-shadow: 0 0 0 6px rgba(0, 255, 136, 0.2);
}

.timeline-date {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  margin-bottom: 5px;
  color: var(--text-primary);
}

.timeline-org {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

/*-----------------------------------*\
  #BUTTONS
\*-----------------------------------*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-small);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border: none;
}

.btn-primary:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-cyan);
}

.btn-full {
  width: 100%;
}

/*-----------------------------------*\
  #GLASS CARD - iOS 26 Glassmorphism
\*-----------------------------------*/

.glass-card {
  position: relative;
  border-radius: var(--radius-xl);
  z-index: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  background: var(--border-gradient-onyx);
  /* Outer element acts as border */
}

/* 
 * Inner Card Background
 * Sits ON TOP of the border background (stacking context order), 
 * covering it except for 1px inset
 */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

/* Remove old ::after */
.glass-card::after {
  content: none;
}

/* Hover: transform and glow */
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 40px rgba(0, 217, 255, 0.25),
    0 0 80px rgba(0, 255, 136, 0.15);
  /* Change border color on hover */
  background: linear-gradient(135deg,
      var(--accent-primary) 0%,
      var(--accent-secondary) 50%,
      var(--accent-primary) 100%);
}

/*-----------------------------------*\
  #SECTION STYLES
\*-----------------------------------*/

.orbit-section {
  padding: var(--section-padding) var(--container-padding);
  position: relative;
}

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

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

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*-----------------------------------*\
  #ABOUT SECTION
\*-----------------------------------*/

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

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.about-content {
  padding: 40px;
}

.about-text {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-info {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.info-item ion-icon {
  font-size: 24px;
  color: var(--accent-primary);
}

.info-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.info-item a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.info-item a:hover {
  color: var(--accent-primary);
}

/* Skills Orbit */
.skills-orbit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-card {
  padding: 30px 20px;
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: var(--delay);
  opacity: 0;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  font-size: 28px;
  color: var(--bg-primary);
}

.skill-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.skill-level {
  font-size: var(--fs-xs);
  color: var(--accent-primary);
}

/*-----------------------------------*\
  #SERVICES SECTION
\*-----------------------------------*/

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

.service-card {
  padding: 40px 30px;
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: var(--delay);
  opacity: 0;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: var(--glow-cyan);
}

.service-icon img {
  filter: brightness(0) invert(1);
  transition: filter var(--transition-normal);
}

.service-card:hover .service-icon img {
  filter: brightness(0);
}

.service-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.service-desc {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 12px;
}

/*-----------------------------------*\
  #PORTFOLIO SECTION
\*-----------------------------------*/

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--bg-primary);
  background: var(--accent-gradient);
  border-color: transparent;
}

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

.portfolio-item {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: var(--delay);
  opacity: 0;
  overflow: hidden;
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16/12;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 217, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-overlay ion-icon {
  font-size: 40px;
  color: var(--bg-primary);
  transform: scale(0.5);
  transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-overlay ion-icon {
  transform: scale(1);
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.portfolio-info span {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/*-----------------------------------*\
  #TESTIMONIALS SECTION
\*-----------------------------------*/

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.testimonial-card {
  padding: 40px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
  position: relative;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.testimonial-author span {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.quote-icon {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 40px;
  color: var(--accent-primary);
  opacity: 0.3;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.8;
  font-style: italic;
}

/*-----------------------------------*\
  #CONTACT SECTION
\*-----------------------------------*/

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

@media (min-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info {
  padding: 40px;
}

/* Contact Cards Mobile Responsive */
@media (max-width: 768px) {
  .contact-info {
    padding: 24px;
  }

  .contact-info h3 {
    font-size: var(--fs-h3);
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .contact-form {
    padding: 24px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }
}

@media (max-width: 480px) {

  .contact-info,
  .contact-form {
    padding: 20px;
  }

  .contact-details {
    gap: 16px;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

.contact-info h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.contact-info>p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

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

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

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  font-size: 22px;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.contact-item span:first-child {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.contact-item a,
.contact-item address {
  color: var(--text-primary);
  font-size: var(--fs-body);
}

.contact-item a:hover {
  color: var(--accent-primary);
}

/* Contact Form */
.contact-form {
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-body);
  font-family: var(--ff-primary);
  transition: all var(--transition-fast);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(0, 217, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

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

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  padding: 40px var(--container-padding);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer p {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all var(--transition-normal);
}

.footer-social a:hover {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

/* Footer Mobile */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

/*-----------------------------------*\
  #SCROLL REVEAL ANIMATIONS
\*-----------------------------------*/

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/*-----------------------------------*\
  #BENTO BOX GRID - PREMIUM SKILLS
\*-----------------------------------*/

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  grid-template-areas:
    "featured featured languages frameworks"
    "featured featured database devops"
    "seo seo contact contact";
}

/* Card Base */
.bento-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
}

/* Featured Card - Large */
.bento-featured {
  grid-area: featured;
  padding: 40px;
}

.bento-featured .bento-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.15) 0%, transparent 50%);
  animation: bentoGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bentoGlow {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(10%, 10%);
  }
}

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

.bento-icon-large {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--glow-cyan);
}

.bento-icon-large ion-icon {
  font-size: 32px;
  color: var(--bg-primary);
}

.bento-featured h3 {
  font-size: var(--fs-h2);
  font-family: var(--ff-display);
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bento-featured p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.bento-stats {
  display: flex;
  gap: 40px;
}

.bento-stat {
  display: flex;
  flex-direction: column;
}

.bento-stat .stat-number {
  font-size: var(--fs-h1);
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--text-primary);
}

.bento-stat .stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Sizes */
.bento-medium {
  grid-area: languages;
}

.bento-wide {
  grid-area: frameworks;
}

.bento-small:first-of-type {
  grid-area: database;
}

.bento-small:last-of-type {
  grid-area: devops;
}

.bento-accent {
  grid-area: seo;
}

.bento-info {
  grid-area: contact;
}

/* Bento Header */
.bento-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.bento-header ion-icon {
  font-size: 22px;
  color: var(--accent-primary);
}

.bento-header span {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

/* Bento Pills */
.bento-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bento-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.bento-pill:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: rgba(0, 217, 255, 0.3);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.bento-pill.accent {
  background: rgba(0, 217, 255, 0.15);
  border-color: rgba(0, 217, 255, 0.3);
  color: var(--accent-primary);
}

.bento-pill.glow {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 255, 136, 0.15) 100%);
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--accent-secondary);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* SEO Accent Card - Border only hover */
.bento-accent {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.03) 0%, rgba(0, 217, 255, 0.03) 100%);
}

.bento-accent::before {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 217, 255, 0.03) 100%);
}

.bento-accent:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.03) 0%, rgba(0, 217, 255, 0.03) 100%);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 255, 136, 0.15);
}

/*-----------------------------------*\
  #ACTIVITIES COMPACT BADGES
\*-----------------------------------*/

.activities-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.activities-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.activity-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  transition: all 0.3s ease;
}

.activity-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--border-accent), var(--shadow-sm);
}

.activity-badge ion-icon {
  font-size: 24px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.activity-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-name {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.activity-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.bento-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Contact Info Card */
.bento-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

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

.bento-contact-item ion-icon {
  font-size: 24px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.bento-contact-item .label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.bento-contact-item a,
.bento-contact-item span:not(.label) {
  font-size: var(--fs-small);
  color: var(--text-primary);
  font-weight: 500;
}

.bento-contact-item a {
  transition: color 0.3s ease;
}

.bento-contact-item a:hover {
  color: var(--accent-primary);
}

/*-----------------------------------*\
  #CERTIFICATIONS HORIZONTAL GRID
\*-----------------------------------*/

.certs-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

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

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.cert-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.cert-icon ion-icon {
  font-size: 22px;
  color: var(--bg-primary);
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-info h4 {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.cert-issuer {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.cert-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

@media (max-width: 1024px) {

  /* Bento Grid - Tablet */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "featured featured"
      "languages frameworks"
      "database devops"
      "seo seo"
      "contact contact";
  }
}

@media (max-width: 768px) {
  .profile-hub {
    padding: 40px 25px;
  }

  .profile-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .profile-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  /* Bento Grid - Mobile */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "featured"
      "languages"
      "frameworks"
      "database"
      "devops"
      "seo"
      "contact";
  }

  .bento-featured {
    padding: 28px;
  }

  .bento-stats {
    gap: 24px;
  }

  /* Certifications Grid Responsive */
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Activities Responsive */
  .activities-badges {
    grid-template-columns: 1fr;
  }

  /* About Grid Responsive */
  .about-grid {
    grid-template-columns: 1fr;
  }
}

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

  .skills-orbit {
    grid-template-columns: 1fr;
  }

  .bento-card {
    padding: 20px;
  }

  .bento-pill {
    padding: 6px 12px;
    font-size: var(--fs-xs);
  }

  .portfolio-masonry {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }
}

/*-----------------------------------*\
  #BACK TO TOP BUTTON
\*-----------------------------------*/

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;

  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 15, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: 50%;

  color: var(--accent-primary);
  font-size: 22px;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}