/* CSS Custom Properties with Enhanced Color Palette */
:root {
  --bg-primary: #0F0F0F;
  --bg-secondary: rgba(15, 15, 15, 0.9);
  --bg-tertiary: rgba(15, 15, 15, 0.8);
  --accent-primary: #00ADB5;
  --accent-secondary: #EEEEEE;
  --accent-tertiary: #FF5722;
  --text-primary: #F5F5F5;
  --text-secondary: #EEEEEE;
  --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 8px rgba(0, 0, 0, 0.3);
  --card-text: #F5F5F5;
  --nav-bg: rgba(15, 15, 15, 0.8);
  --nav-bg-hover: rgba(20, 20, 20, 0.9);
  --skill-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  --skill-text: #EEEEEE;
  --skill-border: var(--accent-primary);
  --card-border: 1px solid rgba(255, 255, 255, 0.1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  background: url('assets/coding-background.jpg') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed !important; /* Ensure fixed background */
  transition: all var(--transition-slow);
  overflow-x: hidden;
  line-height: 1.6;
  will-change: auto; /* Improve performance */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 15, 30, 0.5);
  z-index: -1;
  transition: background var(--transition-slow);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background: var(--bg-primary); }
  50% { background: var(--bg-secondary); }
  100% { background: var(--bg-primary); }
}

/* Modern Floating Navigation */
nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  background-color: var(--nav-bg);
  position: fixed;
  width: calc(100% - 40px);
  margin: 20px;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: var(--card-border);
  transition: all var(--transition-medium);
}

nav:hover {
  transform: translateY(2px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Advanced Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50px;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  border: var(--card-border);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.theme-toggle:hover {
  background-color: var(--accent-primary);
  color: var(--bg-secondary);
  transform: scale(1.1);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  transition: all var(--transition-medium);
  position: absolute;
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-180deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Enhanced Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
  position: relative;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-primary);
  transform: translateX(-50%);
  animation: lineExpand 1.5s forwards 0.8s;
}

@keyframes lineExpand {
  to {
    width: 100px;
  }
}

.hero .highlight {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

.hero .highlight::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  opacity: 0.2;
  z-index: -1;
  transform-origin: bottom;
  animation: highlightExpand 0.8s forwards 0.6s;
}

@keyframes highlightExpand {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.hero .btn {
  padding: 14px 38px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  display: inline-block;
  z-index: 1;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: var(--card-border);
}

.hero .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
  z-index: -1;
}

.hero .btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover::before {
  width: 100%;
}

/* Enhanced About Section */
.about {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 100px;
  background: var(--bg-primary);
  top: -50px;
  left: -50%;
  border-radius: 50%;
  z-index: 1;
}

.about .content {
  position: relative;
  z-index: 2;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
}

.about h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--accent-primary);
  transform: translateX(-50%);
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Card Design with 3D effect */
.card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-medium);
  max-width: 100%;
  color: var(--card-text);
  position: relative;
  overflow: hidden;
  height: 320px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--card-border);
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-tertiary), var(--accent-primary));
  opacity: 0;
  transition: all var(--transition-medium);
}

.card:hover {
  transform: translateY(-10px) perspective(1000px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card-content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) rgba(0, 0, 0, 0.1);
}

.card-content-wrapper::-webkit-scrollbar {
  width: 6px;
}

.card-content-wrapper::-webkit-scrollbar-track {
  background: rgba(168, 218, 220, 0.1);
  border-radius: 10px;
}

.card-content-wrapper::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 10px;
}

.card-content-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--accent-primary);
  font-size: 1.3rem;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
}

.card h3::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--accent-primary);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.card:hover h3::before {
  transform: scaleX(1);
}

/* Enhanced Skills Visualization */
.skills-container {
  text-align: left;
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) rgba(0, 0, 0, 0.1);
}

.skills-container::-webkit-scrollbar {
  width: 6px;
}

.skills-container::-webkit-scrollbar-track {
  background: rgba(168, 218, 220, 0.1);
  border-radius: 10px;
}

.skills-container::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 10px;
}

.skill-item {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--skill-bg);
  border-radius: 12px;
  border-left: 3px solid var(--skill-border);
  transition: all var(--transition-medium);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: var(--card-border);
}

.skill-item:hover {
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  position: relative;
}

.skill-percentage {
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 0.9rem;
  background: rgba(100, 255, 218, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  transition: all var(--transition-medium);
}

.skill-item:hover .skill-percentage {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: scale(1.1);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.7rem;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  width: 0%;
  transition: width 2s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.skill-description {
  font-size: 0.85rem;
  color: var(--skill-text);
  font-style: italic;
  margin: 0;
  opacity: 0.8;
  transition: all var(--transition-medium);
}

.skill-item:hover .skill-description {
  opacity: 1;
}

/* Enhanced Education Card */
.education-card .card-content-wrapper {
  text-align: left;
}

.education-item {
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--skill-bg);
  border-radius: 12px;
  text-align: left;
  transition: all var(--transition-medium);
  position: relative;
  border: var(--card-border);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.education-item::before {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  left: 0;
  top: 0;
  opacity: 0.1;
  transition: width var(--transition-medium);
  border-radius: 12px;
}

.education-item:hover::before {
  width: 100%;
}

.education-item strong {
  color: var(--text-primary);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.4rem;
}

.education-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

/* Enhanced Role Card */
.role-card {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(145deg, rgba(10, 102, 194, 0.1), rgba(15, 144, 209, 0.05));
  overflow: hidden;
}

.role-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* Increased gap for better spacing */
  padding: 1.5rem;
  height: auto; /* Allow content to determine height */
  width: 100%;
  position: relative;
}

.role-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  transition: all var(--transition-medium);
}

.role-card:hover::after {
  transform: scale(1.2);
  opacity: 0.15;
}

.role-card .role-image {
  width: 130px; /* Slightly smaller image */
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  transition: all var(--transition-medium);
  border: 3px solid rgba(100, 255, 218, 0.3);
  margin: 0.5rem 0; /* Add margin above and below */
}

.role-card .role-badge {
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.5rem; /* Reduced margin */
  letter-spacing: 1px;
  position: relative; /* Ensure proper positioning */
  z-index: 2;
}

.role-card .text-content {
  width: 100%;
  text-align: center;
}

/* Enhanced Footer */
footer {
  position: relative;
  background: linear-gradient(to top, var(--bg-primary), rgba(8, 15, 30, 0.9));
  color: var(--text-primary);
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.7;
}

footer p {
  position: relative;
  z-index: 1;
  margin: 15px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.fixed-coffee-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  text-decoration: none;
  background: var(--accent-primary);
  color: var(--bg-secondary);
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all var(--transition-medium);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fixed-coffee-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.fixed-coffee-button:active {
  transform: translateY(-2px);
}

/* Enhanced Mobile Responsiveness */
@media screen and (max-width: 768px) {
  nav {
    width: 100%;
    margin: 0;
    padding: 10px;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .hero .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    height: auto;
    margin-bottom: 16px;
    padding: 1rem;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fixed-coffee-button {
    bottom: 15px;
    right: 15px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .hero .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .card h3 {
    font-size: 1rem;
  }

  .project-slide {
    flex-direction: column !important;
  }

  .project-image {
    width: 100% !important;
    height: 180px !important;
  }

  .social-card {
    min-height: 70px;
    padding: 12px 10px;
  }

  .social-icon {
    min-width: 32px;
    min-height: 32px;
  }
}

/* Fix for very small screens */
@media screen and (max-width: 350px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .card h3 {
    font-size: 0.9rem;
  }

  .social-info h3 {
    font-size: 0.8rem;
  }

  .social-info span {
    font-size: 0.7rem;
  }
}

/* Profile Image Styles */
.profile-container {
  margin-bottom: 2rem;
}

.profile-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #a8dadc;
  box-shadow: 0 0 20px rgba(168, 218, 220, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(168, 218, 220, 0.8);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Updated Projects Section */
.projects {
  padding: 80px 20px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.project {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Fix project image size and display to show full images */
.project-image {
  width: 45%;
  height: 350px; /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Allow content to be fully visible */
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
}

.project-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Changed from 'cover' to 'contain' */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.project-info {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-tags span {
  background: #a8dadc;
  color: #1d3557;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .profile-image {
      width: 150px;
      height: 150px;
  }

  .project-list {
      grid-template-columns: 1fr;
      padding: 0 10px;
  }

  .project {
      margin: 0 auto;
      max-width: 400px;
  }
}

@media (max-width: 480px) {
  .profile-image {
      width: 120px;
      height: 120px;
  }

  .hero h1 {
      font-size: 2rem;
  }

  .project-info {
      padding: 1rem;
  }
}

/* Hero Section Updates */
.hero {
  position: relative;
  min-height: 100vh;
  padding-bottom: 60px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #a8dadc;
}

.arrow-down {
  width: 20px;
  height: 20px;
  border-right: 3px solid #a8dadc;
  border-bottom: 3px solid #a8dadc;
  transform: rotate(45deg);
  margin: 0 auto;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
  }
  40% {
      transform: translateY(-10px);
  }
  60% {
      transform: translateY(-5px);
  }
}

/* Profile Section Styles */
.profile-section {
  padding: 80px 20px;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.profile-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.profile-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #a8dadc;
  box-shadow: 0 0 30px rgba(168, 218, 220, 0.3);
  transform: rotate(-3deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 0 40px rgba(168, 218, 220, 0.5);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow-pointer {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 100px;
  height: 100px;
  transform: rotate(-15deg);
}

.arrow-path {
  fill: none;
  stroke: #a8dadc;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawArrow 2s forwards;
}

.arrow-text {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  fill: #a8dadc;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: 1.5s;
}

@keyframes drawArrow {
  to {
      stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

.profile-text {
  max-width: 500px;
}

.profile-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #a8dadc;
}

.profile-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .profile-content {
      flex-direction: column;
      text-align: center;
      gap: 2rem;
  }

  .profile-image {
      width: 250px;
      height: 250px;
  }

  .arrow-pointer {
      display: none;
  }
}

@media (max-width: 480px) {
  .profile-image {
      width: 200px;
      height: 200px;
  }

  .profile-text h2 {
      font-size: 2rem;
  }

  .profile-text p {
      font-size: 1rem;
  }
}
/* Mobile Navigation Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 2px 0;
  transition: 0.4s;
}

/* Mobile-First Media Queries */
@media screen and (max-width: 768px) {
  /* Navigation */
  .hamburger {
      display: flex;
  }

  .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      height: 100vh;
      background-color: rgba(255, 111, 97, 0.95);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: 0.5s;
      backdrop-filter: blur(10px);
  }

  .nav-links.active {
      right: 0;
  }

  .nav-links li {
      margin: 20px 0;
  }

  .nav-links a {
      font-size: 24px;
  }

  .github-icon svg {
      width: 18px;
      height: 18px;
  }

  .github-icon {
      padding: 12px !important;
  }

  /* Slide Indicators */
  .slide-indicators {
      gap: 6px;
      max-width: 160px;
  }

  .indicator {
      width: 8px;
      height: 8px;
  }
}

/* Additional Mobile Optimizations */
@media screen and (max-width: 480px) {
  .hero h1 {
      font-size: 28px;
  }

  .about-details {
      padding: 10px;
  }

  .card {
      margin: 10px 0;
      padding: 15px;
  }

  .project-tags span {
      font-size: 12px;
      padding: 4px 8px;
  }
}

/* Tablet Optimizations */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .project-list {
      grid-template-columns: repeat(2, 1fr);
  }

  .social-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
  }
}

.role-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.role-card .role-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

/* GitHub Repositories Section */
.github-repos-section {
  background-color: rgba(42, 41, 41, 0.9);
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin: 40px auto 0 auto;
  max-width: 1100px;
}

.github-repos-section h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
  color: #a8dadc;
}

.github-repo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  justify-content: center;
  margin-top: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.github-repo-list::-webkit-scrollbar {
  width: 8px;
  background: #23272f;
  border-radius: 8px;
}
.github-repo-list::-webkit-scrollbar-thumb {
  background: #a8dadc;
  border-radius: 8px;
}

.github-repo-card {
  background: #23272f;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  max-width: 260px;
  text-align: left;
  transition: transform 0.15s;
  display: flex;
  flex-direction: column;
  font-size: 0.93rem;
}

.github-repo-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(168,218,220,0.12);
}

.github-repo-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #a8dadc;
  word-break: break-all;
}

.github-repo-card p {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #e0e0e0;
  min-height: 32px;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.github-repo-card .repo-links {
  margin-top: auto;
}

.github-repo-card .repo-links a {
  color: #e63946;
  text-decoration: none;
  font-weight: 500;
  margin-right: 8px;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.github-repo-card .repo-links a:hover {
  color: #a8dadc;
}

/* Fixed Horizontal Scrolling Styles */
.horizontal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  scroll-behavior: smooth; /* Smooth scrolling */
}

.horizontal-scroll-container {
  display: flex;
  flex-direction: row;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth transition */
  height: 100vh;
  scroll-snap-type: x mandatory; /* Snap sections into view */
}

.horizontal-section {
  flex-shrink: 0;
  width: 100vw;
  height: 100vh;
  position: relative;
  scroll-snap-align: start; /* Snap alignment */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth fade and movement */
  overflow: hidden;
}

.horizontal-section:not(.section-visible) {
  opacity: 0.6; /* Dim non-visible sections */
  transform: scale(0.95); /* Slightly shrink non-visible sections */
  filter: blur(1px); /* Subtle blur effect */
}

/* Parallax Effect for Backgrounds */
.horizontal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform;
}

#home.horizontal-section::before {
  background-image: linear-gradient(rgba(8, 15, 30, 0.7), rgba(8, 15, 30, 0.7)), url('assets/coding-background.jpg');
}

#about.horizontal-section::before {
  background-image: linear-gradient(rgba(8, 15, 30, 0.8), rgba(8, 15, 30, 0.8)), url('assets/about-background.jpeg');
}

#projects.horizontal-section::before {
  background-image: linear-gradient(rgba(8, 15, 30, 0.8), rgba(8, 15, 30, 0.8)), url('assets/coding-background.jpg');
}

#contact.horizontal-section::before {
  background-image: linear-gradient(rgba(8, 15, 30, 0.85), rgba(8, 15, 30, 0.85)), url('assets/coding-background.jpg');
}

/* Parallax Scrolling Effect */
.horizontal-section.section-visible::before {
  transform: translateY(-5%); /* Subtle parallax shift */
}

/* Enhanced Section Content Transitions */
.section-content {
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.horizontal-section.section-visible .section-content {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Indicator Enhancements */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
  z-index: 5;
}

.scroll-indicator span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.arrow-down {
  width: 20px;
  height: 20px;
  border-right: 3px solid var(--accent-primary);
  border-bottom: 3px solid var(--accent-primary);
  transform: rotate(45deg);
  margin: 0 auto;
}

/* Enhanced Contact Section */
.contact {
  background: linear-gradient(120deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  padding: 80px 20px; /* Adjusted padding for better fitting */
  margin: 0 auto; /* Center the section */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.contact-container {
  max-width: 800px; /* Reduced width for better fitting */
  margin: 0 auto;
  padding: 30px 20px; /* Adjusted padding for better spacing */
  background: rgba(20, 29, 47, 0.85);
  border-radius: 16px; /* Slightly reduced border radius */
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.contact-container h2 {
  font-size: 2rem; /* Adjusted font size */
  color: var(--accent-primary);
  margin-bottom: 16px;
  letter-spacing: 0.8px;
}

.contact-container p {
  color: var(--text-secondary);
  font-size: 1rem; /* Adjusted font size */
  margin-bottom: 24px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusted column size */
  gap: 20px; /* Reduced gap for better fitting */
  margin-top: 16px;
}

.social-card {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.10) 0%, rgba(168, 218, 220, 0.08) 100%);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: 12px; /* Reduced border radius */
  padding: 20px 16px; /* Adjusted padding */
  display: flex;
  align-items: center;
  gap: 12px; /* Reduced gap */
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
  box-shadow: 0 4px 20px rgba(100, 255, 218, 0.07);
  position: relative;
  overflow: hidden;
  min-height: 90px; /* Adjusted height */
}

.social-card:hover {
  box-shadow: 0 6px 28px rgba(100, 255, 218, 0.15);
  border: 1px solid var(--accent-primary);
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.15) 0%, rgba(168, 218, 220, 0.1) 100%);
}

.social-icon {
  background: var(--bg-primary);
  border-radius: 50%;
  padding: 12px; /* Adjusted padding */
  min-width: 48px; /* Adjusted size */
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(100, 255, 218, 0.1);
  transition: background 0.3s;
}

.social-card:hover .social-icon {
  background: var(--accent-primary);
}

.social-icon img {
  width: 20px; /* Adjusted size */
  height: 20px;
  filter: brightness(1.2);
  transition: filter 0.3s;
}

.social-card:hover .social-icon img {
  filter: brightness(0.2) invert(1);
}

.social-info {
  flex: 1;
  text-align: left;
}

.social-info h3 {
  color: var(--accent-primary);
  font-size: 1rem; /* Adjusted font size */
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.social-info span {
  color: var(--text-secondary);
  font-size: 0.9rem; /* Adjusted font size */
  opacity: 0.9;
  word-break: break-word;
}