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

:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f0f9ff;
  --bg-tertiary: #e0f2fe;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Sky Blue Colors */
  --skyblue-50: #f0f9ff;
  --skyblue-100: #e0f2fe;
  --skyblue-200: #bae6fd;
  --skyblue-300: #7dd3fc;
  --skyblue-400: #38bdf8;
  --skyblue-500: #0ea5e9;
  --skyblue-600: #0284c7;
  --skyblue-700: #0369a1;
  --skyblue-800: #075985;
  --skyblue-900: #0c4a6e;

  /* Glass Effect */
  --glass-bg: rgba(186, 230, 253, 0.3);
  --glass-border: rgba(186, 230, 253, 0.3);
  --glass-backdrop: blur(16px);

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--skyblue-400),
    var(--skyblue-600)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--skyblue-500),
    var(--skyblue-700)
  );
  --gradient-mixed: linear-gradient(
    -45deg,
    var(--skyblue-300),
    var(--skyblue-500),
    var(--skyblue-600),
    var(--skyblue-800)
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-skyblue: 0 10px 15px -3px rgba(56, 189, 248, 0.3);
}

/* Dark Theme */
.dark {
  --bg-primary: #0d1117;
  --bg-secondary: rgba(56, 189, 248, 0.05);
  --bg-tertiary: rgba(14, 165, 233, 0.05);
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;

  --glass-bg: rgba(56, 189, 248, 0.1);
  --glass-border: rgba(56, 189, 248, 0.2);
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

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

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.nav-link:hover {
  color: var(--skyblue-500);
}

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

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

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: scale(1.05);
}

.sun-icon {
  display: inline;
}

.moon-icon {
  display: none;
}

.dark .sun-icon {
  display: none;
}

.dark .moon-icon {
  display: inline;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    -45deg,
    var(--skyblue-100),
    var(--skyblue-200),
    var(--skyblue-300)
  );
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  padding: 6rem 0 2rem;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.highlight {
  color: var(--skyblue-800);
}

.hero-subtitle {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  height: 3rem;
  display: flex;
  align-items: center;
}

.cursor {
  color: var(--skyblue-300);
  animation: blink 1s infinite;
}

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

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 500px;
}

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

.btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--skyblue-800);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--skyblue-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--glass-bg);
  color: white;
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Profile Section */
.profile-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.profile-image-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--skyblue-300);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.5);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  margin-top: 5px;
  margin-left: 3px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.btn-icon img {
  width: 30px;
  height: 30px;
  transition: filter 0.3s ease;
}

/* LinkedIn Hover */
.img-linkedin:hover {
  background-color: #0077b5;
  transform: scale(1.1); /* Zooms the button */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* GitHub Hover */
.img-github:hover {
  background-color: #24292e;
}
.img-github:hover img {
  filter: brightness(0) invert(1); /* makes image white-ish if it's dark */
}

/* .profile-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--skyblue-500);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
} */

/* Security Animation */
.security-animation {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: end;
  transform: scale(0.7);
}

.floating-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.profile-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  padding: 4px;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.8);
    transform: scale(1.05);
  }
}

.profile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--skyblue-700), var(--skyblue-900));
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-container {
  font-size: 5rem;
  animation: rotate3d 20s linear infinite;
}

@keyframes rotate3d {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

.floating-icon {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: bounce 2s ease-in-out infinite;
}

.floating-icon-1 {
  background: var(--skyblue-500);
  top: -0.5rem;
  right: -0.5rem;
}

.floating-icon-2 {
  background: var(--skyblue-600);
  bottom: -0.5rem;
  left: -0.5rem;
  animation-delay: 1s;
}

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

/* About Section */
.about-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--skyblue-50), var(--skyblue-100));
}

.dark .about-section {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.about-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--skyblue-600);
  margin-bottom: 1.5rem;
}

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

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--skyblue-300);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-content {
  color: var(--text-secondary);
}

.card-text {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Projects Section */
.projects-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--skyblue-100), var(--skyblue-50));
}

.dark .projects-section {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

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

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: var(--glass-bg, rgba(255, 255, 255, 0.1));
  backdrop-filter: var(--glass-backdrop, blur(10px));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

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

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl, 0 10px 20px rgba(0, 0, 0, 0.2));
  border-color: var(--skyblue-400, #38bdf8);
}

.slider-two {
  position: relative;
  width: 100%;
  max-height: 300px;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--glass-bg, rgba(255, 255, 255, 0.1));
  backdrop-filter: var(--glass-backdrop, blur(10px));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
  overflow: hidden;
  border-radius: 0.5rem;
}

.slide-two img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  left: -100%;
  transition: opacity 0.3s ease-in-out;
  background-color: var(--skyblue-100);
}

.slide-two img:not(.active) {
  left: 0;
}

.slider-two-arrow-btn {
  position: absolute;
  top: 163px;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(151, 200, 213, 0.1);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: 0.3s;
}

.slider2-left-arrow {
  left: 5px;
}
.slider2-right-arrow {
  right: 5px;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* semi-transparent dark overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  z-index: 10;
  user-select: none;
}

.dots-box {
  position: absolute;
  left: 27px;
  top: 2px;
  width: 90%;
  overflow: hidden;
}

.dots {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border: 2px solid #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dots.active {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
}

.project-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--skyblue-600);
  margin-bottom: 1rem;
}

.project-description {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--skyblue-100);
  color: var(--skyblue-700);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.dark .tech-tag {
  background: var(--skyblue-900);
  color: var(--skyblue-200);
}

.project-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.live-demo {
  background: var(--skyblue-200);
  color: white;
}

.live-demo:hover {
  background: var(--skyblue-400);
  transform: translateY(-2px);
}

.source-code {
  background: var(--skyblue-800);
  color: white;
}

.source-code:hover {
  background: var(--skyblue-900);
  transform: translateY(-2px);
}

@keyframes next1 {
  from {
    left: 0%;
  }
  to {
    left: -100%;
  }
}

@keyframes next2 {
  from {
    left: 100%;
  }
  to {
    left: 0%;
  }
}

@keyframes prev1 {
  from {
    left: 0%;
  }
  to {
    left: 100%;
  }
}

@keyframes prev2 {
  from {
    left: -100%;
  }
  to {
    left: 0%;
  }
}

/* Skills Section */
.skills-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--skyblue-50), var(--skyblue-100));
}

.dark .skills-section {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

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

.skill-category {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--skyblue-400);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.skill-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.skill-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--skyblue-600);
}

.skill-list {
  list-style: none;
}

.skill-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 1rem;
}

.skill-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--skyblue-500);
  border-radius: 50%;
}

.skill-item:hover {
  color: var(--skyblue-600);
  transform: translateX(5px);
}

/* Skeleton Loaders */
.skills-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skeleton-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 2rem;
}

.skeleton-header {
  height: 2rem;
  background: linear-gradient(
    90deg,
    var(--skyblue-200),
    var(--skyblue-300),
    var(--skyblue-200)
  );
  background-size: 200% 100%;
  animation: skeletonLoading 2s ease-in-out infinite;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-item {
  height: 1rem;
  background: linear-gradient(
    90deg,
    var(--skyblue-200),
    var(--skyblue-300),
    var(--skyblue-200)
  );
  background-size: 200% 100%;
  animation: skeletonLoading 2s ease-in-out infinite;
  border-radius: 0.25rem;
}

.skeleton-item:nth-child(1) {
  width: 80%;
}
.skeleton-item:nth-child(2) {
  width: 90%;
}
.skeleton-item:nth-child(3) {
  width: 70%;
}
.skeleton-item:nth-child(4) {
  width: 85%;
}
.skeleton-item:nth-child(5) {
  width: 75%;
}

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

/* Resume Section */
.resume-section {
  padding: 5rem 0;
  background: linear-gradient(
    -45deg,
    var(--skyblue-100),
    var(--skyblue-200),
    var(--skyblue-800),
    var(--skyblue-900)
  );
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

.resume-content {
  max-width: 1000px;
  margin: 0 auto;
}

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

.white-text {
  color: white !important;
  z-index: 1000;
}

.skyblue-text {
  color: var(--skyblue-400) !important;
}

/* Personal Details Section */
.resume-personal-section {
  margin-bottom: 3rem;
}

.personal-details-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
}

.personal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.personal-avatar {
  margin-bottom: 1.5rem;
}

.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--skyblue-300);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.personal-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: center;
}

.personal-title {
  font-size: 1.25rem;
  color: var(--skyblue-100);
  margin-bottom: 1.5rem;
}

.personal-location {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  width: 100%;
  text-align: center;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.contact-icon {
  font-size: 1.2rem;
}

.objective-section {
  text-align: left;
}

.objective-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.objective-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 1rem;
}

/* Resume Grid */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.resume-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: left;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.education-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-direction: column;
  gap: 0.25rem;
}

.degree-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--skyblue-100);
}

.education-year {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  background: var(--skyblue-700);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  align-self: flex-start;
}

.institution {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.specialization,
.location {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.project-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--skyblue-50);
  margin-bottom: 0.25rem;
}

.project-tech {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

/* Additional Details Section */
.resume-additional-section {
  margin-bottom: 3rem;
}

.skills-resume-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-group {
  margin-bottom: 1rem;
}

.skill-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--skyblue-100);
  margin-bottom: 0.5rem;
}

.skill-items {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.download-btn {
  background: var(--skyblue-500);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.download-btn:hover {
  background: var(--skyblue-600);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.download-btn:hover .download-icon {
  transform: translateX(5px);
}

.download-icon {
  transition: transform 0.3s ease;
}

.download-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.resume-download {
  text-align: center;
}

.contact-section {
  padding: 4rem 2rem;
  background: #f9f9f9; /* light background */
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-section p {
  margin-bottom: 2rem;
  color: #555;
}

#contactForm {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contactForm input,
#contactForm textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
}

#contactForm textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-secondary {
  background-color: var(--skyblue-200); /* #0ea5e9 */
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--skyblue-900); /* #0284c7 */
}

.dark .contact-section {
  background: var(--bg-primary); /* #0d1117 */
  color: var(--text-primary); /* #f8fafc */
  padding: 4rem 2rem;
  text-align: center;
}

.dark .contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.dark .contact-section p {
  margin-bottom: 2rem;
  color: var(--text-secondary); /* #e2e8f0 */
}

.dark #contactForm {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dark #contactForm input,
.dark #contactForm textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--glass-border); /* rgba(56, 189, 248, 0.2) */
  background: var(--bg-secondary); /* rgba(56, 189, 248, 0.05) */
  color: var(--text-primary);
}

.dark #contactForm input::placeholder,
.dark #contactForm textarea::placeholder {
  color: var(--text-muted); /* #94a3b8 */
}

.dark #contactForm textarea {
  min-height: 120px;
  resize: vertical;
  background: var(--bg-tertiary); /* rgba(14, 165, 233, 0.05) */
}

.dark .btn-secondary {
  background-color: var(--skyblue-200); /* #0284c7 */
  color: var(--text-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.dark .btn-secondary:hover {
  background-color: var(--skyblue-900); /* #38bdf8 */
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-center {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(
      -45deg,
      var(--skyblue-200),
      var(--skyblue-200),
      var(--skyblue-300)
    );
    border-bottom: 1px solid var(--glass-border, #ccc);
    padding: 1rem;
    z-index: 1000;
    transition: all 0.3s ease;
  }

  .nav-center.active {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-image {
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
  }

  .security-animation {
    transform: scale(0.4);
  }

  .profile-image-container {
    width: 150px;
    height: 150px;
  }

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

  .hero-subtitle {
    top: 50%;
    left: 50%;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    z-index: 1000;
  }

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

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

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

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

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

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

  .education-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dots-box {
    position: absolute;
    left: 27px;
    top: 2px;
    width: 90%;
    overflow: hidden;
  }

  .dots {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border: 2px solid #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
  }

  .slider-two-arrow-btn {
    position: absolute;
    top: 118px;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(151, 200, 213, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
  }
}

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

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

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .hero-image {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-image-container {
    width: 120px;
    height: 120px;
  }

  .security-animation {
    transform: scale(0.3);
  }

  .floating-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .dots-box {
    position: absolute;
    left: 27px;
    top: 2px;
    width: 90%;
    overflow: hidden;
  }

  .dots {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border: 2px solid #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
  }

  .slider-two-arrow-btn {
    position: absolute;
    top: 118px;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(151, 200, 213, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
  }
}

/* Scroll animations */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--skyblue-500);
}

.project-showcase {
  margin: 40px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f9f9f9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-details {
  padding: 20px;
  text-align: center;
}

.project-title {
  font-size: 24px;
  margin: 10px 0;
}

.project-description {
  font-size: 16px;
  margin: 10px 0 20px;
  color: #555;
  text-align: justify;
}

.project-tech {
  margin-bottom: 15px;
}

.tech-tag {
  background: #e1ecf4;
  border-radius: 20px;
  padding: 5px 10px;
  margin: 0 5px;
  display: inline-block;
  font-size: 14px;
  color: #0366d6;
}

.project-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}
