/* CSS Variables for Theming */
:root {
  /* Light Theme Colors */
  --bg-primary: #f9f3ef;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f0eb;
  --text-primary: #1b3c53;
  --text-secondary: #456882;
  --text-tertiary: #6c757d;
  --text-quaternary: #495057;
  --accent-primary: #456882;
  --accent-secondary: #1b3c53;
  --border-color: #d2c1b6;
  --border-secondary: #e6ddd5;
  --shadow-color: rgba(27, 60, 83, 0.1);
  --shadow-hover: rgba(27, 60, 83, 0.15);
  --navbar-bg: rgba(249, 243, 239, 0.95);
  --navbar-shadow: rgba(27, 60, 83, 0.1);
  --card-bg: #f5f0eb;
  --input-bg: #ffffff;
  --hero-overlay: rgba(27, 60, 83, 0.3);
}

/* Dark Theme Colors - Enhanced */
[data-theme="dark"] {
  /* Primary backgrounds - deeper, richer blues */
  --bg-primary: #0f1419; /* Deep navy - main background */
  --bg-secondary: #1a2332; /* Dark blue-gray - cards/sections */
  --bg-tertiary: #242f3d; /* Slightly lighter - tertiary elements */

  /* Text colors - improved contrast */
  --text-primary: #f7f3e9; /* Warm white - primary text */
  --text-secondary: #e8e0d1; /* Soft cream - secondary text */
  --text-tertiary: #b8a082; /* Muted gold - tertiary text */
  --text-quaternary: #9b8b73; /* Darker gold - quaternary text */

  /* Accent colors - warmer tones */
  --accent-primary: #d4a574; /* Warm gold - primary accent */
  --accent-secondary: #b8956a; /* Deeper gold - secondary accent */

  /* Border colors - subtle but visible */
  --border-color: #3a4a5c; /* Subtle blue-gray borders */
  --border-secondary: #2d3a4b; /* Darker borders */

  /* Shadows - enhanced depth */
  --shadow-color: rgba(0, 0, 0, 0.4); /* Stronger shadows */
  --shadow-hover: rgba(0, 0, 0, 0.6); /* Deeper hover shadows */

  /* Navigation */
  --navbar-bg: rgba(15, 20, 25, 0.95); /* Dark navbar */
  --navbar-shadow: rgba(0, 0, 0, 0.4); /* Navbar shadow */

  /* Card and input backgrounds */
  --card-bg: #1a2332; /* Card background */
  --input-bg: #242f3d; /* Input background */

  /* Hero overlay */
  --hero-overlay: rgba(0, 0, 0, 0.6); /* Stronger overlay */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove focus outlines that create sticky squares */
a,
button,
input,
textarea,
select {
  outline: none;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* Offset for fixed navbar */
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    "Oxygen",
    "Ubuntu",
    "Cantarell",
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #dee2e6;
}

.btn-secondary:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--navbar-shadow);
  transition:
    background 0.3s ease,
    border-bottom 0.3s ease;
}

.theme-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.theme-toggle i {
  color: var(--accent-primary);
  transition: color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h2 {
  color: var(--accent-primary);
  margin: 0;
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  outline: none; /* Remove focus outline */
}

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

.nav-link:focus {
  outline: none; /* Remove focus outline */
  box-shadow: none; /* Remove any focus box shadow */
}

.nav-link:active {
  outline: none; /* Remove active outline */
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay);
}

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

.hero h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem !important;
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-btn-primary,
.hero-btn-secondary,
.hero-btn-outline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.hero-btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.hero-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

.hero-btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.hero-btn-primary i,
.hero-btn-secondary i,
.hero-btn-outline i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.hero-btn-primary:hover i,
.hero-btn-secondary:hover i,
.hero-btn-outline:hover i {
  transform: scale(1.1);
}

/* Ripple effect for hero buttons */
.hero-btn-primary::before,
.hero-btn-secondary::before,
.hero-btn-outline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition:
    width 0.6s,
    height 0.6s,
    top 0.6s,
    left 0.6s;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-btn-primary:active::before,
.hero-btn-secondary:active::before,
.hero-btn-outline:active::before {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
}

.hero-btn-primary span,
.hero-btn-secondary span,
.hero-btn-outline span {
  position: relative;
  z-index: 1;
}

.hero-btn-primary i,
.hero-btn-secondary i,
.hero-btn-outline i {
  position: relative;
  z-index: 1;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  margin: 1rem auto;
  border-radius: 2px;
}

/* About Section */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-tertiary);
  font-weight: 500;
  margin: 0;
}

/* Experience Section */
.experience {
  background: var(--bg-tertiary);
}

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

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 90px;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 18px;
  top: 1rem;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--accent-primary);
  transition: all 0.3s ease;
}

.timeline-dot.current {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow:
    0 0 0 3px #28a745,
    0 0 0 6px rgba(40, 167, 69, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow:
      0 0 0 3px #28a745,
      0 0 0 6px rgba(40, 167, 69, 0.3);
  }
  70% {
    box-shadow:
      0 0 0 3px #28a745,
      0 0 0 10px rgba(40, 167, 69, 0.1);
  }
  100% {
    box-shadow:
      0 0 0 3px #28a745,
      0 0 0 6px rgba(40, 167, 69, 0.3);
  }
}

.timeline-content {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.experience-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  margin-top: 0.25rem;
  overflow: hidden;
}

.experience-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.experience-logo:hover img {
  transform: scale(1.05);
}

.fallback-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

.timeline-year {
  position: absolute;
  left: -60px;
  top: 8px;
  background: var(--accent-primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
}

.experience-title-section {
  flex: 1;
}

.experience-title-section h3 {
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.experience-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.experience-company {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.experience-location {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.experience-location::before {
  content: "📍";
  font-size: 0.8rem;
}

.experience-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-timeline-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.experience-duration {
  background: var(--accent-primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.experience-type {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
}

.experience-current {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.4);
  }
  to {
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.8);
  }
}

.experience-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.experience-achievements {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-secondary);
}

.experience-achievements h5 {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.experience-achievements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-achievements li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.experience-achievements li:last-child {
  border-bottom: none;
}

.experience-achievements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.experience-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tech-badge {
  background: var(--border-color);
  color: var(--text-quaternary);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

/* Dark theme specific adjustments */
[data-theme="dark"] .experience-logo {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .fallback-logo {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
}

[data-theme="dark"] .timeline-year {
  background: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

[data-theme="dark"] .experience-type {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
}

/* Education Section */
.education {
  background: var(--bg-secondary);
}

#education-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

#education-container::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  border-radius: 2px;
}

.education-timeline-item {
  position: relative;
  padding-left: 90px;
  margin-bottom: 3rem;
}

.education-timeline-dot {
  position: absolute;
  left: 18px;
  top: 1rem;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--accent-primary);
  transition: all 0.3s ease;
}

.education-timeline-dot.current {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow:
    0 0 0 3px #28a745,
    0 0 0 6px rgba(40, 167, 69, 0.3);
  animation: pulse 2s infinite;
}

.education-timeline-year {
  position: absolute;
  left: -60px;
  top: 8px;
  background: var(--accent-primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
}

.education-timeline-content {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.education-timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
}

.education-timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.education-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.education-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  margin-top: 0.25rem;
  overflow: hidden;
}

.education-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.education-logo:hover img {
  transform: scale(1.05);
}

.education-title-section {
  flex: 1;
}

.education-title-section h3 {
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.education-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.education-institution {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.education-location {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.education-location::before {
  content: "📍";
  font-size: 0.8rem;
}

.education-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-timeline-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.education-duration {
  background: var(--accent-primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.education-grade {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
}

.education-gpa {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
}

.education-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.education-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.highlight-badge {
  background: var(--border-color);
  color: var(--text-quaternary);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

/* Dark theme specific adjustments */
[data-theme="dark"] .education-logo {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .education-timeline-year {
  background: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

[data-theme="dark"] .education-grade {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .education-gpa {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
}

/* Skills Section */
.skills {
  background: var(--bg-tertiary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.skill-category h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-name {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-quaternary);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  border-radius: 4px;
  transition: width 0.8s ease;
  width: 0%;
  transform-origin: left;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.badge {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Projects Section */
.projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  min-height: 200px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.project-logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px var(--shadow-color);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.project-logo img:hover {
  opacity: 0.8;
}

/* No fallback needed - logo will be removed on error */

.project-links {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  z-index: 10;
  align-items: flex-start;
  justify-content: flex-end;
}

.project-title-section {
  margin-bottom: 1rem;
  padding-right: 4rem; /* Add space for the links */
  padding-left: 0; /* Align to left */
  padding-top: 2.5rem; /* Add top padding to avoid overlap with absolute elements */
}

.project-title-section h3 {
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-company {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.company-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.company-type {
  padding: 0.2rem 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: capitalize;
}

/* Company type specific colors */
.company-type:has-text("company") {
  background: #e3f2fd;
  color: #1976d2;
}

.company-type:has-text("freelance") {
  background: #f3e5f5;
  color: #7b1fa2;
}

.company-type:has-text("personal") {
  background: #e8f5e8;
  color: #388e3c;
}

.company-type:has-text("startup") {
  background: #fff3e0;
  color: #f57c00;
}

.project-link {
  color: var(--accent-primary);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.375rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.project-link:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

/* Specific styling for different link types */
.project-link[title*="GitHub"] {
  background: #333;
  color: white;
}

.project-link[title*="GitHub"]:hover {
  background: #555;
  transform: translateY(-2px);
}

.project-link[title*="Google Play"] {
  background: #01875f;
  color: white;
}

.project-link[title*="Google Play"]:hover {
  background: #00a66c;
  transform: translateY(-2px);
}

.project-link[title*="Apple App Store"] {
  background: #007aff;
  color: white;
}

.project-link[title*="Apple App Store"]:hover {
  background: #0056cc;
  transform: translateY(-2px);
}

.project-link[title*="Live Demo"] {
  background: var(--accent-primary);
  color: white;
}

.project-link[title*="Live Demo"]:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

.project-link[title*="Facebook"] {
  background: #1877f2;
  color: white;
}

.project-link[title*="Facebook"]:hover {
  background: #166fe5;
  transform: translateY(-2px);
}

/* Dark mode adjustments for project links */
[data-theme="dark"] .project-link[title*="GitHub"] {
  background: #24292e;
}

[data-theme="dark"] .project-link[title*="GitHub"]:hover {
  background: #444;
}

/* Project link tooltip enhancement */
.project-link {
  position: relative;
}

.project-link::before {
  content: attr(title);
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  margin-top: 0.25rem;
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  background: var(--border-color);
  color: var(--text-quaternary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

/* Reach Me Section - Full Screen */
.reach-me {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--bg-tertiary) 0%,
    var(--bg-primary) 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.reach-me::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  pointer-events: none;
}

.reach-me::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(102, 126, 234, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Decorative elements */
.reach-me-content::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--accent-primary), transparent);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.reach-me-content::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--accent-secondary), transparent);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite reverse;
}

/* Animated background particles */
@keyframes particle1 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.1;
  }
}

@keyframes particle2 {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: translateX(20px) rotate(90deg);
    opacity: 0.4;
  }
}

.reach-me .container {
  max-width: 1400px;
  width: 100%;
  padding: 2rem;
}

.reach-me-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0.5rem 0;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.reach-me .section-title {
  font-size: 2.5rem;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  color: var(--text-primary);
}

.reach-me .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  margin: 1rem auto 0;
  border-radius: 2px;
}

.reach-me-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: 500;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.8;
}

.reach-me-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.reach-me-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: none;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  background: var(--bg-secondary);
  padding: 0.75rem;
  min-height: 60px;
  border: 2px solid var(--border-color);
}

.reach-me-link:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-primary);
}

.reach-me-link:active {
  transform: translateY(-4px) scale(1.02);
}

.reach-me-badge {
  display: block;
  height: auto;
  width: auto;
  max-width: 150px;
  max-height: 40px;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: brightness(1) contrast(1);
}

.reach-me-link:hover .reach-me-badge {
  filter: brightness(1.1) contrast(1.1);
  transform: scale(1.1);
}

/* Dark theme adjustments */
[data-theme="dark"] .reach-me-link {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .reach-me-link:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .reach-me-badge {
  filter: brightness(0.9) contrast(1.1);
}

[data-theme="dark"] .reach-me-link:hover .reach-me-badge {
  filter: brightness(1) contrast(1.2);
}

/* Responsive adjustments for Reach Me */
@media (max-width: 768px) {
  .reach-me .section-title {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .reach-me-description {
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 500px;
  }

  .reach-me-links {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 100%;
  }

  .reach-me-link {
    min-height: 55px;
    padding: 0.5rem;
  }

  .reach-me-badge {
    max-width: 140px;
    max-height: 35px;
  }

  .reach-me-content {
    padding: 1rem 0;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .reach-me .section-title {
    font-size: 1.8rem;
    margin-bottom: 0;
  }

  .reach-me-description {
    font-size: 0.95rem;
    margin-bottom: 0;
    max-width: 100%;
  }

  .reach-me-links {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 0 10px;
  }

  .reach-me-link {
    min-height: 50px;
    padding: 0.5rem;
  }

  .reach-me-badge {
    max-width: 120px;
    max-height: 32px;
  }

  .reach-me-link:hover {
    transform: translateY(-4px) scale(1.02);
  }

  .reach-me-content {
    padding: 1rem 0;
    gap: 1rem;
    max-width: 100%;
  }

  .reach-me .container {
    padding: 1rem;
  }
}

/* Animation for reach me badges */
.reach-me-badge {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reach-me-section-visible .reach-me-badge {
  opacity: 1;
  transform: translateY(0);
}

.reach-me-link:nth-child(1) .reach-me-badge {
  transition-delay: 0.1s;
}
.reach-me-link:nth-child(2) .reach-me-badge {
  transition-delay: 0.2s;
}
.reach-me-link:nth-child(3) .reach-me-badge {
  transition-delay: 0.3s;
}
.reach-me-link:nth-child(4) .reach-me-badge {
  transition-delay: 0.4s;
}
.reach-me-link:nth-child(5) .reach-me-badge {
  transition-delay: 0.5s;
}
.reach-me-link:nth-child(6) .reach-me-badge {
  transition-delay: 0.6s;
}
.reach-me-link:nth-child(7) .reach-me-badge {
  transition-delay: 0.7s;
}
.reach-me-link:nth-child(8) .reach-me-badge {
  transition-delay: 0.8s;
}
.reach-me-link:nth-child(9) .reach-me-badge {
  transition-delay: 0.9s;
}

/* Smooth animation keyframes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-methods {
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--accent-primary);
  width: 30px;
}

.contact-method h4 {
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.contact-method p,
.contact-method a {
  color: var(--text-tertiary);
  margin: 0;
  text-decoration: none;
}

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

.contact-form {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: var(--input-bg);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

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

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--bg-primary);
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  margin: 0;
  color: var(--text-tertiary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  background: linear-gradient(
    135deg,
    var(--accent-secondary) 0%,
    var(--accent-primary) 100%
  );
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: scale(1.2);
}

/* Dark theme support for back to top */
[data-theme="dark"] .back-to-top {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
  background: linear-gradient(
    135deg,
    var(--accent-secondary) 0%,
    var(--accent-primary) 100%
  );
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }

  .theme-toggle {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow-color);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    margin: 0.5rem 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem !important;
  }

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

  .hero-btn-primary,
  .hero-btn-secondary,
  .hero-btn-outline {
    min-width: 180px;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .education-timeline-item {
    padding-left: 70px;
  }

  #education-container::before {
    left: 20px;
  }

  .education-timeline-dot {
    left: 8px;
    width: 20px;
    height: 20px;
  }

  .education-timeline-year {
    left: -50px;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .education-timeline-content {
    padding: 2rem;
  }

  .education-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .education-logo {
    margin-top: 0;
  }

  .education-meta {
    align-items: center;
    text-align: center;
  }

  .education-timeline-info {
    justify-content: center;
  }

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

  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .timeline-item {
    padding-left: 70px;
  }

  .experience-timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 8px;
    width: 20px;
    height: 20px;
  }

  .timeline-year {
    left: -50px;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .timeline-content {
    padding: 2rem;
  }

  .experience-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .experience-logo {
    margin-top: 0;
  }

  .experience-meta {
    align-items: center;
    text-align: center;
  }

  .experience-timeline-info {
    justify-content: center;
  }

  .experience-achievements {
    padding: 1.25rem;
  }

  .project-title-section {
    padding-right: 3.5rem; /* Reduce right padding on tablet */
    padding-left: 0; /* Align to left on tablet */
    padding-top: 2.25rem; /* Reduce top padding on tablet */
  }

  .project-logo {
    top: 0.75rem;
    left: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 4px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem !important;
  }

  .hero-buttons {
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .hero-btn-primary,
  .hero-btn-secondary,
  .hero-btn-outline {
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-title-section {
    padding-right: 2.5rem; /* Further reduce right padding for very small screens */
    padding-left: 0; /* Align to left on mobile */
    padding-top: 2rem; /* Reduce top padding for very small screens */
  }

  .project-title-section h3 {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .project-links {
    flex-direction: column;
    gap: 0.2rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  .project-link {
    min-width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .project-logo {
    top: 0.5rem;
    left: 0.5rem;
    width: 26px;
    height: 26px;
    border-radius: 4px;
  }

  .project-type {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .education-timeline-item {
    padding-left: 50px;
  }

  #education-container::before {
    left: 15px;
  }

  .education-timeline-dot {
    left: 6px;
    width: 18px;
    height: 18px;
  }

  .education-timeline-year {
    left: -40px;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
  }

  .education-timeline-content {
    padding: 1.5rem;
  }

  .education-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .education-title-section h3 {
    font-size: 1.3rem;
  }

  .education-institution {
    font-size: 1rem;
  }

  .education-timeline-info {
    gap: 0.75rem;
  }

  .education-duration,
  .education-grade,
  .education-gpa {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
  }

  .highlight-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .experience-timeline::before {
    left: 15px;
  }

  .timeline-dot {
    left: 6px;
    width: 18px;
    height: 18px;
  }

  .timeline-year {
    left: -40px;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .experience-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .experience-title-section h3 {
    font-size: 1.3rem;
  }

  .experience-company {
    font-size: 1rem;
  }

  .experience-timeline-info {
    gap: 0.75rem;
  }

  .experience-duration,
  .experience-type,
  .experience-current {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .experience-achievements {
    padding: 1rem;
  }

  .experience-achievements h5 {
    font-size: 0.9rem;
  }

  .tech-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-45deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-in-scale {
  animation: fadeInScale 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-in-down {
  animation: slideInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.float {
  animation: float 3s ease-in-out infinite;
}

.rotate-in {
  animation: rotateIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Element-specific animations */
.hero-content {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.section-title {
  animation: slideInDown 0.8s ease-out both;
}

.stat-item {
  animation: bounceIn 0.8s ease-out both;
}

.timeline-item {
  animation: fadeInLeft 0.8s ease-out both;
}

.education-timeline-item {
  animation: fadeInRight 0.8s ease-out both;
}

.project-card {
  animation: fadeInScale 0.8s ease-out both;
}

.skill-category {
  animation: fadeInUp 0.8s ease-out both;
}

.contact-method {
  animation: fadeInLeft 0.8s ease-out both;
}

.reach-me-badge {
  animation: fadeInUp 0.6s ease-out both;
}

/* Shimmer effect for loading states */
.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  background-size: 200px 100%;
  animation: shimmer 2s infinite;
}

/* Stagger animations */
.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}
.stagger-4 {
  animation-delay: 0.4s;
}
.stagger-5 {
  animation-delay: 0.5s;
}
.stagger-6 {
  animation-delay: 0.6s;
}
.stagger-7 {
  animation-delay: 0.7s;
}
.stagger-8 {
  animation-delay: 0.8s;
}
.stagger-9 {
  animation-delay: 0.9s;
}
.stagger-10 {
  animation-delay: 1s;
}

/* Hover animations */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-scale {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-rotate {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

/* Page load animations */
.page-loaded .hero-content {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.page-loaded .navbar {
  animation: slideInDown 0.8s ease-out both;
}

/* Continuous animations */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.heartbeat {
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.1);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(1);
  }
}

/* Ripple effect */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Magnetic effect */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tilt effect */
.tilt {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animations */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Scroll animations */
.scroll-animate {
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate {
  transform: translateY(0);
  opacity: 1;
}

/* Performance optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

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

  .float,
  .pulse,
  .heartbeat,
  .shimmer {
    animation: none !important;
  }
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

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

/* Selection */
::selection {
  background: var(--accent-primary);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Active Nav Link */
.nav-link.active {
  color: var(--accent-primary) !important;
  font-weight: 600;
}

/* Theme Transition */
body * {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
