/* Modern CSS Reset and Variables */
:root {
  --primary: #f8f8f8;
  --secondary: #4f46e5;
  --accent: #22d3ee;
  --gradient: linear-gradient(90deg, var(--secondary), var(--accent));
  --text: #a1a1aa;
  --light-text: #d4d4d8;
  --background: #0a0a0c;
  --card-background: rgba(30, 30, 34, 0.5);
  --nav-background: rgba(15, 15, 18, 0.9);
  --section-background: var(--background);
  --glow-shadow: 0 0 20px rgba(79, 70, 229, 0.15);
  --hover-glow: 0 0 30px rgba(79, 70, 229, 0.3);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}
::-webkit-scrollbar {
  display: none; /* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-background);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

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

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

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

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

/* Hero Section */
#home {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
}

/* Text content */
.hero-text-wrapper {
  max-width: 600px;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin: 1rem 0;
  color: var(--primary);
}

.lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Image section */
.hero-image {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 50%;
  background: var(--card-background);
  box-shadow: var(--glow-shadow);
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transition: var(--transition);
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--card-background);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--glow-shadow);
  z-index: 2;
  white-space: nowrap;
}

.card-experience {
  top: 10%;
  left: -20%;
}

.card-projects {
  bottom: 10%;
  right: -10%;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
  .hero-content {
    gap: 2rem;
    padding: 2rem;
  }

  .hero-image {
    max-width: 350px;
  }

  h1 {
    font-size: 3rem;
  }
}

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

  .hero-text-wrapper {
    margin: 0 auto;
  }

  .hero-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .floating-card {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .card-experience {
    left: -5%;
  }

  .card-projects {
    right: -5%;
  }

  .tech-stack-brief,
  .cta-buttons,
  .social-links {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    max-width: 250px;
  }

  .floating-card {
    position: static;
    margin: 0.5rem auto;
    transform: none !important;
  }
}

/* Tech stack brief */
.tech-stack-brief {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.tech-item:hover {
  background: var(--gradient);
  transform: translateY(-2px);
}

/* Enhanced image section */
.image-wrapper {
  position: relative;
  display: inline-block;
}

.floating-card {
  position: absolute;
  background: var(--card-background);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--glow-shadow);
  animation: float 6s ease-in-out infinite;
}

.card-experience {
  top: 10%;
  left: -20%;
  animation-delay: 1s;
}

.card-projects {
  bottom: 10%;
  right: -20%;
  animation-delay: 2s;
}

.floating-card i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Social buttons with tooltips */
.social-btn {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-background);
  border-radius: 50%;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--gradient);
  transform: translateY(-3px);
}

.tooltip {
  position: absolute;
  bottom: -2rem;
  background: var(--card-background);
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.social-btn:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-text);
  animation: bounce 2s infinite;
}

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

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-glow);
}

.btn-secondary {
  background: var(--card-background);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--light-text);
  font-size: 1.5rem;
  transition: var(--transition);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent);
}

/* Section Styles */
section {
  position: relative;
  padding: 5rem 0;
  z-index: 1;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
}

section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
}

section:nth-child(even) {
  background: var(--section-background);
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 3rem;
  text-align: center;
  text-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

/* About Section */
#about {
  position: relative;
  overflow: hidden;
}

.section-title .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.about-image-container {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 120%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glow-shadow);
}

.about-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    210deg,
    rgba(79, 70, 229, 0.2),
    rgba(34, 211, 238, 0.2)
  );
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-description {
  color: var(--light-text);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

/* Responsive styles */
@media screen and (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrapper {
    padding-top: 60%;
    max-width: 600px;
    margin: 0 auto;
  }
}

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

  .about-description {
    font-size: 1rem;
  }
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
}

.skill-category {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--glow-shadow);
  backdrop-filter: blur(10px);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-glow);
  border-color: rgba(79, 70, 229, 0.2);
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--light-text);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-item i {
  font-size: 1.2rem;
  color: var(--accent);
}

.skill-item:hover {
  background: var(--gradient);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}

.skill-item:hover i {
  color: white;
}

.skill-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: 0.5s;
  opacity: 0;
}

.skill-item:hover::after {
  opacity: 1;
  left: 100%;
}

/* Projects Section Styling */
#projects {
  background: var(--section-background);
  position: relative;
  overflow: hidden;
}

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

.featured-project-card {
  background: var(--card-background);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--glow-shadow);
  transition: var(--transition);
  height: 100%;
}

.featured-project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-glow);
}

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

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

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

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tech span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: white;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.project-content p {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links .btn {
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Other Projects Section */
.other-projects {
  margin-top: 4rem;
}

.other-projects h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: left;
  padding-left: 2rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 800px;
  margin-right: auto;
  margin-left: 2rem;
}

.project-item {
  background: var(--card-background);
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  box-shadow: var(--glow-shadow);
  transition: var(--transition);
  width: 100%;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-glow);
}

.project-item h4 {
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.project-item p {
  color: var(--text);
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.project-tech-stack {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.project-tech-stack span {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent);
}

.project-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 1rem;
  margin-top: 1rem;
}

.project-item a:first-of-type {
  background: var(--card-background);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item a.demo-link {
  background: var(--gradient);
  color: white;
  box-shadow: var(--glow-shadow);
}

.project-item a:hover {
  transform: translateY(-2px);
}

.project-item a:first-of-type:hover {
  background: rgba(255, 255, 255, 0.1);
}

.project-item a.demo-link:hover {
  box-shadow: var(--hover-glow);
}

.demo-link {
  background: var(--secondary);
  color: white !important;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.demo-link:hover {
  background: var(--accent);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .projects-list {
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: 100%;
  }
  
  .other-projects h3 {
    text-align: center;
    padding-left: 0;
  }
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.contact-item i {
  color: var(--secondary);
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
  margin-right: 1rem;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--secondary);
}

/* Footer Styles */
footer {
  background: var(--background);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-left h3 {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-left p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--text);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-contact p {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--gradient);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--glow-shadow);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-glow);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text);
  font-size: 0.9rem;
}

.scroll-top {
  width: 40px;
  height: 40px;
  background: var(--card-background);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
}

.scroll-top:hover {
  background: var(--gradient);
  transform: translateY(-3px);
  box-shadow: var(--hover-glow);
}

/* Responsive styles */
@media screen and (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-contact {
    grid-column: span 2;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact {
    grid-column: auto;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-links nav {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Footer Quick Links styles */
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  text-align: left;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .footer-links,
  .footer-links h4,
  .footer-links nav,
  .footer-links a {
    align-items: center;
    text-align: center;
  }
}

/* Loading Screen Styles */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.loader {
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Animation Base Styles */
.fade-in,
.slide-in-left,
.slide-in-right,
.scale-in {
  opacity: 0;
  will-change: transform, opacity;
}

/* Fade In Animation */
.fade-in {
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Slide In Left Animation */
.slide-in-left {
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.appear {
  opacity: 1;
  transform: translateX(0);
}

/* Slide In Right Animation */
.slide-in-right {
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.appear {
  opacity: 1;
  transform: translateX(0);
}

/* Scale In Animation */
.scale-in {
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.appear {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Animation for Multiple Items */
@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure sections are visible */
section {
  opacity: 1;
  visibility: visible;
}

/* Keep loader on top */
.loader-wrapper {
  z-index: 99999;
}

/* Add these new animation styles */
/* Smooth Section Transitions */
.section-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-transition.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Project Card Hover Effects */
.project-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-glow);
}

/* Skill Item Hover Effects */
.skill-item {
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-3px);
  background: var(--gradient);
  box-shadow: var(--glow-shadow);
}

.skill-item:hover i,
.skill-item:hover span {
  color: white;
}

/* Parallax Effect */
.parallax {
  transform: translateY(var(--scroll-offset));
  transition: transform 0.1s ease-out;
}

/* Mobile Menu Animation */
.menu-btn__burger {
  transition: all 0.3s ease;
}

.menu-btn.active .menu-btn__burger {
  transform: rotate(45deg);
}

.menu-btn.active .menu-btn__burger::before {
  transform: rotate(90deg);
  top: 0;
}

.menu-btn.active .menu-btn__burger::after {
  opacity: 0;
}
/* Modal styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 12, 0.8); /* Matches --background with opacity */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto; /* Enable scrolling if modal content is too tall */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.modal::-webkit-scrollbar {
  display: none; /* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
}
.modal-content {
  background: var(--card-background);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px; /* Slightly wider for additional fields */
  max-height: calc(100vh - 2rem); /* Limit height to viewport minus padding */
  overflow-y: auto; /* Enable scrolling within modal content */
  position: relative;
  box-shadow: var(--glow-shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 1rem auto; /* Center vertically with margin */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.modal-content::-webkit-scrollbar {
  display: none; /* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
}

.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light-text);
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

/* Form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  color: var(--light-text);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}
/* Dropdown styling */
.form-group select {
  appearance: none; /* Remove default browser styling */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.form-group select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

.form-group select option {
  background-color: var(--background);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background: var(--gradient);
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-glow);
}

#responseMessage {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
}

#responseMessage.success {
  color: #22c55e; /* Green for success */
}

#responseMessage.error {
  color: #ef4444; /* Red for error */
}
.error-message {
  color: #ff0000;
  font-size: 0.85em;
  margin-top: 5px;
  display: none; /* Hidden by default */
}