/*
====================================================================================================
MOHAMMAD ABOWARDA PORTFOLIO - PREMIUM CSS ARCHITECTURE
====================================================================================================
Author: Mohammad Abowarda (Senior Developer Approach)
Description: Modern, responsive, and accessible portfolio website
Architecture: Mobile-first, BEM methodology, CSS Custom Properties
Performance: Optimized for Core Web Vitals and lighthouse scores
====================================================================================================
*/

/* 
====================================================================================================
CSS CUSTOM PROPERTIES (CSS VARIABLES)
====================================================================================================
*/
:root {
  /* =========================== PRIMARY COLORS =========================== */
  --primary-color: #10b981;          /* Green for Smart Homes */
  --primary-color-alt: #059669;      /* Darker green variant */
  --secondary-color: #3b82f6;        /* Blue for Electrical Engineering */
  --accent-color: #1d4ed8;           /* Darker blue accent */
  
  /* =========================== NEUTRAL COLORS =========================== */
  --white-color: #ffffff;
  --black-color: #000000;
  
  /* =========================== LIGHT THEME COLORS =========================== */
  --bg-color: #fafafa;
  --bg-color-alt: #f3f4f6;
  --surface-color: #ffffff;
  --text-color: #1f2937;
  --text-color-light: #6b7280;
  --border-color: #e5e7eb;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-heavy: rgba(0, 0, 0, 0.25);
  
  /* =========================== DARK THEME COLORS =========================== */
  --dark-bg-color: #0f172a;
  --dark-bg-color-alt: #1e293b;
  --dark-surface-color: #334155;
  --dark-text-color: #f1f5f9;
  --dark-text-color-light: #cbd5e1;
  --dark-border-color: #475569;
  --dark-shadow-light: rgba(0, 0, 0, 0.3);
  --dark-shadow-medium: rgba(0, 0, 0, 0.4);
  --dark-shadow-heavy: rgba(0, 0, 0, 0.6);
  
  /* =========================== TYPOGRAPHY =========================== */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
  
  /* Font Sizes - Fluid Typography */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --font-size-3xl: clamp(2rem, 1.75rem + 1.25vw, 3rem);
  --font-size-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* =========================== SPACING =========================== */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-base: 1rem;     /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  --spacing-4xl: 6rem;      /* 96px */
  --spacing-5xl: 8rem;      /* 128px */
  
  /* =========================== LAYOUT DIMENSIONS =========================== */
  --header-height: 4rem;
  --container-max-width: 1200px;
  --content-max-width: 768px;
  
  /* =========================== BORDER RADIUS =========================== */
  --radius-sm: 0.375rem;    /* 6px */
  --radius-base: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;     /* 12px */
  --radius-xl: 1rem;        /* 16px */
  --radius-2xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;    /* Full rounded */
  
  /* =========================== TRANSITIONS =========================== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* =========================== Z-INDEX LAYERS =========================== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  
  /* =========================== ANIMATION TIMING =========================== */
  --animation-duration-fast: 0.2s;
  --animation-duration-base: 0.3s;
  --animation-duration-slow: 0.5s;
  
  /* =========================== BREAKPOINTS (for reference) =========================== */
  /* Note: These are used in media queries, not as CSS variables */
  /* --breakpoint-sm: 640px; */
  /* --breakpoint-md: 768px; */
  /* --breakpoint-lg: 1024px; */
  /* --breakpoint-xl: 1280px; */
  /* --breakpoint-2xl: 1536px; */
}

/* 
====================================================================================================
DARK THEME OVERRIDES
====================================================================================================
*/
[data-theme="dark"],
.dark-theme {
  --bg-color: var(--dark-bg-color);
  --bg-color-alt: var(--dark-bg-color-alt);
  --surface-color: var(--dark-surface-color);
  --text-color: var(--dark-text-color);
  --text-color-light: var(--dark-text-color-light);
  --border-color: var(--dark-border-color);
  --shadow-light: var(--dark-shadow-light);
  --shadow-medium: var(--dark-shadow-medium);
  --shadow-heavy: var(--dark-shadow-heavy);
}

/* 
====================================================================================================
RESET AND BASE STYLES
====================================================================================================
*/

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal scroll on mobile */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: var(--line-height-normal);
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Remove default styling from buttons */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Remove default styling from links */
a {
  color: inherit;
  text-decoration: none;
}

/* Make images responsive */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Improve text rendering */
body {
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 
====================================================================================================
GLOBAL STYLES
====================================================================================================
*/

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

/* General paragraph and text justification */
p {
  text-align: justify;
  text-justify: inter-word;
}

/* 
====================================================================================================
UTILITY CLASSES
====================================================================================================
*/

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-base);
  padding-right: var(--spacing-base);
  /* Prevent horizontal overflow */
  box-sizing: border-box;
}

@media (max-width: 479px) {
  .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    /* Ensure container never exceeds viewport */
    max-width: calc(100vw - calc(var(--spacing-sm) * 2));
  }
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
}

/* Grid Layout */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

/* Section Spacing */
.section {
  padding-top: var(--spacing-4xl);
  padding-bottom: var(--spacing-4xl);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--spacing-5xl);
    padding-bottom: var(--spacing-5xl);
  }
}

/* Section Titles */
.section__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: var(--spacing-base);
  position: relative;
}

.section__subtitle {
  display: block;
  font-size: var(--font-size-lg);
  color: var(--text-color-light);
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

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

/* 
====================================================================================================
LOADING SCREEN
====================================================================================================
*/

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__content {
  text-align: center;
  color: var(--white-color);
}

.loader__spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--white-color);
  border-radius: var(--radius-full);
  margin: 0 auto var(--spacing-base);
  animation: loaderSpin 1s linear infinite;
}

.loader__text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 
====================================================================================================
HEADER & NAVIGATION - ENHANCED DESIGN
====================================================================================================
*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 8px 32px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
  /* Enhanced glass effect */
  background-image: 
    linear-gradient(135deg, 
      rgba(16, 185, 129, 0.05) 0%, 
      rgba(59, 130, 246, 0.05) 100%);
}

.dark-theme .header {
  background: rgba(15, 23, 42, 0.10);
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background-image: 
    linear-gradient(135deg, 
      rgba(59, 130, 246, 0.08) 0%, 
      rgba(16, 185, 129, 0.05) 100%);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nav__logo {
  display: flex;
  align-items: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  text-decoration: none;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav__logo:hover {
  transform: scale(1.05);
}

.nav__logo-text {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5px;
  box-shadow: 
    0 4px 15px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.dark-theme .nav__logo-text {
  box-shadow: 
    0 4px 15px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 
====================================================================================================
ENHANCED MOBILE & TABLET NAVIGATION
====================================================================================================
*/

/* Mobile Navigation Menu */
.nav__menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(249, 250, 251, 0.98) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.dark-theme .nav__menu {
  background: linear-gradient(135deg, 
    rgba(17, 24, 39, 0.95) 0%, 
    rgba(31, 41, 55, 0.98) 100%);
}

.nav__menu.show-menu {
  left: 0;
}

/* Mobile Menu Header */
.nav__menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.dark-theme .nav__menu-header {
  background: rgba(0, 0, 0, 0.1);
}

.nav__menu-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
}

.nav__menu-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav__menu-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
}

/* Navigation List */
.nav__list {
  flex: 1;
  padding: var(--spacing-2xl) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: none;
  margin: 0;
  justify-content: flex-start;
}

/* Enhanced Navigation Links */
.nav__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
  padding: var(--spacing-lg) var(--spacing-xl);
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: var(--radius-xl);
  margin: 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .nav__link {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.nav__link:hover::before,
.nav__link.active-link::before {
  left: 0;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--white-color);
  transform: translateX(var(--spacing-sm));
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
  border-color: transparent;
}

.nav__icon {
  font-size: var(--font-size-xl);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav__link:hover .nav__icon {
  transform: scale(1.15) rotate(5deg);
}

.nav__link span {
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
}

/* Enhanced Close Button */
.nav__close {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--text-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .nav__close {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__close:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: scale(1.05) rotate(90deg);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Mobile Menu Footer */
.nav__menu-footer {
  padding: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  text-align: center;
}

.dark-theme .nav__menu-footer {
  background: rgba(0, 0, 0, 0.1);
}

.nav__social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-base);
  margin-bottom: var(--spacing-base);
}

.nav__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface-color);
  color: var(--text-color-light);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__social-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.nav__social-link.linkedin:hover {
  background: #0077b5;
  color: white;
}

.nav__social-link:nth-child(2):hover {
  background: #333;
  color: white;
}

.nav__social-link:nth-child(3):hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
  color: white;
}

.nav__menu-subtitle {
  color: var(--text-color-light);
  font-size: var(--font-size-sm);
  margin: 0;
  opacity: 0.8;
}

/* Enhanced Hamburger Menu */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 4px;
}

.dark-theme .nav__toggle {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__toggle:hover {
  background: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav__toggle-line {
  width: 20px;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.nav__toggle:hover .nav__toggle-line {
  background: var(--white-color);
}

/* Hamburger Animation */
.nav__toggle.active .nav__toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Navigation Item Animations */
@keyframes navItemSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-item-animate {
  animation: navItemSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Mobile Menu Overlay Animation */
@keyframes menuOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav__menu.show-menu {
  animation: menuOverlayFadeIn 0.3s ease-out;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.theme-toggle {
  padding: var(--spacing-base);
  border-radius: var(--radius-full);
  color: var(--text-color);
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.dark-theme .theme-toggle {
  background: rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .theme-toggle:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.theme-toggle__icon {
  font-size: var(--font-size-lg);
  transition: transform var(--transition-fast);
}

.theme-toggle:hover .theme-toggle__icon {
  transform: rotate(180deg);
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-base);
  font-size: var(--font-size-xl);
  color: var(--text-color);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav__toggle:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.dark-theme .nav__toggle {
  background: rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .nav__toggle:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Desktop Navigation - Enhanced Compact Design */
@media (min-width: 768px) {
  .nav {
    padding: 0 var(--spacing-base);
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    margin-left: auto;
    margin-right: var(--spacing-base);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav__list {
    flex-direction: row;
    gap: var(--spacing-xs);
    padding: 0;
    max-width: none;
    align-items: center;
    flex-wrap: nowrap;
  }

  .nav__link {
    padding: var(--spacing-sm) var(--spacing-base);
    margin: 0;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
  }

  .nav__link span {
    display: inline-block;
  }

  .nav__icon {
    font-size: var(--font-size-base);
  }

  .nav__link:hover,
  .nav__link.active-link {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
  }

  .nav__close,
  .nav__toggle {
    display: none;
  }

  /* Enhanced navigation active indicator */
  .nav__link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-base);
    transition: all var(--transition-base);
    transform: translateX(-50%);
  }

  .nav__link:hover::after,
  .nav__link.active-link::after {
    width: 80%;
  }

  .nav__actions {
    gap: var(--spacing-sm);
  }

  .theme-toggle {
    padding: var(--spacing-sm);
  }
}

/* Compact navigation for smaller desktop screens */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav__link {
    padding: var(--spacing-sm) var(--spacing-sm);
    font-size: var(--font-size-xs);
  }
  
  .nav__link span {
    display: none;
  }
  
  .nav__icon {
    font-size: var(--font-size-lg);
  }
  
  .nav__list {
    gap: var(--spacing-sm);
  }
}

/* Ensure no horizontal overflow on navigation */
@media (max-width: 767px) {
  .nav {
    padding: 0 var(--spacing-sm);
  }
  
  .nav__logo-text {
    padding: var(--spacing-xs) var(--spacing-base);
    font-size: var(--font-size-base);
  }
  
  .nav__actions {
    gap: var(--spacing-xs);
  }
  
  .theme-toggle,
  .nav__toggle {
    padding: var(--spacing-sm);
  }
}

/* Enhanced glass navigation links */
@media (min-width: 768px) {
  .nav__link {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .dark-theme .nav__link {
    background: rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .nav__link:hover,
  .nav__link.active-link {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 6px 20px rgba(16, 185, 129, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  .dark-theme .nav__link:hover,
  .dark-theme .nav__link.active-link {
    background: rgba(15, 23, 42, 0.2);
    box-shadow: 
      0 6px 20px rgba(59, 130, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

/* Full navigation for larger screens */
@media (min-width: 1025px) {
  .nav__list {
    gap: var(--spacing-base);
  }
  
  .nav__link {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
  
  .nav__link span {
    display: inline-block;
  }
}

/* 
====================================================================================================
BUTTONS
====================================================================================================
*/

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-base) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-base);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-base);
}

.btn:hover::before {
  left: 100%;
}

.btn__icon {
  font-size: var(--font-size-lg);
}

/* Primary Button */
.btn--primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: var(--white-color);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Outline Button */
.btn--outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn--outline:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
}

/* Ghost Button */
.btn--ghost {
  background: transparent;
  color: var(--text-color);
  border-color: var(--border-color);
}

.btn--ghost:hover {
  background: var(--border-color);
  border-color: var(--primary-color);
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-alt) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%236366f1" stop-opacity="0.1"/><stop offset="100%" stop-color="%236366f1" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="400" r="200" fill="url(%23a)"/><circle cx="400" cy="800" r="100" fill="url(%23a)"/></svg>');
  background-size: 100% 100%;
  opacity: 0.5;
  pointer-events: none;
}

.hero__container {
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  text-align: center;
  order: 2;
}

.hero__social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-base);
  margin-bottom: var(--spacing-xl);
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--surface-color);
  color: var(--text-color-light);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xl);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px var(--shadow-light);
}

.hero__social-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.hero__data {
  margin-bottom: var(--spacing-xl);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.hero__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-base);
}

.hero__title-color {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__profession {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-snug);
}

.hero__description {
  font-size: var(--font-size-lg);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  align-items: center;
}

.hero__image {
  position: relative;
  order: 1;
  display: flex;
  justify-content: center;
}

.hero__image-bg {
  position: relative;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  border-radius: 50%;
  padding: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--surface-color);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.hero__orb-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.hero__orb-2 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 10%;
  animation-delay: 3s;
}

.hero__scroll {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-color-light);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.hero__scroll-link:hover {
  color: var(--primary-color);
}

.hero__scroll-mouse {
  font-size: var(--font-size-xl);
  animation: bounce 2s infinite;
}

.hero__scroll-name {
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__scroll-arrow {
  font-size: var(--font-size-base);
  animation: bounce 2s infinite 0.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Desktop Hero Layout */
@media (min-width: 768px) {
  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
  }

  .hero__content {
    text-align: left;
    order: 1;
  }

  .hero__social {
    justify-content: flex-start;
  }

  .hero__buttons {
    flex-direction: row;
    justify-content: flex-start;
  }

  .hero__image {
    order: 2;
  }

  .hero__image-bg {
    width: 350px;
    height: 350px;
  }
}

/* 
====================================================================================================
ABOUT SECTION
====================================================================================================
*/

.about__container {
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.about__data {
  text-align: center;
}

.about__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-lg);
  color: var(--text-color);
}

.about__description {
  font-size: var(--font-size-lg);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-relaxed);
  text-align: justify;
}

.about__stats {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px var(--shadow-light);
}

.about__stat {
  text-align: center;
}

.about__stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.about__stat-name {
  font-size: var(--font-size-sm);
  color: var(--text-color-light);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
}

.about__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  align-items: center;
}

.about__image {
  display: flex;
  justify-content: center;
}

.about__img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 30px var(--shadow-medium);
  transition: transform var(--transition-base);
}

.about__img:hover {
  transform: scale(1.05);
}

/* Desktop About Layout */
@media (min-width: 768px) {
  .about__container {
    grid-template-columns: 1fr 1fr;
  }

  .about__data {
    text-align: left;
  }

  .about__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .about__buttons {
    flex-direction: row;
    justify-content: flex-start;
  }

  .about__img {
    width: 400px;
    height: 400px;
  }
}

/*
====================================================================================================
SKILLS SECTION
====================================================================================================
*/

.skills__container {
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
}

.skills__content {
  background: var(--surface-color);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: transform var(--transition-base);
  height: 100%;
}

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

.skills__title {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-2xl);
  color: var(--text-color);
}

.skills__title-icon {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
}

/* Professional Capabilities Styling */
.skills__list-clean {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.skills__capability {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
  transition: all var(--transition-fast);
}

.skills__capability i {
  color: var(--primary-color);
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

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

/* Technical Competencies Styling */
.skills__category {
  margin-bottom: var(--spacing-xl);
}

.skills__category:last-child {
  margin-bottom: 0;
}

.skills__category-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
  margin-bottom: var(--spacing-base);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border-color);
}

.skills__category-title i {
  color: var(--secondary-color);
  font-size: var(--font-size-xl);
}

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-base);
}

.skill__tag {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-base);
  background: var(--surface-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill__tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.skill__tag:hover {
  background: var(--secondary-color);
  color: var(--white-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skill__tag:hover::before {
  left: 100%;
}

/* Color variations for different technical categories */
.skills__category:nth-child(1) .skill__tag:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.skills__category:nth-child(2) .skill__tag:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.skills__category:nth-child(3) .skill__tag:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Professional Capabilities - Green Theme */
.skills__content:first-child .skills__title-icon {
  color: var(--primary-color);
}

.skills__content:first-child .skills__capability i {
  color: var(--primary-color);
}

.skills__content:first-child .skills__capability:hover {
  color: var(--primary-color);
}

/* Technical Competencies - Blue Theme */
.skills__content:last-child .skills__title-icon {
  color: var(--secondary-color);
}

.skills__content:last-child .skills__category-title i {
  color: var(--secondary-color);
}

/* Enhanced visual hierarchy */
.skills__content:first-child {
  border-left: 4px solid var(--primary-color);
}

.skills__content:last-child {
  border-left: 4px solid var(--secondary-color);
}

/* Desktop Skills Layout */
@media (min-width: 768px) {
  .skills__container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  
  .skills__tags {
    gap: var(--spacing-base);
  }
  
  .skill__tag {
    font-size: var(--font-size-base);
  }
  
  .skills__capability {
    font-size: var(--font-size-xl);
  }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
  .skills__content {
    padding: var(--spacing-3xl);
  }
  
  .skills__category-title {
    font-size: var(--font-size-xl);
  }
}/* 
====================================================================================================
TIMELINE (EXPERIENCE SECTION)
====================================================================================================
*/

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--spacing-3xl);
}

.timeline__item::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 4px solid var(--bg-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline__content {
  background: var(--surface-color);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px var(--shadow-light);
  position: relative;
  width: calc(50% - 30px);
  transition: transform var(--transition-base);
}

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

.timeline__item--left .timeline__content {
  margin-left: 0;
}

.timeline__item--right .timeline__content {
  margin-left: auto;
}

.timeline__content::before {
  content: '';
  position: absolute;
  top: 25px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline__item--left .timeline__content::before {
  right: -20px;
  border-left-color: var(--surface-color);
}

.timeline__item--right .timeline__content::before {
  left: -20px;
  border-right-color: var(--surface-color);
}

.timeline__date {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-base);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: var(--white-color);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-base);
}

.timeline__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.timeline__company {
  font-size: var(--font-size-base);
  color: var(--text-color-light);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-base);
}

.timeline__description {
  font-size: var(--font-size-base);
  color: var(--text-color-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-base);
  text-align: justify;
}

.timeline__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tech__tag {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--bg-color-alt);
  color: var(--text-color);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* Mobile Timeline */
@media (max-width: 767px) {
  .timeline::before {
    left: 20px;
  }

  .timeline__item::before {
    left: 20px;
  }

  .timeline__content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .timeline__content::before {
    left: -20px !important;
    border-right-color: var(--surface-color) !important;
    border-left-color: transparent !important;
  }
}

/* 
====================================================================================================
CERTIFICATES SECTION
====================================================================================================
*/

.certificates__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.certificate__card {
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all var(--transition-base);
}

.certificate__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.certificate__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.certificate__card:hover .certificate__img {
  transform: scale(1.05);
}

.certificate__content {
  padding: var(--spacing-xl);
}

.certificate__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.certificate__issuer {
  font-size: var(--font-size-base);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-lg);
}

.certificate__button {
  width: 100%;
  padding: var(--spacing-base);
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.certificate__button:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/* 
====================================================================================================
PROJECTS SECTION - ENHANCED DESIGN
====================================================================================================
*/

/* Project Filter Tabs */
.projects__filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-base);
  margin-bottom: var(--spacing-3xl);
}

.filter__btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-base) var(--spacing-xl);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.filter__btn:hover,
.filter__btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.dark-theme .filter__btn {
  background: rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-theme .filter__btn:hover,
.dark-theme .filter__btn.active {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Projects Container */
.projects__container {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

/* Project Card */
.project__card {
  background: var(--surface-color);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Standardized height for consistency */
  min-height: 720px;
  height: auto;
}

.project__card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 32px rgba(16, 185, 129, 0.1);
}

.dark-theme .project__card {
  background: var(--dark-surface-color);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-theme .project__card:hover {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(59, 130, 246, 0.2);
}

/* Project Image Container */
.project__image-container {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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

.project__card:hover .project__img {
  transform: scale(1.1);
}

/* Image Overlay */
.project__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.9) 0%,
    rgba(59, 130, 246, 0.9) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project__card:hover .project__overlay {
  opacity: 1;
}

.project__overlay-content {
  text-align: center;
  color: var(--white-color);
  padding: var(--spacing-lg);
}

.project__overlay-content h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
}

.project__overlay-content p {
  font-size: var(--font-size-base);
  opacity: 0.9;
}

/* Project Content */
.project__content {
  padding: var(--spacing-2xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Project Header */
.project__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-base);
}

.project__category {
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white-color);
}

.project__category.smart-home {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
}

.project__category.electrical {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.project__category.web-dev {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Project Status */
.project__status {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-color-light);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status__dot.completed {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status__dot.in-progress {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* Project Title */
.project__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin-bottom: var(--spacing-base);
  line-height: var(--line-height-tight);
}

/* Project Description */
.project__description {
  font-size: var(--font-size-base);
  color: var(--text-color-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-xl);
  flex: 1;
  text-align: justify;
}

/* Project Stats */
.project__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.dark-theme .project__stats {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--dark-border-color);
}

.stat__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
  flex: 1;
  min-width: 120px;
}

.stat__item i {
  font-size: var(--font-size-lg);
  color: var(--primary-color);
}

/* Project Features */
.project__features {
  padding: 1.5rem 0 1rem;
  flex-grow: 1; /* Allow features section to grow and fill space */
}

.project__features h4 {
  font-size: var(--font-size-sm);
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.features__list {
  display: grid;
  gap: 0.75rem;
}

.feature__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  /* Improved readability with larger font size */
  font-size: var(--font-size-base);
  line-height: 1.5;
  font-weight: 500;
}

.feature__icon {
  font-size: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.feature__text {
  color: var(--text-color);
  font-weight: 500;
}

.dark-theme .project__features h4 {
  color: var(--dark-text-light);
}

.dark-theme .feature__text {
  color: var(--dark-text-color);
}

/* Project Technologies */
.project__technologies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.tech__tag {
  padding: var(--spacing-xs) var(--spacing-base);
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
}

.tech__tag:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-1px);
}

.dark-theme .tech__tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--secondary-color);
  border-color: rgba(59, 130, 246, 0.2);
}

.dark-theme .tech__tag:hover {
  background: var(--secondary-color);
}

/* Project Actions */
.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-base);
  margin-top: auto;
  padding-top: var(--spacing-lg);
}

.project__link {
  flex: 1;
  min-width: 140px;
  padding: var(--spacing-base) var(--spacing-lg);
  text-align: center;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.project__link.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  border: 2px solid transparent;
}

.project__link.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.project__link.secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.project__link.secondary:hover {
  background: var(--text-color);
  color: var(--white-color);
  transform: translateY(-2px);
}

.project__link.info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--secondary-color);
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.project__link.info:hover {
  background: var(--secondary-color);
  color: var(--white-color);
  transform: translateY(-2px);
}

/* Project Action Button Icons */
.project__link i {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.project__link:hover i {
  transform: scale(1.1);
}

.project__link.primary i {
  color: var(--white-color);
}

.project__link.secondary i {
  color: var(--text-color);
}

.project__link.secondary:hover i {
  color: var(--white-color);
}

.project__link.info i {
  color: var(--secondary-color);
}

.project__link.info:hover i {
  color: var(--white-color);
}

/* More Projects Button */
.projects__more {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

/* Responsive Design */
@media (max-width: 480px) {
  .projects__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .filter__btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-xs);
  }
  
  .project__content {
    padding: var(--spacing-xl);
  }
  
  .project__stats {
    flex-direction: column;
    gap: var(--spacing-base);
  }
  
  .stat__item {
    min-width: auto;
  }
  
  .project__card {
    /* Adjust minimum height for mobile */
    min-height: 650px;
  }
  
  .project__features {
    padding: 1rem 0;
  }
  
  .feature__item {
    font-size: 0.95rem;
    padding: 0.4rem 0;
  }
  
  .project__actions {
    gap: var(--spacing-sm);
  }
  
  .project__link {
    min-width: 120px;
    padding: var(--spacing-sm) var(--spacing-base);
    font-size: var(--font-size-xs);
  }
  
  .project__links {
    flex-direction: column;
  }
  
  .project__link {
    min-width: auto;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .projects__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .project__card {
    /* Tablet responsive height */
    min-height: 680px;
  }
}

@media (min-width: 1024px) {
  .projects__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1400px) {
  .projects__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 
====================================================================================================
CONTACT SECTION
====================================================================================================
*/

.contact__container {
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  max-width: 1000px;
  margin: 0 auto;
}

.contact__info {
  display: grid;
  gap: var(--spacing-xl);
}

.contact__card {
  background: var(--surface-color);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: transform var(--transition-base);
}

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

.contact__card-icon {
  font-size: var(--font-size-3xl);
  color: var(--primary-color);
  margin-bottom: var(--spacing-base);
}

.contact__card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.contact__card-data {
  font-size: var(--font-size-base);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-lg);
  display: block;
}

.contact__button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
}

.contact__button:hover {
  color: var(--primary-color-alt);
}

.contact__button-icon {
  font-size: var(--font-size-base);
  transition: transform var(--transition-fast);
}

.contact__button:hover .contact__button-icon {
  transform: translateX(5px);
}

.contact__form {
  background: var(--surface-color);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px var(--shadow-light);
}

.contact__form-div {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.contact__form-tag {
  position: absolute;
  top: -10px;
  left: var(--spacing-base);
  background: var(--surface-color);
  color: var(--text-color);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: 0 var(--spacing-sm);
  z-index: 1;
}

.contact__form-input {
  width: 100%;
  padding: var(--spacing-base) var(--spacing-lg);
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  resize: vertical;
}

.contact__form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact__form-input::placeholder {
  color: var(--text-color-light);
}

.contact__form-area {
  grid-column: 1 / -1;
}

.contact__form-area .contact__form-input {
  min-height: 120px;
}

.contact__form-button {
  width: 100%;
  margin-top: var(--spacing-base);
}

.contact__form-message {
  margin-top: var(--spacing-base);
  padding: var(--spacing-base);
  border-radius: var(--radius-base);
  text-align: center;
  font-weight: var(--font-weight-medium);
  display: none;
}

.contact__form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: block;
}

.contact__form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* Desktop Contact Layout */
@media (min-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr 2fr;
  }

  .contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}

/* 
====================================================================================================
FOOTER - ENHANCED DESIGN
====================================================================================================
*/

.footer {
  background: linear-gradient(135deg, var(--bg-color-alt), var(--surface-color));
  padding: var(--spacing-5xl) 0 var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.footer__container {
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  text-align: center;
}

.footer__main {
  margin-bottom: var(--spacing-xl);
}

.footer__logo {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: transform var(--transition-fast);
}

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

.footer__logo-icon {
  font-size: var(--font-size-xl);
  color: var(--secondary-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.footer__description {
  color: var(--text-color-light);
  line-height: var(--line-height-relaxed);
  max-width: 400px;
  margin: 0 auto var(--spacing-xl);
  text-align: justify;
}

.footer__stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.footer__stat {
  text-align: center;
}

.footer__stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  line-height: 1;
}

.footer__stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.footer__title-icon {
  color: var(--primary-color);
  font-size: var(--font-size-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__link {
  color: var(--text-color-light);
  transition: all var(--transition-fast);
  padding: var(--spacing-xs) 0;
  position: relative;
}

.footer__link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

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

.footer__link:hover::before {
  width: 100%;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  color: var(--text-color-light);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer__contact-item:hover {
  color: var(--primary-color);
}

.footer__contact-icon {
  color: var(--primary-color);
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-base);
  margin-bottom: var(--spacing-xl);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--surface-color);
  color: var(--text-color-light);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-xl);
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.footer__social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}

.footer__social-link:hover::before {
  transform: translateX(100%);
}

.footer__social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.footer__social-link.linkedin:hover {
  background: #0077b5;
  color: white;
}

.footer__social-link.github:hover {
  background: #333;
  color: white;
}

.footer__social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.footer__social-link.email:hover {
  background: var(--primary-color);
  color: white;
}

.footer__newsletter {
  margin-top: var(--spacing-lg);
}

.footer__newsletter-text {
  color: var(--text-color-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-base);
}

.footer__newsletter-form {
  display: flex;
  max-width: 300px;
  margin: 0 auto;
  background: var(--surface-color);
  border-radius: var(--radius-full);
  padding: var(--spacing-xs);
  box-shadow: 0 2px 10px var(--shadow-light);
}

.footer__newsletter-input {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-base);
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: var(--font-size-sm);
  outline: none;
}

.footer__newsletter-input::placeholder {
  color: var(--text-color-light);
}

.footer__newsletter-btn {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.footer__newsletter-btn:hover {
  background: var(--primary-color-alt);
  transform: scale(1.05);
}

.footer__bottom {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-base);
}

.footer__copy {
  text-align: center;
  color: var(--text-color-light);
  font-size: var(--font-size-sm);
}

.footer__privacy {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xs);
}

.footer__privacy-link {
  color: var(--text-color-light);
  transition: color var(--transition-fast);
}

.footer__privacy-link:hover {
  color: var(--primary-color);
}

.footer__separator {
  color: var(--text-color-light);
}

.footer__version {
  color: var(--text-color-light);
  font-family: var(--font-family-mono);
}

/* Desktop Footer Layout */
@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    text-align: left;
  }

  .footer__title {
    justify-content: flex-start;
  }

  .footer__social {
    justify-content: flex-start;
  }

  .footer__contact-item {
    justify-content: flex-start;
  }

  .footer__stats {
    justify-content: flex-start;
  }

  .footer__newsletter-form {
    margin: 0;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__link::before {
    left: 0;
    transform: none;
  }

  .footer__link:hover {
    transform: translateX(10px);
  }
}

@media (min-width: 1024px) {
  .footer__stats {
    gap: var(--spacing-2xl);
  }
}

/* 
====================================================================================================
SCROLL TO TOP BUTTON
====================================================================================================
*/

.scroll-up {
  position: fixed;
  right: var(--spacing-base);
  bottom: var(--spacing-base);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: var(--white-color);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--shadow-medium);
  transition: all var(--transition-fast);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: var(--z-fixed);
}

.scroll-up.show-scroll {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-up:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* 
====================================================================================================
LIGHTBOX MODAL
====================================================================================================
*/

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: var(--white-color);
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: var(--spacing-base);
  right: var(--spacing-base);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white-color);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  z-index: 1;
  transition: all var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox__img {
  width: 100%;
  height: auto;
  display: block;
}

/* 
====================================================================================================
RESPONSIVE BREAKPOINTS & MEDIA QUERIES
====================================================================================================
/* 
====================================================================================================
ENHANCED RESPONSIVE BREAKPOINTS & MEDIA QUERIES
====================================================================================================
*/

/* Extra Small Devices - Fix mobile overflow issues */
@media (max-width: 479px) {
  .container {
    padding-left: var(--spacing-base);
    padding-right: var(--spacing-base);
    max-width: 100%;
    margin: 0 auto;
  }

  /* Fix mobile navigation */
  .nav__menu {
    width: 100vw;
    left: -100vw;
  }

  .nav__menu.show-menu {
    left: 0;
  }

  /* Hero section mobile fixes */
  .hero__container {
    gap: var(--spacing-xl);
    text-align: center;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-base);
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: var(--spacing-base) var(--spacing-lg);
  }

  /* Skills section mobile optimization */
  .skills__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .skills__item {
    margin-bottom: var(--spacing-lg);
  }

  /* Typography adjustments for mobile */
  .hero__title {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-tight);
  }

  .hero__profession {
    font-size: var(--font-size-lg);
  }

  .section__title {
    font-size: var(--font-size-xl);
  }

  /* Fix image containers */
  .hero__image,
  .about__img {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  .main {
    overflow-x: hidden;
  }

  /* Experience timeline mobile */
  .experience__item {
    padding-left: var(--spacing-lg);
  }

  /* Projects mobile */
  .projects__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Certificates mobile */
  .certificates__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Contact form mobile */
  .contact__container {
    grid-template-columns: 1fr;
  }

  .contact__form {
    width: 100%;
  }
}

/* Small Devices - Improved tablet experience */
@media (min-width: 480px) and (max-width: 767px) {
  .container {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }

  .hero__buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-base);
  }

  .btn {
    flex: 1;
    min-width: 200px;
  }

  .skills__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .certificates__container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .projects__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  /* Navigation improvements for tablets */
  .nav__list {
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
  }

  .nav__link {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
  }
}

/* Medium Devices - Better spacing */
@media (min-width: 768px) and (max-width: 1023px) {
  .skills__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .certificates__container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .projects__container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

/* Large Devices */
@media (min-width: 1024px) {
  .container {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }

  .skills__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
  }

  .certificates__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects__container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Enhanced desktop navigation */
  .nav__link {
    position: relative;
  }

  .nav__link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-base);
    transition: all var(--transition-base);
    transform: translateX(-50%);
  }

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

/* Extra Large Devices */
@media (min-width: 1280px) {
  .hero__image-bg {
    width: 400px;
    height: 400px;
  }

  .about__img {
    width: 450px;
    height: 450px;
  }

  .skills__container {
    gap: var(--spacing-4xl);
  }

  .certificates__container {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
  }

  .projects__container {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
  }
}

/* Ultra Wide Screens */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }

  .projects__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .certificates__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 
====================================================================================================
PRINT STYLES
====================================================================================================
*/

@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .header,
  .nav__toggle,
  .nav__menu,
  .hero__scroll,
  .contact__form,
  .footer,
  .scroll-up,
  .lightbox {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }

  .btn {
    border: 1px solid black;
    color: black;
  }
}

/* 
====================================================================================================
ACCESSIBILITY IMPROVEMENTS
====================================================================================================
*/

/* Focus Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:focus,
.nav__link:focus,
.contact__form-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #000000;
  }

  .dark-theme {
    --text-color: #ffffff;
    --bg-color: #000000;
    --border-color: #ffffff;
  }
}

/* 
====================================================================================================
LOADING AND PERFORMANCE OPTIMIZATIONS
====================================================================================================
*/

/* Image loading optimization */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
}

/* Smooth font rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hardware acceleration for animations */
.hero__orb,
.scroll-up,
.btn {
  will-change: transform;
}

/* 
====================================================================================================
ENHANCED NAVIGATION RESPONSIVE OVERRIDES
====================================================================================================
*/

/* Mobile-first adjustments */
@media (max-width: 767px) {
  .nav {
    padding: 0 var(--spacing-base);
  }
  
  .nav__logo-text {
    padding: var(--spacing-sm) var(--spacing-base);
    font-size: var(--font-size-lg);
  }

  /* Add safe area padding for devices with notches */
  .nav__menu {
    padding-top: env(safe-area-inset-top);
  }

  .nav__menu-header {
    padding-top: calc(var(--spacing-xl) + env(safe-area-inset-top));
  }

  /* Enhanced touch targets for mobile */
  .nav__link {
    min-height: 56px;
    font-size: var(--font-size-base);
  }

  .nav__toggle,
  .nav__close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Tablet & Desktop overrides */
@media (min-width: 768px) {
  .nav__menu-header,
  .nav__menu-footer {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    gap: var(--spacing-xs);
    padding: 0;
    justify-content: flex-end;
    flex: none;
  }

  .nav__link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
  }

  .dark-theme .nav__link {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav__close,
  .nav__toggle {
    display: none;
  }
}

/* Tablet-specific navigation tooltips */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav__link span {
    display: none;
  }
  
  .nav__icon {
    font-size: var(--font-size-lg);
  }

  /* Add tooltips for tablet navigation */
  .nav__link[data-section="home"]::after { content: "Home"; }
  .nav__link[data-section="about"]::after { content: "About"; }
  .nav__link[data-section="skills"]::after { content: "Skills"; }
  .nav__link[data-section="experience"]::after { content: "Experience"; }
  .nav__link[data-section="certificates"]::after { content: "Certificates"; }
  .nav__link[data-section="projects"]::after { content: "Projects"; }
  .nav__link[data-section="contact"]::after { content: "Contact"; }

  .nav__link::after {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-color);
    color: var(--text-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav__link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
  }
}

/* 
====================================================================================================
SEO ENHANCEMENTS STYLES
====================================================================================================
*/

/* Breadcrumb Navigation */
.breadcrumb {
  background: transparent;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none; /* Hidden by default, shown only on sub-pages via JavaScript */
}

/* Show breadcrumbs only on sub-pages (not homepage) */
.breadcrumb.show {
  display: block;
}

/* Ensure breadcrumbs don't interfere with hero section */
.hero {
  position: relative;
  z-index: 1;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--font-size-sm);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  color: var(--text-color-light);
}

.breadcrumb__item:not(:last-child)::after {
  content: '›';
  margin-left: var(--spacing-xs);
  color: var(--text-color-light);
  opacity: 0.5;
}

.breadcrumb__link {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
  color: var(--primary-color);
}

.breadcrumb__item:last-child .breadcrumb__link {
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* Schema.org microdata styling */
[itemscope] {
  position: relative;
}

/* Print styles for better SEO */
@media print {
  .nav,
  .footer,
  .btn,
  .social-links {
    display: none !important;
  }
  
  .main {
    padding: 0 !important;
  }
  
  .section {
    break-inside: avoid;
    margin-bottom: 2rem;
  }
  
  .hero__title,
  .section__title {
    color: #000 !important;
    font-size: 24px !important;
  }
  
  .about__text,
  .timeline__description {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* Mobile breadcrumb optimization */
@media (max-width: 767px) {
  .breadcrumb {
    display: none;
  }
}

/* Hide breadcrumbs completely on homepage */
body.homepage .breadcrumb,
.breadcrumb.homepage-hidden {
  display: none !important;
}

/* Ensure proper spacing without breadcrumbs */
body.homepage .hero {
  margin-top: 0;
}

/* 
====================================================================================================
END OF STYLESHEET
====================================================================================================
*/
