/*===========================================
  TABLE OF CONTENTS
=============================================
  1. VARIABLES & IMPORTS
  2. BASE STYLES & UTILITIES
  3. LAYOUT & CONTAINERS
  4. HEADER & NAVIGATION
  5. SECTION: HOME / HERO
  6. SECTION: ABOUT
  7. SECTION: SKILLS
  8. SECTION: PROJECTS & CARDS
  9. SECTION: CONTACT
  10. MODAL & GALLERY
  11. FOOTER
  12. ANIMATIONS
  13. RESPONSIVE STYLES
=============================================*/

/*===========================================
  1. VARIABLES & IMPORTS
=============================================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color System */
  --primary-color: #2198e9;
  --primary-light: #6cb9ff;
  --primary-dark: #2878b3;
  --secondary-color: #d9d9dd;
  --secondary-hover: #b6b6b9;

  /* Background Colors */
  --body-bg: #f5f5f7;
  --card-bg: #ffffff;
  --card-bg-alt: #f5f5f7;

  /* Text Colors */
  --text-dark: #1d1d1f;
  --text-light: #515154;
  --text-muted: #86868b;

  /* Status Colors */
  --success-color: #34c759;
  --warning-color: #ff9500;
  --error-color: #ff3b30;

  /* Design System */
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --animation-duration: 0.8s;
  --animation-delay-base: 0.2s;

  /* Border Radius */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);

  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 60px;

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: 24px;
}

/*===========================================
  2. BASE STYLES & UTILITIES
=============================================*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  background-color: var(--body-bg);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

/* Utility Classes */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hide {
  display: none !important;
}

/*===========================================
  3. LAYOUT & CONTAINERS
=============================================*/
section {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.container {
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 30%;
  right: 30%;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/*===========================================
  4. HEADER & NAVIGATION
=============================================*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  padding: var(--space-sm) var(--space-md);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.site-header.scrolled {
  padding: 12px var(--space-md);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-lg);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.site-header.scrolled .logo {
  font-size: 1.3rem;
  padding: 6px var(--space-sm);
}

.logo:hover {
  background-color: rgba(0, 113, 227, 0.08);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-link {
  display: flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius-lg);
  color: var(--text-dark);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.site-header.scrolled .nav-link {
  padding: 8px var(--space-sm);
  font-size: 0.96rem;
}

.nav-link:hover {
  background-color: rgba(0, 113, 227, 0.08);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: #fff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
  z-index: 110;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.site-header.scrolled .mobile-menu-toggle {
  width: 36px;
  height: 36px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.site-header.scrolled .hamburger,
.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after {
  width: 20px;
}

.hamburger {
  top: 15px;
  left: 4px;
}

.hamburger::before {
  top: -8px;
  left: 0;
}

.hamburger::after {
  top: 8px;
  left: 0;
}

.mobile-menu-open .hamburger {
  background-color: transparent;
}

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

.mobile-menu-open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/*===========================================
  5. SECTION: HOME / HERO
=============================================*/
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 247, 0.95) 100%);
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1.2" fill="%230071e3" opacity="0.07"/></svg>');
  background-size: 30px 30px;
  z-index: -1;
}

/* Hero Content */
.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: fadeInUp var(--animation-duration) calc(var(--animation-delay-base)) ease-out forwards;
  opacity: 0;
}

.hero-title .highlight {
  display: block;
  font-size: 4.2rem;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profession-wrapper {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 25px 0 30px;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  animation: fadeInUp var(--animation-duration) calc(var(--animation-delay-base) * 2) ease-out forwards;
  opacity: 0;
}

.profession-prefix {
  color: var(--text-light);
  margin-right: 6px;
}

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

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  margin-left: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
  position: relative;
  top: 3px;
  animation: blink 1s infinite;
}

.hero-description {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 50px;
  color: var(--text-light);
  line-height: 1.7;
  animation: fadeInUp var(--animation-duration) calc(var(--animation-delay-base) * 3) ease-out forwards;
  opacity: 0;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  animation: fadeInUp var(--animation-duration) calc(var(--animation-delay-base) * 4) ease-out forwards;
  opacity: 0;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--border-radius-xl);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
  min-width: 180px;
}

.hero-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}


.hero-button:hover {
  transform: translateY(-5px);
}

.hero-button:active {
  transform: translateY(-2px);
}

.hero-button.primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow);
}

.hero-button.primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.hero-button.secondary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.hero-button.secondary:hover {
  background-color: var(--secondary-hover);
  box-shadow: var(--shadow-lg);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn var(--animation-duration) calc(var(--animation-delay-base) * 5) forwards;
  opacity: 0;
}

.mouse {
  width: 26px;
  height: 46px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

.arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  margin: -5px;
  animation: arrowFade 2s infinite;
}

.arrow:nth-child(2) {
  animation-delay: 0.2s;
}

.arrow:nth-child(3) {
  animation-delay: 0.4s;
}

/*===========================================
  6. SECTION: ABOUT
=============================================*/
.about-container {
  display: flex;
  gap: var(--space-lg);
}

/* About Image */
.about-image-container {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-image {
  width: 280px;
  height: 280px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Social Media Links */
.about-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-dark);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: 50%;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-icon:hover::before {
  opacity: 1;
  transform: scale(1);
}

.social-icon:active {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.social-icon i {
  position: relative;
  z-index: 1;
}

.github-icon:hover::before {
  background-color: #171515;
}

.linkedin-icon:hover::before {
  background-color: #0077B5;
}

.twitter-icon:hover::before {
  background-color: #000000;
}

.instagram-icon:hover::before {
  background: linear-gradient(45deg, #833AB4, #FD1D1D, #F77737);
}

/* About Content */
.about-content {
  flex: 1;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

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

.resume-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: var(--border-radius-xl);
  font-weight: 500;
  text-decoration: none;
  margin-top: var(--space-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.resume-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.resume-button:active {
  transform: translateY(-1px);
}

/*===========================================
  7. SECTION: SKILLS
=============================================*/
.skills-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.skills-category {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.skills-category:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Skills Header */
.skills-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.skills-category-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
}

.skills-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--space-md);
}

.skill-item {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: white;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.skill-item i {
  font-size: 2.2rem;
  transition: var(--transition);
}

.skill-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 113, 227, 0.2);
  z-index: 10;
}

.skill-item:hover i {
  transform: scale(1.15);
}

/* Tooltip */
.skill-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-dark);
  color: white;
  padding: 4px 10px;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
}

.skill-item:hover::after {
  opacity: 1;
  visibility: visible;
}

/*===========================================
  8. SECTION: PROJECTS & CARDS
=============================================*/
/* Filter Buttons */
.card-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
}

.filter-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* Card Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 38px;
  margin-bottom: var(--space-xl);
}

/* Card Item */
.card-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  opacity: 1;
  position: relative;
}

.card-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

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

.card-item.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Card Image */
.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.card-item:hover .card-image img {
  transform: scale(1.05);
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.3),
      transparent);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card-item:hover .card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.card-links {
  display: flex;
  gap: 18px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card-item:hover .card-links {
  transform: translateY(0);
}

.card-link-item {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: var(--shadow);
  position: relative;
}

.card-link-item::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: 50%;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 0;
}

.card-link-item:hover {
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-link-item:hover::before {
  opacity: 1;
  transform: scale(1);
}

.card-link-item:active {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.card-link-item i {
  position: relative;
  z-index: 1;
}

.card-link-item.github-icon:hover::before {
  background-color: #171515;
}

.card-link-item.play-icon:hover::before {
  background-color: var(--primary-color);
}

/* Card Info */
.card-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
  padding: 0 2px;
}

.card-tags {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 500;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background-color: rgba(0, 113, 227, 0.1);
  border-radius: var(--border-radius);
  padding: 4px 2px;
  max-width: 100%;
  align-self: flex-start;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.6;
  flex-grow: 1;
  padding: 0 2px;
}

.view-details-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.view-details-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Empty Category */
.empty-category {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.empty-category:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.empty-category i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.empty-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.empty-category p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive Styles */
@media (hover: none) and (pointer: coarse) {
  .card-item:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .card-item:hover .card-image img {
    transform: none;
  }

  .card-overlay {
    display: none;
  }

  .card-item:hover .card-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .card-item:hover .card-links {
    transform: translateY(0);
  }

  .card-item:active {
    box-shadow: var(--shadow-sm);
  }

  .view-details-btn:active {
    box-shadow: var(--shadow-sm);
  }

  .empty-category:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-lg);
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  padding: 0 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.page-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.page-btn:hover:not(.active):not(:disabled) {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-dots {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  padding: 0 8px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-dark);
}

/*===========================================
  9. SECTION: CONTACT
=============================================*/
#contact {
  padding-bottom: 120px;
}

.contact-info-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-description {
  grid-column: 1 / -1;
  text-align: center;
}

.contact-description p {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.contact-item {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.contact-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.contact-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.1);
}

.contact-item:hover::before {
  opacity: 1;
}

.contact-item i {
  font-size: 2rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(66, 165, 245, 0.1) 100%);
  color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 113, 227, 0.1);
}

.contact-item:hover i {
  transform: translateY(-5px) rotate(-5deg);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: 0 10px 20px rgba(0, 113, 227, 0.2);
}

.contact-text {
  flex: 1;
}

.contact-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.contact-item:hover .contact-text h3 {
  color: var(--primary-color);
}

.contact-text p,
.contact-text a {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-text a {
  position: relative;
  overflow: hidden;
}

.contact-text a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.contact-text a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.contact-text a:hover::after {
  transform: translateX(0);
}

/*===========================================
  10. MODAL & GALLERY
=============================================*/
.modal-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  animation: fadeIn 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.modal {
  width: min(700px, 95%);
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
  animation: pop 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  max-height: 95vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 113, 227, 0.3) transparent;
  -ms-overflow-style: none;
}

.modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(0, 113, 227, 0.3);
  border-radius: 10px;
}

/* Interactive Controls */
.interactive-control {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
  -webkit-tap-highlight-color: transparent;
  opacity: 0.8;
}

.interactive-control:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

.interactive-control:active {
  transform: scale(0.95);
}

.circular-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
}

.circular-button i {
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  line-height: 0;
  transform: translateY(0.5px);
}

.modal-close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 120;
  width: 36px;
  height: 36px;
}

/* Gallery */
.modal-gallery {
  position: relative;
  margin-bottom: var(--space-md);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  line-height: 0;
  background-color: #000;
}

.modal-img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: auto;
}

.modal-img:active {
  cursor: grabbing;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}


.gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav.prev {
  left: 14px;
}

.gallery-nav.next {
  right: 14px;
}

/* Mobile fix for sticky hover states */
@media (hover: none) and (pointer: coarse) {
  .interactive-control:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    opacity: 0.8;
  }

  .interactive-control:active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transform: scale(0.95);
  }

  .gallery-nav:hover {
    opacity: 0.7;
  }

  .gallery-nav:active {
    opacity: 1;
    transform: translateY(-50%) scale(0.95);
  }
}

/* Thumbnails */
.modal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 113, 227, 0.3) transparent;
  -ms-overflow-style: none;
  margin-bottom: var(--space-sm);
}

.modal-thumbs::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}

.modal-thumbs::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 113, 227, 0.3);
  border-radius: 10px;
}

.modal-thumb {
  width: 64px;
  min-width: 64px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  opacity: 0.65;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  transform-origin: center center;
  position: relative;
  margin: 2px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: auto;
}

.modal-thumb:hover {
  opacity: 0.85;
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.modal-thumb.active {
  opacity: 1;
  transform: scale(1.06);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-color);
  z-index: 1;
}

/* Modal Content */
.modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.modal-tags {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  opacity: 0.85;
  background-color: rgba(0, 113, 227, 0.1);
  padding: 4px 8px;
  border-radius: var(--border-radius);
  display: inline-block;
}

.modal-description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 88%;
  margin: 0 auto 0;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: var(--space-sm);
}

.modal-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-lg);
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.modal-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.modal-btn:active {
  transform: translateY(-1px);
}

/*===========================================
  11. FOOTER
=============================================*/
.site-footer {
  background: linear-gradient(to bottom, #1a1f2e, #232939);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #e5e5e5;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1.2" fill="%230071e3" opacity="0.08"/></svg>');
  background-size: 30px 30px;
  z-index: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  margin-bottom: 12px;
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background-color: rgba(0, 113, 227, 0.15);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
}

.footer-logo:hover {
  transform: translateY(-3px);
  background-color: rgba(0, 113, 227, 0.25);
}

.footer-tagline {
  font-size: 1.1rem;
  color: #b8b8c0;
  line-height: 1.6;
  max-width: 80%;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 1rem;
  color: #b8b8c0;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  padding-bottom: 4px;
}

.footer-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.footer-social .social-icon {
  background-color: rgba(255, 255, 255, 0.08);
  color: #b8b8c0;
}

.footer-social .social-icon:hover {
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

/*===========================================
  12. ANIMATIONS
=============================================*/
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}

@keyframes arrowFade {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.85) translateY(40px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Reveal Section Animation */
.reveal-section {
  opacity: 0;
  transform: translateY(100px);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section.reveal-transition {
  transition: opacity 1.5s cubic-bezier(0.215, 0.610, 0.355, 1),
    transform 1.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

/*===========================================
  13. RESPONSIVE STYLES
=============================================*/
@media (max-width: 1728px) {
  .modal {
    width: 600px;
    padding: 16px;
  }

  .modal-close {
    top: 3px;
    right: 3px;
  }

  .modal-gallery {
    margin-bottom: 20px;
  }

  .modal-img {
    height: 340px;
  }

  .modal-thumbs {
    margin-bottom: 12px;
  }

  .modal-thumb {
    width: 56px;
    height: 35px;
    min-width: 56px;
  }

  .modal-title {
    font-size: 1.6rem;
  }

  .modal-tags {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .modal-description {
    font-size: 0.95rem;
    max-width: 90%;
  }

  .modal-buttons {
    gap: 12px;
    margin-top: 12px;
  }

  .modal-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }

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

  .hero-title .highlight {
    font-size: 3.7rem;
  }

  .profession-wrapper {
    font-size: 1.3rem;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .about-image-container {
    margin-bottom: var(--space-md);
  }

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

  .resume-button {
    margin: var(--space-lg) auto 0;
  }

  .skills-showcase {
    gap: 20px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: span 2;
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    padding: 90px var(--space-md) var(--space-md);
    flex-direction: column;
    gap: var(--space-md);
    background-color: var(--card-bg);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
  }

  .nav-link {
    display: block;
    font-size: 1.1rem;
    padding: 12px var(--space-sm);
  }

  .site-header.scrolled .nav-link {
    padding: 10px var(--space-sm);
    font-size: 1.05rem;
  }

  .mobile-menu-open .nav-links {
    transform: translateX(0);
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
  }

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

  .hero-title .highlight {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.1rem;
    padding: 0 var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-button {
    width: 100%;
    max-width: 280px;
  }

  .profession-wrapper {
    font-size: 1.2rem;
  }

  .skills-grid {
    gap: 15px;
  }

  .empty-category {
    padding: var(--space-lg);
  }

  .empty-category i {
    font-size: 3rem;
  }

  .empty-category h3 {
    font-size: 1.3rem;
  }

  .contact-info-container {
    grid-template-columns: 1fr;
  }

  .contact-description,
  .contact-item {
    padding: 30px;
  }

  .contact-item i {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .site-footer {
    padding: var(--space-xl) 0 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-heading {
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-nav,
  .footer-connect {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links li {
    margin-bottom: 15px;
  }

  .footer-links a:hover {
    transform: translateY(-3px);
  }

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

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
  }

  .modal {
    width: 400px;
    max-height: 80vh;
  }

  .circular-button {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }

  .circular-button i {
    font-size: 0.8rem;
  }

  .modal-close {
    width: 30px;
    height: 30px;
    top: 4px;
    right: 4px;
  }

  .modal-gallery {
    margin-bottom: 16px;
  }

  .modal-img {
    height: 210px;
  }

  .modal-thumbs {
    margin-bottom: 8px;
  }

  .modal-thumb {
    width: 50px;
    height: 35px;
    min-width: 50px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-tags {
    font-size: 0.65rem;
    margin-bottom: 8px;
  }

  .modal-description {
    font-size: 0.8rem;
    max-width: 92%;
  }

  .modal-buttons {
    gap: 10px;
    margin-top: 8px;
  }

  .modal-btn {
    padding: 8px 20px;
    font-size: 0.65rem;
  }

  .card-info {
    padding: var(--space-md);
  }

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

  .hero-title .highlight {
    font-size: 2.4rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .profession-wrapper {
    font-size: 1.1rem;
    flex-wrap: wrap;
  }

  .scroll-indicator {
    bottom: 30px;
  }

  .about-image {
    width: 220px;
    height: 220px;
  }

  .about-text p {
    font-size: 1rem;
  }

  .skills-grid {
    gap: 12px;
  }

  .skill-item::after {
    bottom: -24px;
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .contact-description,
  .contact-item {
    padding: 25px;
  }

  .contact-description p,
  .contact-text p,
  .contact-text a {
    font-size: 1rem;
  }

  .contact-text h3 {
    font-size: 1.2rem;
  }

  .contact-item i {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border-radius: 15px;
  }

  .footer-tagline {
    font-size: 1rem;
  }

  .footer-links a {
    font-size: 0.95rem;
  }

  .footer-social .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .copyright {
    font-size: 0.9rem;
  }
}