@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #ff6f00;
  --primary-light: #000000;
  --primary-dark: #c43e00;
  --secondary-color: #2c3e50;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1a1a1a;
  --bg-light: #333333;
  --bg-lighter: #444444;
  
  /* Spacing */
  --section-padding: 100px 0;
  --element-margin: 2rem;
  
  /* Animations */
  --transition-fast: 0.8s ease;
  --transition-medium: 0.9s ease;
  --transition-slow: 0.8s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px */
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-dark);
  font-size: 1.6rem;
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; /* Centers content */
  padding: 0 2rem;
  box-sizing: border-box;
}

section {
  padding: var(--section-padding);
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

section > .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  text-decoration: none;
  color: var(--text-light);
  transition: color var(--transition-slow);
}

.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  border-radius: 5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.4rem;
  margin-right: 1.5rem;
  margin-top: 2rem;
  border: none;
  outline: none;
}

.primary-btn {
  background-color:var(--primary-color);
  color: #000000;
  font-weight: bold !important;
}

.primary-btn:hover {
  color: var(--primary-color);
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  font-weight: bold !important;
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.highlight {
  color: var(--primary-color);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  width: 100%;
}

.section-header h2 {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.underline {
  width: 8rem;
  height: 0.4rem;
  background-color: var(--primary-color);
  margin: 0 auto;
  position: relative;
}

.underline::before {
  content: '';
  position: absolute;
  width: 4rem;
  height: 0.4rem;
  background-color: var(--primary-color);
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
}

.underline::after {
  content: '';
  position: absolute;
  width: 2rem;
  height: 0.4rem;
  background-color: var(--primary-color);
  top: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Apply to html and body to prevent overflow */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Fix all container elements */
body > * {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Make sure all content sections respect viewport width */
section, header, .new, footer, main, nav {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  margin-left: 0;
  margin-right: 0;
}

/* Adjust padding for very small screens */
@media screen and (max-width: 30px) {
  .navbar {
    padding: 1rem 0.5rem !important;
  }
  
  /* Reduce any horizontal paddings/margins */
  section, div, header, footer, main {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Ensure absolute/fixed elements don't cause overflow */
  [style*="position: absolute"], 
  [style*="position: fixed"],
  [style*="position:absolute"], 
  [style*="position:fixed"],
  .nav-links {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  /* Handle potential fixed-width elements */
  img, video, iframe, table, .logo {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
  z-index: -1;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color var(--transition-medium), padding var(--transition-medium);
}

.navbar.scrolled {
  background-color: rgba(26, 26, 26, 0.95);
  padding: 1rem 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
}

.logo span {
  color: var(--primary-color);
  background-color: rgba(255, 111, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 111, 0, 0.3);
}

/* Base navbar styling */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  border: none !important;
  box-shadow: none !important; 
  outline: none !important; 
  padding: 1rem 2rem;
}

/* Your existing nav-links styling */
.nav-links {
  display: flex;
  list-style: none;
  border: none !important; 
  box-shadow: none !important; 
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 3rem;
  border: none !important; 
}

.nav-links li a {
  font-size: 1.6rem;
  font-weight: 500;
  position: relative;
  text-decoration: none; 
  border: none !important; 
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width var(--transition-fast);
  border: none !important;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Hamburger menu toggle styling */
.menu-toggle {
  display: none;
  cursor: pointer;
  border: none !important;
  background: transparent !important; 
  padding: 0; 
  outline: none !important; 
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  border: none !important;
  border-radius: 0; 
}

/* Mobile responsive styles */
@media screen and (max-width: 550px) {
  .navbar {
    padding: 1.5rem;
  }
  
  /* Show hamburger menu */
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  /* Transform hamburger to X when active */
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Mobile navigation menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-dark, #121212); /* Use your theme's dark background color */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    transition: right 0.3s ease;
    z-index: 1000;
    margin: 0;
    padding: 0;
    padding-top: 80px; 
    box-shadow: none !important;
    border: none !important; 
    outline: none !important; 
  }
  
  /* When menu is active */
  .nav-links.active {
    right: 0;
  }
  
  /* Adjust list items for vertical layout */
  .nav-links li {
    margin: 5px 0; 
    margin-left: 0; 
    text-align: center;
    width: 100%;
    border: none !important; 
  }
  
  .nav-links li a {
    display: block;
    padding: 8px 0; 
    width: 100%;
    color: var(--text-light, #fff); 
    border: none !important; 
  }
  
  /*  logo stays visible and above mobile menu */
  .logo {
    z-index: 1001;
  }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden; 
    padding: 1rem 2rem;
    width: 100%;
}

.logo {
    max-width: 100%;   
    overflow: hidden;  
    display: flex;      
    align-items: center;
    white-space: nowrap; 
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  width: 100%;
}

.hero-content {
  animation: fadeIn 1s ease;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.greeting {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.name {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.typing {
  color: #ff6f00;
}

.typing-wrapper {
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 3rem;
}

.typing::after {
  content: '|';
  animation: blink 0.5s infinite;
}

.social-links {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--bg-lighter);
  margin: 0 1rem;
  transition: all var(--transition-fast);
}

.social-icon i {
  font-size: 1.8rem;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.social-icon:hover i {
  color: var(--text-dark);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.scroll-arrow i {
  font-size: 2rem;
  color: var(--primary-color);
}

.primary-btn:hover {
  background-color: black;
  color: rgb(230, 114, 20);
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: rgba(0, 0, 0, 0.3);
  width: 100%;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 25rem;
  height: 25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 20px 5px #ff6f00;
  margin: 0 auto;
}

.image-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 15px 5px rgba(207, 13, 13, 0.2);
  pointer-events: none; /* Prevents interference with clicks */
}

.image-outline::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none; /* Prevents interference with clicks */
}

/* Fixed image placeholder */
.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent; /* Changed from var(--bg-lighter) to transparent */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  overflow: hidden; /* Ensures content stays within bounds */
}

/* For icon placeholder (when no image is present) */
.image-placeholder i {
  font-size: 8rem;
  color: var(--primary-color);
}

/* For the actual image */
.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  width: 100%;
}

.about-text p {
  margin-bottom: 2rem;
}

.about-text .intro {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 500;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

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

.detail a {
  text-decoration: none;
  color: inherit;
  padding: 5px 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.detail a i {
  color: rgb(230, 114, 20);
  margin-right: 15px;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.detail a:hover {
  background-color: black;
  color: rgb(230, 114, 20);
}

.detail a:hover i {
  color: rgb(230, 114, 20); 
}

.detail {
  display: flex;
  align-items: center;
}

.detail i {
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

/* ===== SKILLS SECTION ===== */
.skills-content {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.skills-category {
  width: 100%;
}

.skills-category h3 {
  font-size: 2.4rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
  width: 100%;
}

.skill-item {
  background-color: var(--bg-lighter);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.skill-info h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.skill-bar {
  height: 0.8rem;
  background-color: var(--bg-dark);
  border-radius: 0.4rem;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 0.4rem;
  position: relative;
  animation: skillFill 2s ease-out forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Add media queries for responsiveness */
@media screen and (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .about-image {
    order: -1;
  }
  
  .image-wrapper {
    width: 20rem;
    height: 20rem;
    margin: 0 auto;
  }
  
  .about-details {
    grid-template-columns: 1fr 1fr;
    justify-content: center;
  }
  
  .detail {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .about-details {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .detail {
    justify-content: center;
  }
  
}

@media screen and (max-width: 480px) {
  .image-wrapper {
    width: 18rem;
    height: 18rem;
  }
  
  .image-placeholder i {
    font-size: 6rem;
  }
  
  .about-text .intro {
    font-size: 1.8rem;

  }
  
  .about-text {
    text-align: center;
  }
  
  .about-details {
    justify-items: center;
  }
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4rem 0;
  width: 100%;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  width: 100%;
}

@media screen and (max-width: 768px) {
  /* Adjust the social links to have more bottom margin */
  .social-links {
    margin-top: 2rem;
    margin-bottom: 5rem; /* Add space below social icons */
  }
  
  /* Make social icons slightly smaller on mobile */
  .social-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 0.8rem;
  }
  
  /* Move the scroll indicator higher up from the bottom */
  .scroll-indicator {
    bottom: 1.5rem;
  }
}

.filter-btn {
  background: none;
  border: 2px solid transparent;
  color: var(--text-light);
  font-size: 1.6rem;
  margin: 0.5rem 1rem;
  padding: 1rem 2rem;
  border-radius: 5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  color: #000000;
  background-color: #ff6f00;
  font-weight: bold !important;
}

.filter-btn:hover, .filter-btn.active {
  background-color: black;
  color: #ff6f00;
  border-color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
  background-color: #000000;
  color: #ff6f00;
  border-color:#ff6f00;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.project-card {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(30, 30, 30, 0.7);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 10px 10px 0 0;
  position: relative;
}

.project-image {
  width: 100%;
  height: 4em;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px 10px 0 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Add this new class for handling project images */
.project-image img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

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

/* Make projects container more responsive */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 100%;
}

/* Change the grid layout for smaller screens */
@media screen and (max-width: 768px) {
  .about-content {
    display: flex; /* Change from grid to flex */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items */
    gap: 2rem; /* Add some space between items */
  }

  .about-image {
    order: 0; /* Ensure the image appears first */
    margin: 0 auto; /* Center the image */
  }

  .about-text {
    text-align: center; /* Center the text */
    padding: 0 1rem; /* Add some padding */
  }

  .about-details {
    display: flex; /* Change to flex for better alignment */
    flex-direction: column; /* Stack details vertically */
    align-items: center; /* Center details */
    gap: 1rem; /* Add space between details */
  }
  
    .filter-container {
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items */
    gap: 1rem; /* Add space between buttons */
  }
  .filter-btn {
    width: 100%; /* Make buttons full width */
    max-width: 300px; /* Set a max width for buttons */
    padding: 1rem; /* Adjust padding for better touch targets */
  }
}



/* For even smaller screens */
@media screen and (max-width: 480px) {
  /* Add more space below social icons for very small screens */
  .social-links {
    margin-bottom: 6rem;
  }
  
  /* Further adjust the scroll indicator position */
  .scroll-indicator {
    bottom: 1rem;
  }
    .filter-container {
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items */
    gap: 1rem; /* Add space between buttons */
  }
  .filter-btn {
    width: 100%; /* Make buttons full width */
    max-width: 300px; /* Set a max width for buttons */
    padding: 1rem; /* Adjust padding for better touch targets */
  }


  
  /* Make the animation less dramatic for small screens */
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    40% {
      transform: translateX(-50%) translateY(-10px);
    }
    60% {
      transform: translateX(-50%) translateY(-5px);
    }
  }
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.project-link {
  color: #fff;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  background-color: #ff6f00;
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.project-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.project-tags span {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background-color:#ff6f00;
  color: black;
  font-weight: bold !important;
  border-color:#ff6f00;
  font-size: 10px;
}

.project-tags span:hover {
  background-color: black;
  color: #ff6f00;
  border-color:#ff6f00;
  font-weight: bold !important;
  transform: translateY(-3px);
}

.ptitle{
  color: var(--primary-color);
  font-size: 2rem;
}
/* ===== CONTACT SECTION ===== */
.contact {
  background-color: rgba(0, 0, 0, 0.3);
  padding: var(--section-padding);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}

.contact-info {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  background-color: var(--bg-lighter);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.contact-text {
  flex: 1;
}

.contact-text h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-text p a {
  font-size: 1.5rem;
  color: var(--text-light);
}

.contact-text p a:hover {
  color: #e16811;
}

/* ===== SOCIAL ICONS ===== */
.social-links-large {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 700px;
}

.social-icon-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background-color: var(--bg-lighter);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.social-icon-large i {
  font-size: 2rem;
  color: var(--text-light);
}

.social-icon-large:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.social-icon-large:hover i {
  color: var(--text-dark);
}

/* ===== FOOTER ===== */
.footer {
  background-color: rgba(26, 26, 26, 0.95);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.footer-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff6f00;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 4rem;
  height: 4rem;
  background-color: #ff6f00;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background-color: transparent;
  color: #ff6f00;
  border:  transparent;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 14px; 
  height: 14px;
}

::-webkit-scrollbar-track {
  background: #121212; 
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #ff6f00, #ff9500);
  border-radius: 10px;
  border: 2px solid #121212; 
  box-shadow: 0 0 10px rgba(255, 111, 0, 0.6);  
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff9500;  
  box-shadow: 0 0 15px rgba(255, 149, 0, 0.8);  
}

::-webkit-scrollbar-corner {
  background: #121212;
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #ff6f00 #121212;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 5px rgba(255, 111, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 111, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 111, 0, 0.4);
  }
}

/* ===== IMPROVED RESPONSIVE DESIGN ===== */
/* Tablet and smaller screens */
@media screen and (max-width: 992px) {
  .contact-info {
    max-width: 600px;
  }
}
/* Mobile screens */
@media screen and (max-width: 768px) {
  .contact-content {
    padding: 0 1.5rem;
  }
  
  .contact-info {
    max-width: 100%;
  }
  
  .social-links-large {
    gap: 1.5rem;
  }
  
  .social-icon-large {
    width: 4rem;
    height: 4rem;
  }
  
  .back-to-top {
    bottom: 2rem;
    right: 2rem;
  }

  /* Changes for the About section */
  .about-content {
    display: flex; /* Change from grid to flex */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items */
    gap: 2rem; /* Add some space between items */
  }

  .about-image {
    order: 0; /* Ensure the image appears first */
    margin: 0 auto; /* Center the image */
  }

  .about-text {
    text-align: center; /* Center the text */
    padding: 0 1rem; /* Add some padding */
  }

  .about-details {
    display: flex; /* Change to flex for better alignment */
    flex-direction: column; /* Stack details vertically */
    align-items: center; /* Center details */
    gap: 1rem; /* Add space between details */
  }
  
}

/* Small mobile screens */
@media screen and (max-width: 480px) {
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 1.5rem;
    font-size: 3rem;
  }
  
  .contact-text {
    width: 100%;
    text-align: center;
  }
  
  .social-links-large {
    gap: 1rem;
  }
  
  .social-icon-large {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .social-icon-large i {
    font-size: 1.8rem;
  }
  
  .footer {
    padding: 1.5rem 0;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Fix for the body alignment issue */
body {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: hidden;
}

/* Ensure all sections are centered properly */
section, header, footer, .hero, .about, .skills, .projects, .contact {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure container elements center content */
.container, .hero-content, .about-content, .skills-content, .projects-container, .contact-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Fix for the about section on smaller devices */
@media screen and (max-width: 992px) {
  .about-content {
    text-align: center;
    padding: 0 1.5rem;
  }
  
  .about-image {
    margin: 0 auto;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-details {
    justify-content: center;
  }
  
  .detail {
    justify-content: center;
  }
}

/* ===== ABOUT SECTION - MOBILE ALIGNMENT FIX ===== */
@media screen and (max-width: 768px) {
  .about-content {
    align-items: flex-start;
    text-align: left;
    padding: 0 1.5rem;
  }

  .about-image {
    margin: 0 auto 3rem auto;
  }

  .about-text {
    text-align: left;
  }

  .about-details {
    justify-content: flex-start;
  }

  .detail {
    justify-content: flex-start;
    margin-left: 0;
  }

  .detail a {
    justify-content: flex-start;
    text-align: left;
  }
}

/* For very small screens */
@media screen and (max-width: 480px) {
  .about-content {
    padding: 0 1rem;
  }
  
  .detail {
    max-width: 100%;
  }
}

/* ===== ABOUT DETAILS MOBILE ALIGNMENT FIX ===== */
@media screen and (max-width: 768px) {
  .about-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed from center to flex-start */
    width: 100%;
    gap: 1.5rem;
  }

  .detail {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Ensures content sticks to left */
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .detail a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    text-align: left;
    margin: 0;
    padding: 0;
  }

  .detail i {
    margin-right: 15px;
    min-width: 20px; /* Prevents icon movement */
  }

  .detail span {
    text-align: left;
  }

  .btn.primary-btn {
    align-self: flex-start;
    margin-left: 0;
    margin-top: 2rem;
  }
}

