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

/* Variables */
:root {
  --primary-color: #1a1a2e; /* Dark Blue/Navy */
  --secondary-color: #f8f9fa; /* Light Grey */
  --accent-color: #4361ee; /* Vibrant Blue */
  --accent-color-2: #f72585; /* Vibrant Pink */
  --text-color: #2d2d39; /* Dark Grey Text */
  --light-text-color: #ffffff;
  --body-bg: #f8f9fa; /* Very Light Grey Background */
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --header-height: 70px;
  --font-family: "Poppins", sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-blur: 15px;
  --gradient: linear-gradient(135deg, #4361ee 0%, #f72585 100%);
  --gradient-hover: linear-gradient(135deg, #f72585 0%, #4361ee 100%);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--body-bg);
  padding-top: var(--header-height); /* Adjust padding for fixed header */
  overflow-x: hidden;
  background-image: radial-gradient(
      circle at 25% 10%,
      rgba(67, 97, 238, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(247, 37, 133, 0.05) 0%,
      transparent 40%
    );
}

.container {
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 30px;
}

/* Header & Navigation */
header {
  background: rgba(26, 26, 46, 0.95);
  color: var(--light-text-color);
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 30px;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-right: 40px;
  transition: var(--transition);
  position: relative;
}

header .logo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent-color-2);
  border-radius: 10px;
  transition: var(--transition);
}

header .logo:hover::after {
  width: 100%;
  background: var(--gradient);
}

header ul {
  list-style: none;
  display: flex;
}

header li {
  margin-left: 30px;
}

header a {
  color: var(--light-text-color);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.5px;
}

header a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient);
  transition: var(--transition);
  border-radius: 10px;
}

header a:hover,
header a.active {
  color: var(--accent-color);
}

header a:hover::after,
header a.active::after {
  width: 100%;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--light-text-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Main Content Sections */
main {
  padding: 0;
}

section {
  padding: 6rem 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

section:last-of-type {
  border-bottom: none;
}

/* Alternate background for visual separation - subtle */
section:nth-child(even) {
  background: var(--card-bg);
}
section:nth-child(odd) {
  background: var(--body-bg);
}

/* Section decorative elements */
section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.05),
    rgba(247, 37, 133, 0.05)
  );
  filter: blur(50px);
  z-index: 0;
}

section:nth-child(odd)::before {
  top: -100px;
  left: -100px;
}

section:nth-child(even)::before {
  bottom: -100px;
  right: -100px;
}

.section-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

section h1,
section h2 {
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

section h2::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  top: -10px;
  left: 0;
  background: var(--accent-color-2);
  border-radius: 10px;
}

section h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  bottom: -10px;
  right: 0;
  background: var(--accent-color);
  border-radius: 10px;
}

/* Specific Section Styling */
#home {
  text-align: center;
  padding: 0;
  background: var(--primary-color);
  color: var(--light-text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(67, 97, 238, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(247, 37, 133, 0.15) 0%,
      transparent 50%
    );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding: 0 30px;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.avatar-container {
  position: relative;
  margin-right: 1rem;
  display: inline-block;
}

#home h1 {
  font-size: 3.5rem;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--accent-color);
  background: var(--card-bg);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.avatar-container::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gradient);
  top: -5px;
  left: -5px;
  z-index: 1;
  animation: pulse 3s infinite;
}

.avatar-container::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  top: -12px;
  left: -12px;
  animation: spin 20s linear infinite;
}

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

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

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

.cta-btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-text-color);
  background: var(--gradient);
  border: none;
  border-radius: 50px;
  box-shadow: var(--shadow-strong);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#home h1 {
  font-size: 7.5rem;
  margin-bottom: 0;
  color: var(--light-text-color);
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

#home h1::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.8;
  transform: translateY(5px);
}

#home p {
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.typed-text {
  color: var(--accent-color);
  font-weight: 600;
  position: relative;
}

.typed-text::after {
  content: "|";
  position: absolute;
  right: -8px;
  animation: blink 0.8s infinite;
}

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

/* Skills Section */
#skills {
  background: var(--card-bg);
}

/* Skills Tabs Navigation */
.skills-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding-bottom: 5px; /* Add some padding to avoid content being cut off */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.skills-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  white-space: nowrap; /* Prevent text wrapping */
  flex: 0 0 auto; /* Don't allow buttons to shrink or grow */
  padding: 0.75rem 1.5rem;
  border: none;
  background: var(--bg-color-secondary);
  color: var(--text-color);
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.tab-btn {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.tab-btn:hover::before,
.tab-btn.active::before {
  width: 100%;
}

.tab-btn:hover,
.tab-btn.active {
  color: white;
  border-color: transparent;
}

/* Skills Content */
.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  min-height: 400px;
}

.skills-tab-content {
  display: none;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
  position: absolute;
  width: 100%;
  left: 0;
}

.skills-tab-content.active {
  display: block;
  opacity: 1;
  position: relative;
}

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

/* Skill Cards */
.skill-card {
  background: var(--body-bg);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 100px;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

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

.skill-card:hover::before {
  height: 100%;
}

.skill-icon {
  font-size: 2.8rem;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 70px;
  padding: 10px;
}

.skill-info {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 70px;
}

.skill-info h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

/* Skill level styles removed */

/* Soft Skills */
.soft-skill {
  padding: 30px;
  gap: 25px;
  min-height: 120px;
}

.soft-skill .skill-icon {
  font-size: 2.8rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  min-width: 70px;
  height: 70px;
  padding: 10px;
  margin-top: 5px;
}

.soft-skill .skill-info {
  flex-direction: column;
  align-items: flex-start;
  padding-top: 5px;
}

.soft-skill .skill-info h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.soft-skill .skill-info p {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* Animation for tab content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

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

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  top: 30px;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

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

.timeline-content {
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
}

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

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

.timeline-date {
  display: inline-block;
  padding: 5px 15px;
  background: var(--accent-color);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.timeline-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.timeline-content li {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

timeline-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Projects Section */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

#projects article {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

#projects article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  border-radius: 4px 0 0 4px;
}

#projects article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

#projects h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.3rem;
}

#projects p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Show more/less functionality */
.truncated-content {
  position: relative;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.truncated-content.expanded {
  max-height: 2000px; /* Adjust based on your content */
}

.truncated-content ul {
  margin-top: 1rem;
  list-style: disc;
  padding-left: 2rem;
}

.truncated-content li {
  margin-bottom: 0.5rem;
}

.show-more-btn {
  display: block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.show-more-btn:hover {
  background: #0056b3;
}

.truncated-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--card-bg) 90%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.truncated-content.expanded::after {
  opacity: 0;
}

.show-more-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 15px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

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

#projects p:last-child {
  margin-bottom: 0;
}

#projects a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

#projects a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Contact Section */
#contact {
  background: var(--primary-color);
  color: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(67, 97, 238, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(247, 37, 133, 0.1) 0%,
      transparent 50%
    );
  z-index: 0;
}

.contact-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  padding: 30px;
}

#contact h2 {
  color: var(--light-text-color);
  text-align: left;
  transform: none;
  left: 0;
}

#contact h2::before,
#contact h2::after {
  background: var(--accent-color-2);
}

#contact p {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-links {
  margin-top: 30px;
}

#contact a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
  margin: 0 1rem 1rem 0;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link .icon {
  width: 45px;
  height: 45px;
  transition: var(--transition);
}

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

#contact a:hover {
  color: var(--accent-color-2);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 0;
  background: rgba(20, 20, 35, 0.95);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  opacity: 0.5;
}

/* Responsive Design */
/* Fade-in animation for sections */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

section {
  animation: fadeIn 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }

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

  .timeline-item::after {
    left: 20px;
  }

  .timeline-item:nth-child(odd)::after {
    right: auto;
    left: 20px;
  }

  .skills-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  body {
    padding-top: var(--header-height);
  }

  section {
    padding: 4rem 0;
  }

  #home h1 {
    font-size: 3rem;
  }

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

  /* Mobile menu */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
  }

  header {
    height: var(--header-height);
    padding: 0;
  }

  header nav {
    padding: 0 20px;
  }

  header ul {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 250px;
    height: calc(100vh - var(--header-height));
    background: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  header ul.active {
    right: 0;
  }

  header li {
    margin-bottom: 15px;
  }

  header a {
    display: block;
    width: 100%;
  }

  section {
    padding: 4rem 0;
  }

  section h1,
  section h2 {
    font-size: 2rem;
  }

  #home {
    min-height: 80vh;
  }

  #home h1 {
    font-size: 3rem;
  }

  #home p {
    font-size: 1.1rem;
    padding: 0 20px;
  }

  .avatar {
    width: 130px;
    height: 130px;
  }

  .avatar-container::before {
    width: 140px;
    height: 140px;
  }

  .avatar-container::after {
    width: 150px;
    height: 150px;
  }

  .card-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .timeline-content {
    padding: 20px;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .timeline::before {
    left: 5px;
  }

  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: -34px;
  }

  .skill-card {
    padding: 15px 30px;
  }

  .hero-header {
    flex-direction: column;
  }

  section h1,
  section h2 {
    font-size: 1.8rem;
  }

  #home h1 {
    font-size: 2.2rem;
  }

  #home p {
    font-size: 1rem;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }

  .avatar-container {
    margin-right: 0;
  }

  .avatar-container::before {
    width: 120px;
    height: 120px;
  }

  .avatar-container::after {
    width: 130px;
    height: 130px;
  }

  .timeline {
    padding-right: 0;
  }

  .timeline-item {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
  }

  .timeline-content {
    padding: 15px;
  }

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

  .card-container {
    padding: 0;
  }
}

/* Consolidate repeated transitions */
.button:hover,
.cta-btn:hover,
.social-link:hover {
  transform: translateY(-5px);
}

/* Remove duplicate shadow definitions */
.shadow {
  box-shadow: var(--shadow-strong);
}

/* Remove unused animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
