/* Base Styles */
:root {
  /* Dark Theme Colors */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #252525;
  --text-primary: #f5f5f5;
  --text-secondary: #b3b3b3;
  --accent-red: #e63946;
  --accent-yellow: #ffd166;
  --accent-green: #06d6a0;
  --accent-orange: #ff9f1c;
  --accent-blue: #118ab2;
  --gradient-primary: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  --gradient-secondary: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --card-border-radius: 12px;
}

/* Light Theme Colors - for future toggle functionality */
.light-mode {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9e9e9;
  --text-primary: #746161;
  --text-secondary: #555555;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px; /* For fixed header */
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: var(--transition);
}

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

a {
  text-decoration: none;
  color: var(--accent-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-red);
}

ul {
  list-style: none;
}

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

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--bg-tertiary);
  border-top: 5px solid var(--accent-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

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

/* Section Styling */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-decoration {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.section-decoration span {
  display: inline-block;
  width: 30px;
  height: 4px;
  background-color: var(--accent-red);
  border-radius: 2px;
}

.section-decoration span:nth-child(2) {
  width: 60px;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-btn {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}

.primary-btn:hover::before {
  opacity: 1;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
}

.secondary-btn {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--bg-tertiary);
}

.secondary-btn:hover {
  background-color: transparent;
  color: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-3px);
}

.outline-btn {
  background-color: transparent;
  color: var (--text-primary);
  border: 2px solid var(--accent-blue);
}

.outline-btn:hover {
  background-color: var(--accent-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(17, 138, 178, 0.3);
}

.small-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Added for proper alignment */
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-text .accent {
  color: var(--accent-red);
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.theme-toggle {
  position: fixed; /* Ensure consistent placement */
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--accent-yellow);
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--accent-yellow);
  color: var(--bg-primary);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 100px;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%, rgba(230, 57, 70, 0.1) 0%, transparent 30%),
              radial-gradient(circle at 10% 90%, rgba(17, 138, 178, 0.1) 0%, transparent 30%);
  z-index: 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
}

/* Glitch effect */
.glitch {
  position: relative;
  color: var(--text-primary);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip: rect(0, 0, 0, 0);
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--accent-red);
  animation: glitch-animation-1 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 1px 0 var(--accent-blue);
  animation: glitch-animation-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-animation-1 {
  0% {
      clip: rect(36px, 9999px, 9px, 0);
  }
  5% {
      clip: rect(85px, 9999px, 66px, 0);
  }
  10% {
      clip: rect(43px, 9999px, 98px, 0);
  }
  15% {
      clip: rect(59px, 9999px, 26px, 0);
  }
  20% {
      clip: rect(57px, 9999px, 67px, 0);
  }
  25% {
      clip: rect(81px, 9999px, 4px, 0);
  }
  30% {
      clip: rect(35px, 9999px, 4px, 0);
  }
  35% {
      clip: rect(31px, 9999px, 92px, 0);
  }
  40% {
      clip: rect(49px, 9999px, 30px, 0);
  }
  45% {
      clip: rect(88px, 9999px, 53px, 0);
  }
  50% {
      clip: rect(56px, 9999px, 79px, 0);
  }
  55% {
      clip: rect(23px, 9999px, 55px, 0);
  }
  60% {
      clip: rect(79px, 9999px, 26px, 0);
  }
  65% {
      clip: rect(57px, 9999px, 69px, 0);
  }
  70% {
      clip: rect(65px, 9999px, 86px, 0);
  }
  75% {
      clip: rect(73px, 9999px, 66px, 0);
  }
  80% {
      clip: rect(32px, 9999px, 15px, 0);
  }
  85% {
      clip: rect(62px, 9999px, 53px, 0);
  }
  90% {
      clip: rect(40px, 9999px, 60px, 0);
  }
  95% {
      clip: rect(60px, 9999px, 33px, 0);
  }
  100% {
      clip: rect(98px, 9999px, 85px, 0);
  }
}

@keyframes glitch-animation-2 {
  0% {
      clip: rect(96px, 9999px, 11px, 0);
  }
  5% {
      clip: rect(44px, 9999px, 33px, 0);
  }
  10% {
      clip: rect(4px, 9999px, 18px, 0);
  }
  15% {
      clip: rect(87px, 9999px, 69px, 0);
  }
  20% {
      clip: rect(24px, 9999px, 23px, 0);
  }
  25% {
      clip: rect(90px, 9999px, 38px, 0);
  }
  30% {
      clip: rect(26px, 9999px, 72px, 0);
  }
  35% {
      clip: rect(46px, 9999px, 17px, 0);
  }
  40% {
      clip: rect(20px, 9999px, 99px, 0);
  }
  45% {
      clip: rect(3px, 9999px, 28px, 0);
  }
  50% {
      clip: rect(65px, 9999px, 12px, 0);
  }
  55% {
      clip: rect(54px, 9999px, 84px, 0);
  }
  60% {
      clip: rect(57px, 9999px, 35px, 0);
  }
  65% {
      clip: rect(23px, 9999px, 60px, 0);
  }
  70% {
      clip: rect(10px, 9999px, 75px, 0);
  }
  75% {
      clip: rect(90px, 9999px, 73px, 0);
  }
  80% {
      clip: rect(18px, 9999px, 35px, 0);
  }
  85% {
      clip: rect(97px, 9999px, 4px, 0);
  }
  90% {
      clip: rect(38px, 9999px, 35px, 0);
  }
  95% {
      clip: rect(82px, 9999px, 96px, 0);
  }
  100% {
      clip: rect(83px, 9999px, 95px, 0);
  }
}

.hero-description {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.typed-text {
  position: relative;
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-red);
  animation: blink 1s infinite;
}

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

.hero-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

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

.social-icon:nth-child(1):hover {
  background-color: #0077b5;
  color: white;
}

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

.social-icon:nth-child(3):hover {
  background-color: var(--accent-orange);
  color: white;
}

.social-icon:nth-child(4):hover {
  background-color: #00b760;
  color: white;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
}

.profile-placeholder {
  width: 300px;
  height: 300px;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
  z-index: 2;
}

.profile-placeholder i {
  font-size: 100px;
  color: var(--text-secondary);
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.shape-1 {
  width: 80px;
  height: 80px;
  background-color: var(--accent-red);
  top: -20px;
  right: 20px;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 60px;
  height: 60px;
  background-color: var(--accent-blue);
  bottom: 20px;
  left: -10px;
  animation: float 8s ease-in-out infinite;
}

.shape-3 {
  width: 40px;
  height: 40px;
  background-color: var(--accent-yellow);
  bottom: -10px;
  right: 80px;
  animation: float 7s ease-in-out infinite;
}

.shape-4 {
  width: 30px;
  height: 30px;
  background-color: var(--accent-green);
  top: 50px;
  left: 30px;
  animation: float 5s ease-in-out infinite;
}

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

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}

.scroll-down a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.scroll-down a:hover {
  color: var(--accent-red);
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  margin: 0 auto 10px;
  position: relative;
}

.wheel {
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
  }
  100% {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
  }
}

.scroll-text {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.arrow {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

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

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

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.about-image .profile-placeholder {
  border: 5px solid var(--accent-red);
}

.experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--gradient-primary);
  color: white;
  padding: 15px;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--box-shadow);
  z-index: 3;
}

.exp-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.exp-text {
  font-size: 0.7rem;
  line-height: 1;
}

.about-text {
  flex: 2;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.info-value {
  color: var(--text-secondary);
}

.about-cta {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* About Content Card */
.about-content-card {
  background-color: var(--bg-tertiary);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  margin-bottom: 50px;
}

.about-content-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  color: white;
  font-size: 24px;
  box-shadow: var(--box-shadow);
}

.category-header h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

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

.skill-card {
  background-color: var(--bg-tertiary);
  padding: 25px;
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skill-card:hover::before {
  width: 100%;
  opacity: 0.1;
}

.skill-icon {
  width: 50px;
  height: 50px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  color: var(--accent-red);
  font-size: 20px;
  transition: var(--transition);
}

.skill-card:hover .skill-icon {
  background-color: var(--accent-red);
  color: white;
  transform: rotate(10deg);
}

.skill-card h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.skill-level {
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
  /* Ensure it fills the line for 100% */
  width: 0; /* Default width */
}

.skill-card:hover .skill-progress {
  width: 100%; /* Fills the progress bar on hover */
}

.skill-percent {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.skills-category-card {
  background-color: var(--bg-tertiary);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  margin-bottom: 50px;
}

.skills-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skills-category-card .category-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.skills-category-card .category-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  color: white;
  font-size: 24px;
  box-shadow: var(--box-shadow);
}

.skills-category-card .category-header h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

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

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

.project-card {
  background-color: var(--bg-tertiary);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img {
  height: 200px;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  font-size: 50px;
  transition: var(--transition);
}

.project-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.project-card:hover .project-img-overlay {
  opacity: 1;
}

.project-card:hover .project-img-placeholder {
  transform: scale(1.1);
}

.project-actions {
  display: flex;
  gap: 20px;
}

.project-actions a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  transform: translateY(20px);
  opacity: 0;
}

.project-card:hover .project-actions a {
  transform: translateY(0);
  opacity: 1;
}

.project-actions a:hover {
  background-color: var(--accent-red);
  color: white;
}

.project-actions a:nth-child(1) {
  transition-delay: 0.1s;
}

.project-actions a:nth-child(2) {
  transition-delay: 0.2s;
}

.project-content {
  padding: 25px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tags span {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.project-tags span:hover {
  background-color: var(--accent-red);
  color: white;
  transform: translateY(-2px);
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.project-cta {
  display: flex;
  gap: 10px;
}

/* Projects Category Card */
.projects-category-card {
  background-color: var(--bg-tertiary);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  margin-bottom: 50px;
}

.projects-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Education & Experience Section */
.education-experience {
  background-color: var(--bg-primary);
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.timeline-tab {
  padding: 12px 30px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.timeline-tab:first-child {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.timeline-tab:last-child {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.timeline-tab.active {
  background-color: var(--accent-red);
  color: white;
}

.timeline {
  position: relative;
  display: none;
}

.timeline.active {
  display: block;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--bg-tertiary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  left: 0;
  margin-bottom: 50px;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--accent-red);
  border-radius: 50%;
  top: 15px;
  right: -10px;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-date {
  position: absolute;
  top: 15px;
  right: -150px;
  color: var(--accent-red);
  font-weight: 600;
}

.timeline-item:nth-child(even) .timeline-date {
  left: -150px;
  right: auto;
  text-align: right;
}

.timeline-content {
  padding: 25px;
  background-color: var(--bg-tertiary);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: var(--accent-blue);
  margin-bottom: 15px;
  font-weight: 500;
}

.timeline-content p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.timeline-content ul {
  margin-top: 15px;
  padding-left: 20px;
}

.timeline-content ul li {
  color: var(--text-secondary);
  margin-bottom: 5px;
  position: relative;
}

.timeline-content ul li::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  left: -15px;
  top: 8px;
}

/* Timeline Item Card */
.timeline-item-card {
  background-color: var(--bg-tertiary);
  padding: 25px;
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  margin-bottom: 30px;
}

.timeline-item-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.stats-section {
  background-color: var(--bg-secondary);
  padding: 80px 0;
}

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

.stat-item {
  background-color: var(--bg-tertiary);
  padding: 30px;
  border-radius: var(--card-border-radius);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 24px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.stat-title {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Contact CTA Section */
.contact-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.8);
}

.contact-cta .primary-btn {
  background-color: white;
  color: var(--accent-red);
}

.contact-cta .primary-btn:hover {
  background-color: var(--bg-primary);
  color: var(--accent-red);
}

/* Footer */
.footer-top {
  background-color: var(--bg-tertiary);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-logo span {
  color: var(--accent-red);
}

.footer-logo p {
  color: var(--text-secondary);
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after, .footer-social h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-red);
}

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

.footer-links ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent-red);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-contact p a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-contact p a:hover {
  color: var(--accent-red);
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--accent-red);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--accent-red);
  color: white;
  transform: translateY(-3px);
}

.footer-social .social-icons p {
  margin: 10px 0;
}

.footer-social .social-icons p a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-social .social-icons p a:hover {
  color: var(--accent-red);
}

.footer-social .social-icons p a i {
  font-size: 1.2rem;
}

.footer-bottom {
  background-color: var(--bg-primary);
  padding: 20px 0;
  text-align: center;
}

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

.footer-bottom i {
  color: var (--accent-red);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-red);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-blue);
  transform: translateY(-5px);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  html {
      font-size: 15px;
  }
  
  .hero .container {
      flex-direction: column;
      text-align: center;
  }

  .hero-content {
      margin-bottom: 50px;
  }

  .hero-cta, .hero-social {
      justify-content: center;
  }
  
  .about-content {
      flex-direction: column;
      text-align: center;
  }
  
  .about-image {
      margin-bottom: 30px;
  }
  
  .about-cta {
      justify-content: center;
  }
  
  .category-header {
      justify-content: center;
  }
  
  .timeline::before {
      left: 31px;
  }
  
  .timeline-item {
      width: 100%;
      padding-left: 70px;
      padding-right: 25px;
      left: 0 !important;
  }
  
  .timeline-dot {
      left: 20px !important;
      right: auto !important;
  }
  
  .timeline-date {
      position: relative;
      top: auto;
      left: auto !important;
      right: auto !important;
      text-align: left !important;
      margin-bottom: 10px;
  }
}

@media screen and (max-width: 768px) {
  html {
      font-size: 14px;
  }
  
  .nav-links {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background-color: var(--bg-primary);
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
      padding: 20px 0;
      z-index: 999;
  }

  .nav-links.active {
      left: 0;
  }

  .nav-links li {
      margin: 15px 0;
  }
  
  .theme-toggle {
      margin-left: 0;
      margin-right: 20px;
  }

  .theme-toggle {
    top: 10px; /* Adjust spacing for smaller screens */
    right: 10px; /* Adjust spacing for smaller screens */
  }

  .hamburger {
      display: block;
  }

  .hamburger.active .bar:nth-child(2) {
      opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
  }
  
  .projects-grid {
      grid-template-columns: 1fr;
  }
  
  .stats-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .hero-title {
      font-size: 3rem;
  }
  
  .hero-description {
      font-size: 1.5rem;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .skills-grid, .stats-grid {
      grid-template-columns: 1fr;
  }
  
  .hero-cta {
      flex-direction: column;
  }
  
  .hero-cta .btn {
      width: 100%;
  }
  
  .about-info {
      grid-template-columns: 1fr;
  }
  
  .timeline-tabs {
      flex-direction: column;
  }
  
  .timeline-tab {
      border-radius: var(--border-radius) !important;
      margin-bottom: 10px;
  }
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-red);
  margin-right: 10px;
}

.contact-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-form {
  flex: 1;
  max-width: 500px;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--text-secondary);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

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

.contact-form button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background-color: var(--accent-red);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  background-color: var(--accent-blue);
  color: white;
}