:root {
  /* Darker Polar Night grades matching the editor panel in the user's image */
  --bg-primary: #1d212a;       /* Darkest background (editor background) */
  --bg-secondary: #242933;     /* Dark background (editor sidebar / cards) */
  --bg-tertiary: #2e3440;      /* Slightly lighter Slate (selected items / buttons) */
  --bg-elevated: #3b4252;      /* Hover states / secondary buttons */
  
  /* Snow Storm (Light text) */
  --text-primary: #eceff4;     /* Crisp white */
  --text-secondary: #d8dee9;   /* Off-white */
  --text-muted: #4c566a;       /* Muted grey */
  
  /* Frost (Accents) */
  --accent: #88c0d0;           /* Primary ice-blue accent */
  --accent-hover: #8fbcbb;     /* Teal hover accent */
  --accent-rgb: 136, 192, 208;
  
  /* Aurora Colors (from the VS Code color list in the image) */
  --nord-red: #bf616a;         /* Color 1 */
  --nord-orange: #d08770;      /* Color 2 */
  --nord-yellow: #ebcb8b;      /* Color 2 alternate */
  --nord-green: #a3be8c;       /* Color 3 */
  --nord-purple: #b48ead;      /* Color 4 */
  --nord-blue: #81a1c1;        /* Color 6 */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(46, 52, 64, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(46, 52, 64, 0.98);
  box-shadow: 0 2px 20px rgba(var(--accent-rgb), 0.1);
}

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

.nav-logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--nord-orange);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--nord-yellow);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--nord-yellow);
  transition: width 0.3s ease;
}

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

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-secondary);
  margin: 3px 0;
  transition: 0.3s;
}

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

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2388c0d0" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeInUp 1s ease;
}

.greeting {
  display: block;
  font-size: 1.2rem;
  color: var(--nord-yellow);
  margin-bottom: 0.5rem;
}

.name {
  display: block;
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--nord-yellow);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(235, 203, 139, 0.3);
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.hero-image {
  text-align: center;
  animation: fadeInRight 1s ease;
}

.profile-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.3);
  background: var(--accent);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

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

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

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

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

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

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-text ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.about-text li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.info-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.info-card h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.education-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.institution {
  color: var(--nord-yellow);
  font-weight: 600;
}

.duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Skills Section */
.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: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.skill-category h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

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

.skill-tag {
  background: var(--nord-yellow);
  color: #2e3440;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

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

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

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-date {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 2rem;
}

.timeline-content {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  flex: 1;
  border-left: 4px solid var(--accent);
}

.timeline-content h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--nord-yellow);
  margin-bottom: 1rem;
}

.timeline-content ul {
  padding-left: 1.5rem;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Services Section */
.usp-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--bg-primary);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 3rem;
}

.usp-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.service-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* .service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.2);
} */

.service-icon {
  font-size: 3rem;
  color: var(--nord-yellow);
  margin-bottom: 1rem;
}

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

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

.project-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 316px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.2);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

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

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

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  height: 60px;
  overflow: hidden;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  height: 205px;
  overflow-y: auto;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  height: 185px;
  overflow-y: auto;
  align-content: flex-start;
}

.tech-tag {
  background: var(--nord-yellow);
  color: #2e3440;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  transform: translateY(-1px);
}

.project-links {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.link-separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.5rem;
  font-weight: 400;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
}

.project-link:hover {
  color: var(--nord-yellow);
}

.project-link i {
  margin-right: 0.5rem;
}

/* Custom scrollbars for card scrollable regions */
.project-content p::-webkit-scrollbar,
.project-tech::-webkit-scrollbar,
.achievement-content p::-webkit-scrollbar {
  width: 4px;
}

.project-content p::-webkit-scrollbar-track,
.project-tech::-webkit-scrollbar-track,
.achievement-content p::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.project-content p::-webkit-scrollbar-thumb,
.project-tech::-webkit-scrollbar-thumb,
.achievement-content p::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.3);
  border-radius: 2px;
}

.project-content p::-webkit-scrollbar-thumb:hover,
.project-tech::-webkit-scrollbar-thumb:hover,
.achievement-content p::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.6);
}

.project-content p,
.project-tech,
.achievement-content p {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.3) rgba(255, 255, 255, 0.05);
}

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

.achievement-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 316px;
  text-decoration: none;
  color: inherit;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.2);
}

.achievement-image {
  height: 200px;
  overflow: hidden;
}

.achievement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-image img {
  transform: scale(1.1);
}

.achievement-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.achievement-content h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  height: 60px;
  overflow: hidden;
}

.achievement-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  height: 180px;
  overflow-y: auto;
}

.achievement-date {
  color: var(--nord-yellow);
  font-weight: 600;
  margin-top: auto;
}

/* Testimonials Section */
.testimonials {
  background: var(--bg-primary);
}

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

.testimonial-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.testimonial-content p {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.author-info p {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.testimonial-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

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

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.contact-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  flex-basis: calc(50% - 0.75rem);
  min-width: 280px;
  max-width: 350px;
}

.contact-method span {
  word-break: break-word;
  font-size: 0.95rem;
}

.contact-method:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(var(--accent-rgb), 0.2);
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--nord-yellow);
}

/* Main Contact Method (CV Link) */
.contact-method-main {
  flex-basis: 100%;
  max-width: 724px;
  background: linear-gradient(135deg, rgba(136, 192, 208, 0.12) 0%, rgba(143, 188, 187, 0.05) 100%);
  border: 1.5px dashed var(--accent);
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-method-main:hover {
  border-color: var(--nord-yellow);
  background: linear-gradient(135deg, rgba(235, 203, 139, 0.18) 0%, rgba(208, 135, 112, 0.08) 100%);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-4px);
}

.contact-method-main i {
  font-size: 2rem !important;
  color: var(--accent) !important;
  animation: pulse-icon 2s infinite ease-in-out;
}

.contact-method-main:hover i {
  color: var(--nord-yellow) !important;
}

.contact-method-main span {
  font-size: 1.1rem !important;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

@keyframes pulse-icon {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

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

.platform-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.platform-link {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.platform-link:hover {
  background: var(--nord-yellow);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--bg-tertiary);
}

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

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

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

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

/* Carousel Component */
.carousel-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 15px 0 25px 0;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  will-change: transform;
}

/* Set visible items variable */
.carousel-track {
  --items-visible: 3;
}

@media (max-width: 1024px) {
  .carousel-track {
    --items-visible: 2;
  }
}

@media (max-width: 768px) {
  .carousel-track {
    --items-visible: 1;
  }
}

/* Flex items (cards) */
.carousel-track > * {
  flex: 0 0 calc(100% / var(--items-visible) - 30px);
  max-width: calc(100% / var(--items-visible) - 30px);
  margin: 0 15px;
  box-sizing: border-box;
}

/* Override projects and achievements grid layouts if still referenced */
.projects-grid,
.achievements-grid {
  display: none;
}

/* Navigation controls styling */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.carousel-btn {
  background: rgba(59, 66, 82, 0.85);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: calc(50% - 25px);
  transform: translateY(-50%);
  z-index: 10;
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.6);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    top: calc(50% - 20px);
  }
  .prev-btn {
    left: 8px;
  }
  .next-btn {
    right: 8px;
  }
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(var(--accent-rgb), 0.5);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1050px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(46, 52, 64, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

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

  .nav-menu a {
    padding: 1rem;
    display: block;
  }

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

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

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

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .name {
    font-size: 2.5rem;
  }

  .profile-img {
    width: 250px;
    height: 250px;
  }

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

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

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }

  .timeline-date {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .platform-links {
    flex-direction: column;
    align-items: center;
  }
}

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

  .name {
    font-size: 2rem;
  }

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

  .btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

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

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

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