:root {
  --text-color: #eeeff1;
  --link-color: #4a76ee;
  --background-color: #1a1c20;
  --border-color: #555;
  --input-bg: #333;
  --secondary-text: #888;
  --card-bg: #2a2d37;
  --hover-bg: #333;
  --navbar-bg: rgba(26, 28, 32, 0.9);
  --footer-bg: #1e2128;
  --nav-hover-bg: linear-gradient(45deg, var(--link-color), #8b5cf6);
  --navbar-bg-hover: rgba(26, 28, 32, 0.95);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.loading-text {
  display: flex;
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: 0.1em;
}

.loading-text .letter {
  display: inline-block;
  animation: letterFloat 2s ease-in-out infinite;
}

.loading-text .space {
  width: 0.5em;
}

/* Stagger the letter animations */
.loading-text .letter:nth-child(1) { animation-delay: 0s; }
.loading-text .letter:nth-child(2) { animation-delay: 0.1s; }
.loading-text .letter:nth-child(3) { animation-delay: 0.2s; }
.loading-text .letter:nth-child(4) { animation-delay: 0.3s; }
.loading-text .letter:nth-child(5) { animation-delay: 0.4s; }
.loading-text .letter:nth-child(7) { animation-delay: 0.5s; }
.loading-text .letter:nth-child(8) { animation-delay: 0.6s; }
.loading-text .letter:nth-child(9) { animation-delay: 0.7s; }
.loading-text .letter:nth-child(10) { animation-delay: 0.8s; }
.loading-text .letter:nth-child(11) { animation-delay: 0.9s; }

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

.loading-blocks {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 60px;
}

.block {
  width: 12px;
  background: linear-gradient(45deg, var(--link-color), #8b5cf6);
  border-radius: 2px;
  animation: blockBuild 1.5s ease-in-out infinite;
  transform-origin: bottom;
}

/* Stagger the block animations */
.block:nth-child(1) { animation-delay: 0s; }
.block:nth-child(2) { animation-delay: 0.1s; }
.block:nth-child(3) { animation-delay: 0.2s; }
.block:nth-child(4) { animation-delay: 0.3s; }
.block:nth-child(5) { animation-delay: 0.4s; }
.block:nth-child(6) { animation-delay: 0.5s; }
.block:nth-child(7) { animation-delay: 0.6s; }
.block:nth-child(8) { animation-delay: 0.7s; }

@keyframes blockBuild {
  0% { 
    height: 0;
    opacity: 0;
  }
  25% { 
    height: 20px;
    opacity: 1;
  }
  50% { 
    height: 40px;
  }
  75% { 
    height: 60px;
  }
  100% { 
    height: 0;
    opacity: 0;
  }
}

/* Hide main content initially */
.main-content {
  display: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loading-text .letter,
  .block {
    animation: none !important;
  }
  .loading-screen {
    transition: none !important;
  }
}

* {
  margin: 0;
  padding: 0;
/* Reveal / Fade-in animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

/* Direction variants */
[data-reveal="up"] { transform: translateY(24px); }
[data-reveal="down"] { transform: translateY(-24px); }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="zoom"] { transform: scale(0.96); }

.reveal-visible[data-reveal],
.reveal-visible[data-reveal="zoom"] {
  transform: none;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-visible,
  [data-reveal] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  width: 100%;
  margin: 0 auto;
  font-size: 18px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animated Background Particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(67, 118, 238, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

a {
  color: var(--link-color);
  text-decoration: none;
}

/* Main content area */
main {
  flex: 1;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: 80px;
  backdrop-filter: blur(10px);
  background: var(--navbar-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(67, 118, 238, 0.2);
  transition: all 0.3s ease;
}

nav:hover {
  background: var(--navbar-bg-hover);
  border-bottom: 1px solid rgba(67, 118, 238, 0.4);
}

nav .left a {
  color: var(--text-color);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

nav .left a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--link-color), #8b5cf6);
  transition: width 0.3s ease;
}

nav .left a:hover::after {
  width: 100%;
}

nav .left a:hover {
  transform: scale(1.05);
}

nav .center {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 20px;
}

nav .center a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px;
  border-radius: 20px;
}

nav .center a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-hover-bg);
  border-radius: 20px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: -1;
}

nav .center a:hover::before {
  opacity: 0.2;
  transform: scale(1);
}

nav .center a:hover {
  color: var(--link-color);
  transform: translateY(-2px);
}

nav .right {
  display: flex;
  align-items: center;
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
}

.theme-switch {
  display: none;
}

.theme-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--hover-bg);
  border-radius: 50px;
  padding: 8px;
  width: 70px;
  height: 35px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.theme-label i {
  font-size: 14px;
  z-index: 2;
  transition: color 0.3s ease;
}

.theme-label .fa-sun {
  color: #ffd700;
}

.theme-label .fa-moon {
  color: var(--secondary-text);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 29px;
  height: 29px;
  background-color: var(--text-color);
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 1;
}

.theme-switch:checked + .theme-label .toggle-slider {
  transform: translateX(35px);
}

.theme-switch:checked + .theme-label {
  background-color: var(--link-color);
}

.theme-switch:checked + .theme-label .fa-sun {
  color: var(--secondary-text);
}

.theme-switch:checked + .theme-label .fa-moon {
  color: #ffd700;
}

/* SECTION 1: Hero */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  margin-bottom: 100px;
  gap: 40px;
}

.hero-section .text {
  flex: 5;
}

.hero-section .text h2 {
  font-size: 50px;
  background: linear-gradient(45deg, var(--text-color), var(--link-color), #8b5cf6);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-section .text p {
  margin-bottom: 25px;
  font-size: 18px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--hover-bg);
  border-radius: 50%;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--link-color), #8b5cf6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: 1;
}

.social-links a:hover::before {
  width: 100%;
  height: 100%;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 20px rgba(74, 118, 238, 0.3);
}

.social-links i {
  position: relative;
  z-index: 2;
}

.social-links i {
  font-size: 20px;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn-primary, .btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--link-color);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 118, 238, 0.3);
}

.btn-primary:hover {
  background-color: #3a63d4;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 118, 238, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--text-color);
  color: var(--background-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(238, 239, 241, 0.2);
}

.btn-secondary:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img {
  width: 350px;
  border-radius: 50%;
}

/* SECTION 2: About Me */
.about-section {
  padding: 0 50px;
  margin-bottom: 100px;
  text-align: center;
}

.about-section h2 {
  font-size: 40px;
  margin-bottom: 30px;
}

.about-section .skills-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.about-section .skills-icons .skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 20px;
  border-radius: 15px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.about-section .skills-icons .skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(74, 118, 238, 0.1), transparent);
  border-radius: 15px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
  z-index: -1;
}

.about-section .skills-icons .skill-item:hover::before {
  opacity: 1;
  transform: scale(1);
}

.about-section .skills-icons .skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(74, 118, 238, 0.2);
}

.about-section .skills-icons .skill-item i {
  font-size: 50px;
  color: var(--secondary-text);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.about-section .skills-icons .skill-item:hover i {
  color: var(--link-color);
  transform: scale(1.3) rotateY(360deg);
  filter: brightness(1.2) drop-shadow(0 0 10px var(--link-color));
}

.about-section .skills-icons .skill-item span {
  font-size: 14px;
  color: var(--secondary-text);
  font-weight: 400;
}

.about-section .description {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.about-section .description .description-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 10px;
}

.about-section .description .description-item .lightning {
  color: #ffd700;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.about-section .description .description-item .text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-color);
}

/* SECTION 3: Education */
.education-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.education-section h2 {
  font-size: 35px;
  margin-bottom: 40px;
}

.education-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.education-icon {
  flex-shrink: 0;
}

.education-icon img {
  width: auto;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
}

.education-icon i {
  font-size: 80px;
  color: var(--link-color);
}

.education-details {
  flex: 1;
}

.education-details h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.education-details h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: 600;
}

.education-details .expected {
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.education-info {
  margin-top: 10px;
}

.education-info p {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--secondary-text);
}

.education-info p:first-child {
  color: var(--text-color);
}

.education-info strong {
  color: var(--text-color);
}

/* SECTION 5: Experience */
.experience-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.experience-section h2 {
  font-size: 35px;
  margin-bottom: 40px;
}

.experience-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.experience-icon {
  flex-shrink: 0;
}

.experience-icon img {
  width: auto;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.experience-details {
  flex: 1;
}

.experience-details h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 600;
}

.experience-details h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--link-color);
  font-weight: 500;
}

.experience-details .duration {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 5px;
  font-weight: 500;
}

.experience-details .location {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 20px;
}

.experience-description p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

/* SECTION 6: Skills */
.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.skills-section h2 {
  font-size: 35px;
  margin-bottom: 40px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category {
  margin-bottom: 30px;
}

.skill-category h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 400;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: var(--hover-bg);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

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

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

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  border-radius: 4px;
  width: 0%;
  animation: fillSkill 2s ease-in-out forwards;
  animation-delay: 0.5s;
  position: relative;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  animation: progress-shine 3s ease-in-out infinite;
  animation-delay: 2.5s;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

@keyframes fillSkill {
  to {
    width: var(--target-width);
  }
}

/* Set individual widths */
.skill-category:nth-child(1) .skill-progress {
  --target-width: 85%;
}

.skill-category:nth-child(2) .skill-progress {
  --target-width: 75%;
}

.skill-category:nth-child(3) .skill-progress {
  --target-width: 70%;
}

.skill-category:nth-child(4) .skill-progress {
  --target-width: 80%;
}

.skill-category:nth-child(5) .skill-progress {
  --target-width: 90%;
}

.skill-category:nth-child(6) .skill-progress {
  --target-width: 75%;
}

/* SECTION 7: Services Offered */
.services-section {
  padding: 0 50px;
  margin-bottom: 100px;
  text-align: center;
}

.services-section h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

.services-subtitle {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 118, 238, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(74, 118, 238, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--link-color);
  box-shadow: 0 20px 40px rgba(67, 118, 238, 0.3);
}

.service-icon {
  margin-bottom: 25px;
}

.service-icon i {
  font-size: 50px;
  color: var(--link-color);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover .service-icon i {
  transform: scale(1.2) rotateY(360deg);
  color: #8b5cf6;
  filter: drop-shadow(0 0 15px var(--link-color));
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 600;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #aaa;
}

/* SECTION 8: Projects */
.projects-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.projects-section h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

.projects-subtitle {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 50px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--link-color);
  box-shadow: 0 15px 40px rgba(67, 118, 238, 0.2);
}

.project-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

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

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

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 600;
}

.project-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 20px;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.tech-tag {
  background-color: var(--link-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--link-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: #8b5cf6;
}

.project-links i {
  font-size: 16px;
}

/* SECTION 9: Certificates */
.certificates-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.certificates-section h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

.certificates-subtitle {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 50px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.certificate-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.certificate-card:hover {
  transform: translateY(-5px);
  border-color: var(--link-color);
  box-shadow: 0 15px 40px rgba(67, 118, 238, 0.2);
}

.certificate-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #1e2128;
}

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

.certificate-card:hover .certificate-image img {
  transform: scale(1.02);
}

.certificate-content {
  padding: 25px;
}

.certificate-header {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.certificate-icon {
  flex-shrink: 0;
}

.certificate-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.certificate-details {
  flex: 1;
}

.certificate-details h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.3;
}

.certificate-details .issuer {
  font-size: 14px;
  color: var(--link-color);
  margin-bottom: 5px;
  font-weight: 500;
}

.certificate-details .date {
  font-size: 12px;
  color: var(--secondary-text);
  margin-bottom: 3px;
}

.certificate-details .credential {
  font-size: 12px;
  color: var(--secondary-text);
}

.certificate-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.skill-tag {
  background-color: var(--link-color);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 500;
}

.certificate-link {
  display: flex;
}

.certificate-link a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--link-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.certificate-link a:hover {
  color: #8b5cf6;
}

.certificate-link i {
  font-size: 14px;
}

/* SECTION 10: Contact Me */
.contact-me-section {
  padding: 0 50px;
  margin-bottom: 80px;
  text-align: center;
}

.contact-me-section h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

.contact-subtitle {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  margin-top: 20px;
}

.contact-email a {
  font-size: 24px;
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-email a:hover {
  color: #8b5cf6;
}

/* SECTION 11: Thank You */
.thank-you-section {
  padding: 0 50px;
  margin-bottom: 60px;
  text-align: center;
}

.thank-you-section h2 {
  font-size: 35px;
  margin-bottom: 25px;
}

.thank-you-section p {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 15px;
  line-height: 1.6;
}

.thank-you-emoji {
  font-size: 40px;
  margin-top: 25px;
  animation: bounce 2s infinite;
}

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

/* Footer */
.footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
}

.footer p {
  color: var(--secondary-text);
  font-size: 14px;
  margin: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--link-color), #8b5cf6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(67, 118, 238, 0.3);
  overflow: hidden;
}

.scroll-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.scroll-to-top:hover::before {
  left: 100%;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: bounce 2s ease-in-out infinite;
}

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

.scroll-to-top:hover {
  background: linear-gradient(45deg, #3a63d4, #7c3aed);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(67, 118, 238, 0.5);
  animation: none;
}

.scroll-to-top i {
  color: white;
  font-size: 20px;
  position: relative;
  z-index: 2;
}

/* SECTION 5: Original Skills */
.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.skills-section h2 {
  text-align: center;
  font-size: 35px;
}

.skills-section .text {
  text-align: center;
  margin-bottom: 20px;
}

.skills-section .cells {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.skills-section .cells .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 200px;
  padding: 10px 20px;
  margin: 10px;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
}

.skills-section .cells .cell img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
}

.skills-section .cells .cell span {
  font-size: 18px;
}

/* SECTION 3: Testimony */
.testimony-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.testimony-section h2 {
  font-size: 35px;
  margin-bottom: 30px;
}

.testimony-section .group {
  display: flex;
  align-items: center;
  gap: 50px;
}

.testimony-section .group .person-details {
  text-align: center;
  flex: 2;
}

.testimony-section .group .person-details img {
  width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.testimony-section .group .person-details p {
  font-weight: 600;
}

.testimony-section .group .person-details p:last-child {
  font-weight: normal;
}

.testimony-section .group .text {
  flex: 8;
}

/* SECTION 4: Contact */
.contact-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.contact-section h2 {
  font-size: 35px;
}

.contact-section .group {
  display: flex;
  gap: 50px;
}

.contact-section .group .text {
  flex: 3;
  margin-top: 20px;
}

.contact-section .group form {
  flex: 3;
  display: flex;
  flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--link-color);
  background-color: var(--input-bg);
  padding: 10px;
  margin-bottom: 15px;
  outline: none;
  resize: none;
}

.contact-section .group form button {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: var(--link-color);
  border: none;
  height: 50px;
  cursor: pointer;
  transition: .1s;
}

.contact-section .group form button:hover {
  filter: brightness(.9);
}

@media (max-width: 850px) {
  /* SECTION 1: Hero */
  .hero-section .text h2 {
    font-size: 35px;
  }

  /* SECTION 2: About Me */
  .about-section h2 {
    font-size: 30px;
  }

  .about-section .skills-icons .skill-item i {
    font-size: 45px;
  }

  /* SECTION 5: Experience */
  .experience-section h2 {
    font-size: 30px;
  }
}

@media (max-width: 740px) {
  /* SECTION 1: Hero */
  .hero-section {
    flex-direction: column-reverse;
  }

  .hero-section .headshot img {
    width: 300px;
  }

  /* SECTION 3: Education */
  .education-content {
    flex-direction: column;
  }

  .education-icon img {
    height: 60px;
  }

  .education-icon i {
    font-size: 60px;
  }

  /* SECTION 5: Experience */
  .experience-content {
    flex-direction: column;
  }

  .experience-icon img {
    height: 60px;
  }

  /* SECTION 6: Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* SECTION 7: Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    padding: 30px 25px;
  }

  /* SECTION 8: Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-image {
    height: 200px;
  }

  .project-content {
    padding: 25px;
  }

  /* SECTION 9: Certificates */
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .certificate-image {
    height: 180px;
  }

  .certificate-content {
    padding: 20px;
  }

  .certificate-header {
    flex-direction: column;
    gap: 10px;
  }

  .certificate-icon img {
    width: 40px;
    height: 40px;
  }

  /* SECTION 10: Testimony */
  .testimony-section {
    text-align: center;
  }

  .testimony-section .group {
    flex-direction: column;
  }

  /* SECTION 4: Contact */
  .contact-section .group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  /* NAVBAR */
  nav {
    padding: 0 20px;
  }

  nav .center {
    display: none;
  }

  .theme-label {
    width: 60px;
    height: 30px;
    padding: 6px;
  }

  .toggle-slider {
    width: 24px;
    height: 24px;
  }

  .theme-switch:checked + .theme-label .toggle-slider {
    transform: translateX(30px);
  }

  /* SECTION 1: Hero */
  .hero-section {
    padding: 0 20px;
  }

  .hero-section .text h2 {
    font-size: 30px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .social-links i {
    font-size: 18px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary, .btn-secondary {
    width: auto;
    min-width: 200px;
  }

  /* SECTION 2: About Me */
  .about-section {
    padding: 0 20px;
  }

  .about-section .skills-icons {
    gap: 30px;
  }

  .about-section .skills-icons .skill-item i {
    font-size: 40px;
  }

  .about-section .description .description-item .text {
    font-size: 16px;
  }

  /* SECTION 3: Education */
  .education-section {
    padding: 0 20px;
  }

  .education-details h3 {
    font-size: 24px;
  }

  .education-details h4 {
    font-size: 20px;
  }

  /* SECTION 5: Experience */
  .experience-section {
    padding: 0 20px;
  }

  .experience-details h3 {
    font-size: 24px;
  }

  .experience-details h4 {
    font-size: 18px;
  }

  /* SECTION 7: Services */
  .services-section {
    padding: 0 20px;
  }

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

  .service-card h3 {
    font-size: 20px;
  }

  /* SECTION 8: Projects */
  .projects-section {
    padding: 0 20px;
  }

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

  .project-content h3 {
    font-size: 20px;
  }

  /* SECTION 9: Certificates */
  .certificates-section {
    padding: 0 20px;
  }

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

  .certificate-details h3 {
    font-size: 16px;
  }

  /* SECTION 10: Contact Me */
  .contact-me-section {
    padding: 0 20px;
  }

  .contact-email a {
    font-size: 20px;
  }

  /* SECTION 11: Thank You */
  .thank-you-section {
    padding: 0 20px;
  }

  .thank-you-section h2 {
    font-size: 30px;
  }

  .thank-you-emoji {
    font-size: 35px;
  }

  /* SECTION 12: Skills */
  .skills-section {
    padding: 0 20px;
  }

  .skill-category h3 {
    font-size: 18px;
  }

  /* Scroll to Top Button */
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .scroll-to-top i {
    font-size: 18px;
  }

  /* SECTION 5: Skills */
  .skills-section {
    padding: 0 20px;
  }

  .skills-section .cells .cell span {
    font-size: 16px;
  }

  /* SECTION 3: Testimony */
  .testimony-section {
    padding: 0 20px;
  }

  /* SECTION 4: Contact */
  .contact-section {
    padding: 0 20px;
  }
}