:root {
  --primary-grad: linear-gradient(135deg, #7c3aed, #06b6d4);
  --secondary-grad: linear-gradient(135deg, #8b5cf6, #0ea5e9);
  --accent-grad: linear-gradient(135deg, #a855f7, #38bdf8);
  --bg-dark: #0a0a0f;
  --bg-light: #fafafa;
  --text-dark: #1a1a2e;
  --text-light: #f1f5f9;
  --accent: #7c3aed;
  --accent-light: #a855f7;
  --accent-cyan: #06b6d4;
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 0, 0, 0.1);
  --font-display: "Outfit", "Montserrat", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
  --shadow-glow-hover: 0 0 60px rgba(124, 58, 237, 0.25);
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-light);
  transition: background 0.4s var(--transition-smooth), color 0.4s var(--transition-smooth);
  scroll-behavior: smooth;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.01em;
}

body.light-mode {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ===== Scroll Progress Indicator ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  z-index: 99999;
  transition: width 0.1s ease-out;
}

/* ===== Full-Width Section Divider ===== */
.section-divider {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-divider::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(124, 58, 237, 0.03) 40%,
    rgba(124, 58, 237, 0.06) 50%,
    rgba(124, 58, 237, 0.03) 60%,
    transparent 100%
  );
}

.section-divider::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124, 58, 237, 0.15) 10%,
    rgba(124, 58, 237, 0.4) 30%,
    rgba(6, 182, 212, 0.6) 50%,
    rgba(124, 58, 237, 0.4) 70%,
    rgba(124, 58, 237, 0.15) 90%,
    transparent 100%
  );
}

/* ===== Minimal Rounded Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-grad);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-grad);
}
body.light-mode::-webkit-scrollbar-thumb {
  background: var(--primary-grad);
}
body.light-mode::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-grad);
}

/* ===== Modern Navbar ===== */
.navbar {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.9rem 0;
  transition: all 0.4s var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 0.7rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body.dark-mode .navbar {
  background: rgba(10, 10, 15, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: rgba(124, 58, 237, 0.2);
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(124, 58, 237, 0.15);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  transition: all 0.3s var(--transition-smooth);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-grad);
  transition: width 0.3s var(--transition-smooth);
}

.navbar-brand:hover::after {
  width: 100%;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 8px;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}

body.dark-mode .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  cursor: pointer;
}

body.light-mode .nav-link {
  color: rgba(0, 0, 0, 0.85) !important;
  cursor: pointer;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-grad);
  opacity: 0;
  border-radius: 50px;
  transition: opacity 0.3s var(--transition-smooth);
  z-index: -1;
}

.nav-link:hover {
  color: #fff !important;
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.active {
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.nav-link.active::before {
  opacity: 1;
}

/* Theme Toggle Button */
#themeToggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  margin-left: 12px;
  transition: all 0.3s var(--transition-smooth);
}

#themeToggle:hover {
  background: var(--primary-grad);
  border-color: transparent;
  transform: rotate(180deg);
}

#themeToggle:hover i {
  color: #fff !important;
}

@media (max-width: 991px) {
  .navbar-collapse {
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
    border: 1px solid rgba(124, 58, 237, 0.2);
  }
  
  body.dark-mode .navbar-collapse {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  body.light-mode .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }
  
  .nav-link {
    display: block;
    text-align: center;
    margin: 6px 0;
    padding: 12px 20px;
    border-radius: 12px;
  }
  
  .nav-link:hover {
    transform: translateX(5px);
  }
  
  #themeToggle {
    margin: 10px auto 0;
  }
}

.navbar-toggler {
  border: none;
  outline: none !important;
  box-shadow: none !important;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  transition: all 0.3s var(--transition-smooth);
}

.navbar-toggler:hover {
  background: rgba(124, 58, 237, 0.2);
}

body.dark-mode .navbar-toggler {
  color: #fff;
}

body.light-mode .navbar-toggler {
  color: #000;
}

.navbar-toggler .fa-bars {
  font-size: 1.2rem;
}

/* ===== Hero ===== */
.hero {
  padding-top: 140px;
  text-align: center;
}

.profile-pic {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid transparent;
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
              var(--primary-grad) border-box;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25), 
              0 0 0 4px rgba(124, 58, 237, 0.1);
  transition: all 0.4s var(--transition-smooth);
}

body.light-mode .profile-pic {
  background: linear-gradient(var(--bg-light), var(--bg-light)) padding-box,
              var(--primary-grad) border-box;
}

.profile-pic:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 30px 60px rgba(124, 58, 237, 0.35),
              0 0 0 6px rgba(124, 58, 237, 0.15);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-top: 24px;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero p {
  max-width: 720px;
  margin: 20px auto 0;
  line-height: 1.8;
  font-size: 1.15rem;
  opacity: 0.85;
}

/* ===== Socials ===== */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 12px;
}

.socials a {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  font-size: 1.3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s var(--transition-smooth);
}

body.dark-mode .socials a {
  background: rgba(124, 58, 237, 0.08);
  color: #fff;
}

body.light-mode .socials a {
  background: rgba(124, 58, 237, 0.06);
  color: #1a1a2e;
}

.socials a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-grad);
  opacity: 0;
  transition: opacity 0.3s var(--transition-smooth);
}

.socials a i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--transition-smooth);
}

.socials a:hover {
  color: white;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4);
  border-color: transparent;
}

.socials a:hover::before {
  opacity: 1;
}

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

/* ===== Typography Improvements ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p {
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* Section Titles */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 16px;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 650px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* ===== Modern Footer ===== */
footer {
  text-align: center;
  padding: 60px 0 40px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--primary-grad);
  border-radius: 2px;
}

footer::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--primary-grad);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

body.dark-mode footer {
  background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.03) 100%);
}

body.light-mode footer {
  background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.04) 100%);
}

footer a {
  text-decoration: none;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s var(--transition-smooth);
}

footer a:hover {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: 30px;
}

.footer-links a {
  text-decoration: none;
  opacity: 0.75;
  transition: all 0.3s var(--transition-smooth);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  -webkit-text-fill-color: inherit;
}

body.dark-mode .footer-links a {
  color: var(--text-light);
}

body.light-mode .footer-links a {
  color: var(--text-dark);
}

.footer-links a:hover {
  opacity: 1;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent);
}

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

.footer-social a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 14px;
  opacity: 0.7;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: transparent;
  -webkit-text-fill-color: inherit;
}

body.dark-mode .footer-social a {
  color: var(--text-light);
  background: rgba(124, 58, 237, 0.08);
}

body.light-mode .footer-social a {
  color: var(--text-dark);
  background: rgba(124, 58, 237, 0.06);
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-grad);
  opacity: 0;
  transition: opacity 0.3s var(--transition-smooth);
}

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

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.05);
  border-color: transparent;
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.35);
}

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social a:hover i {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* Gradient name in footer */
.gradient-name {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  transition: all 0.3s var(--transition-smooth);
  display: inline-block;
  cursor: pointer;
  position: relative;
}

.gradient-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-grad);
  transition: width 0.3s var(--transition-smooth);
}

.gradient-name:hover::after {
  width: 100%;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 10000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid rgba(127, 90, 240, 0.3);
  transition: background 0.3s ease;
}

body.dark-mode .cookie-consent {
  background: rgba(15, 15, 35, 0.98);
  color: #f1f5f9;
}

body.light-mode .cookie-consent {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: rgba(127, 90, 240, 0.4);
  color: #1a1a2e;
}

.cookie-consent-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-consent-text a {
  color: #7f5af0;
  text-decoration: none;
}

body.light-mode .cookie-consent-text a {
  color: #6b21a8;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-consent-buttons button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  font-size: 0.95rem;
}

.cookie-consent-buttons .btn-accept {
  background: var(--primary-grad);
  color: white;
  border: none;
}

.cookie-consent-buttons .btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(127, 90, 240, 0.4);
}

.cookie-consent-buttons .btn-reject {
  background: transparent;
  border: 2px solid var(--accent);
}

body.dark-mode .cookie-consent-buttons .btn-reject {
  color: #f1f5f9;
}

body.light-mode .cookie-consent-buttons .btn-reject {
  color: #1a1a2e;
  border-color: #7c3aed;
}

.cookie-consent-buttons .btn-reject:hover {
  background: rgba(127, 90, 240, 0.1);
}

@media (max-width: 576px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-consent-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-consent-buttons button {
    flex: 1;
    min-width: 120px;
  }
}

/* ===== SPA-Like Page Transitions ===== */
.page-transition {
  animation: pageSlideIn 0.4s var(--transition-smooth);
}

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

.page-exit {
  animation: pageSlideOut 0.3s var(--transition-smooth);
}

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

/* Loading overlay for page transitions */
.page-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--transition-smooth);
}

body.light-mode .page-loading-overlay {
  background: var(--bg-light);
}

.page-loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.page-loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(124, 58, 237, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== Enhanced Button Styles ===== */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.btn-modern.btn-primary {
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.btn-modern.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.45);
}

.btn-modern.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
}

body.dark-mode .btn-modern.btn-outline {
  color: var(--text-light);
}

body.light-mode .btn-modern.btn-outline {
  color: var(--text-dark);
}

.btn-modern.btn-outline:hover {
  background: var(--primary-grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

/* Hide link preview on hover */
.no-preview {
  cursor: pointer;
}

/* ===== Cards Enhancement ===== */
.card-modern {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s var(--transition-smooth);
}

body.light-mode .card-modern {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.2);
}

.card-modern:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

/* ===== Ultra Responsive Design ===== */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  
  .profile-pic {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.25;
  }
  
  .hero p {
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 12px;
  }
  
  .profile-pic {
    width: 160px;
    height: 160px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    padding: 0 15px;
  }
  
  .socials {
    gap: 10px;
  }
  
  .socials a {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
    border-radius: 14px;
  }
  
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    padding: 0 20px;
  }
  
  .footer-links a {
    padding: 10px 16px;
    font-size: 0.9rem;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 25px;
    border: 1px solid rgba(124, 58, 237, 0.15);
  }
  
  .footer-social {
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px;
  }
  
  .footer-social a {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  /* Mobile section dividers */
  .section-divider {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 110px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .profile-pic {
    width: 140px;
    height: 140px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .socials a {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .card-modern {
    padding: 24px;
    border-radius: 16px;
  }
  
  /* Enhanced mobile footer */
  footer {
    padding: 40px 15px 30px;
    margin-top: 60px;
  }
  
  footer::before {
    width: 120px;
  }
  
  footer::after {
    width: 10px;
    height: 10px;
    top: -5px;
  }
  
  .footer-links {
    gap: 6px 10px;
    padding: 0 10px;
  }
  
  .footer-links a {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  .footer-social {
    gap: 8px;
  }
  
  .footer-social a {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    border-radius: 12px;
  }
  
  .footer-bottom {
    padding-top: 20px;
    font-size: 0.85rem;
  }
  
  .footer-bottom p {
    line-height: 1.6;
  }
  
  /* Smaller section dividers on mobile */
  .section-divider {
    height: 50px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .profile-pic {
    width: 120px;
    height: 120px;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .socials a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Compact footer for very small screens */
  footer {
    padding: 35px 10px 25px;
  }
  
  .footer-links a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
  }
  
  .section-divider {
    height: 40px;
  }
}

/* ===== Accessibility Improvements ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.1s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --accent: #9d4edd;
  }
  
  .nav-link,
  .footer-links a,
  .socials a {
    border-width: 2px;
  }
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Touch-friendly targets */
@media (pointer: coarse) {
  .nav-link,
  .socials a,
  .footer-social a,
  .btn-modern {
    min-height: 48px;
    min-width: 48px;
  }
}
