:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #94a3b8;
  --dark: #0f172a;
  --light: #f8fafc;
  --accent: #f97316;
  --card-bg: rgba(30, 41, 59, 0.85);
  --card-border: rgba(255, 255, 255, 0.15);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--dark);
}

#webCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 10rem;
  background: transparent;
  min-height: 100vh;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.2rem 5%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--light);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

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

.nav-links li {
  margin-left: 2.5rem;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

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

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

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

.nav-links a.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light);
}

section {
  min-height: 100vh;
  padding: 7rem 5% 4rem;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.hero-content {
  max-width: 900px;
  padding: 2rem;
}

.hero-subtitle {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* FIXED TYPING ANIMATION STYLES */
.text-container {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transform: translateY(20px);
}

.text-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.static-text {
  color: var(--secondary);
  display: inline;
  margin: 0;
  padding: 0;
}

.typing-wrapper {
  display: inline;
  position: relative;
}

.dynamic-text {
  color: var(--primary);
  display: inline;
  text-align: left;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.cursor {
  display: inline-block;
  width: 5px;
  height: 1.5rem;
  background: var(--primary);
  box-shadow:
    0 0 10px var(--primary),
    0 0 20px rgba(59, 130, 246, 0.5);
  margin-left: 2px;
  vertical-align: middle;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
  transform: translateY(0);
}

.cursor.blink {
  animation: blink 0.9s step-end infinite;
}

.cursor.pulse {
  transform: scale(1.2);
  box-shadow:
    0 0 15px var(--primary),
    0 0 25px rgba(59, 130, 246, 0.7);
}

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

@media (max-width: 768px) {
  .text-container {
    font-size: 1.3rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .cursor {
    height: 1.7rem;
    width: 4px;
    margin-left: 0.04rem;
  }
}

@media (max-width: 576px) {
  .text-container {
    font-size: 1.1rem;
  }
  .cursor {
    height: 1.4rem;
    width: 3px;
    margin-left: 0.03rem;
  }
}

@media (max-width: 768px) {
  .text-container {
    font-size: 1.3rem;
  }
  .cursor {
    height: 1.3rem;
    width: 4px;
  }
}

@media (max-width: 576px) {
  .text-container {
    font-size: 1.1rem;
  }
  .cursor {
    height: 1.1rem;
    width: 3px;
  }
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--light);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

#about {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
}

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

/* .about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
 .about-image img { 
            width: 100%;
            height: auto;
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            display: block;
            transition: var(--transition);
        }

        .about-image:hover img {
            transform: scale(1.05);
        } */

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  height: 100%; /* Make image container fill its grid cell */
  display: flex; /* For better centering */
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
}

.about-image img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover; /* Ensures image covers container without distortion */
  display: block;
  transition: var(--transition);
  max-height: 500px; /* Adjust as needed */
}

.about-image:hover img {
  transform: scale(1.05);
}
@media (max-width: 992px) {
  .about-image img {
    max-height: 400px; /* Slightly smaller on tablets */
  }
}

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

  .about-image {
    height: 300px; /* Fixed height on mobile */
    margin-bottom: 2rem;
  }

  .project-image {
    height: 180px; /* Slightly smaller on mobile */
  }
}

@media (max-width: 576px) {
  .about-image {
    height: 250px;
  }

  .project-image {
    height: 200px;
    overflow: hidden;
    display: flex; /* For better centering */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
  }

  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers container without distortion */
    transition: var(--transition);
  }
  .project-image {
    height: 150px;
  }
}

.about-text h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-text h3 span {
  color: var(--primary);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--secondary);
  max-width: 100%;
  text-align: justify;
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1.1rem;
}

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

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: #1a237e; /* Your dark blue theme */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4facfe; /* Light blue accent color */
  font-size: 1.2rem;
  transition: all 0.3s ease;
  margin-right: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover effect to make it feel high-end */
.info-item:hover .info-icon {
  background: #4facfe;
  color: #ffffff;
  transform: scale(1.1) rotate(10deg);
}

.info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.info-content p {
  margin: 0;
  color: var(--secondary);
  font-size: 0.95rem;
}

#skills {
  background: rgba(15, 23, 42, 0.5);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.skills-column h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.skill-item {
  margin-bottom: 2rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.skill-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.skill-percentage {
  color: var(--primary);
  font-weight: 600;
}

.skill-bar {
  height: 10px;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

/* Projects Section */
#projects {
  background: rgba(15, 23, 42, 0.7);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.projects-filter {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
}

.view-all-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.view-all-btn:hover {
  background: var(--primary);
  color: white;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Update your project image styles */
.project-image {
  height: 200px;
  overflow: hidden;
  display: flex; /* For better centering */
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers container without distortion */
  transition: var(--transition);
}
.project-card:hover .project-image img {
  transform: scale(1.1);
}
.project-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-content {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.project-subtitle {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.project-description {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(79, 172, 254, 0.1);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: #4facfe;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  margin-right: 5px;
  margin-bottom: 5px;
  display: inline-block;
}

.project-links {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.project-link.live {
  background: var(--primary);
}

.project-link.live:hover {
  background: var(--primary-dark);
}

.btn-sm {
  padding: 8px 15px;
  background: #1a237e;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.85rem;
  transition: 0.3s;
  border: 1px solid #4facfe;
}

.btn-sm:hover {
  background: #4facfe;
  color: #1a237e;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 992px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .hamburger {
    display: block;
  }

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

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

@media (max-width: 576px) {
  section {
    padding: 6rem 5% 3rem;
  }

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

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

#contact {
  background: rgba(15, 23, 42, 0.9);
  padding-bottom: 5rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: #1a237e; /* Your dark blue theme */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4facfe; /* Light blue accent color */
  font-size: 1.2rem;
  transition: all 0.3s ease;
  margin-right: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover effect to make it feel high-end */
.contact-item:hover .contact-icon {
  background: #4facfe;
  color: #ffffff;
  transform: scale(1.1) rotate(10deg);
}

.contact-details h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-details p,
.contact-details a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.contact-details a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light);
  font-size: 1.1rem;
  transition: var(--transition);
}

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

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--card-border);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--light);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.8);
}

.form-control:invalid[focused="true"] {
  border-color: #ef4444;
}

.form-control:invalid[focused="true"] ~ .error-message {
  display: block;
}

.error-message {
  display: none;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

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

.submit-btn {
  background: var(--primary);
  color: white;
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--primary-dark);
}

/* Footer Styles */
footer {
  background: rgba(2, 6, 23, 0.95);
  padding: 4rem 5% 2rem;
  color: var(--light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 2rem;
}

/* .footer-logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--light);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
} */

/* .footer-logo span {
  color: var(--primary);
} */

/* .footer-tagline {
  color: var(--secondary);
  font-size: 1rem;
  max-width: 300px;
  line-height: 1.6;
} */

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

.footer-section {
  margin-bottom: 2rem;
}

.footer-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--light);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-block;
}

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

.footer-contact {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-contact i {
  color: var(--primary);
  margin-right: 0.8rem;
  font-size: 1rem;
  margin-top: 0.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  text-decoration: none;
  transition: 0.3s;
}

.social-link:hover {
  background: #4facfe;
  transform: translateY(-5px);
}
/* Footer Bottom Styles */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.copyright {
  font-size: 0.9rem;
  margin: auto;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* .footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
} */

/* .legal-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
} */
/* 
.legal-link:hover {
    color: var(--primary);
} */

/* .divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
} */

.back-to-top {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.back-to-top:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .copyright {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-section {
    margin-bottom: 1.5rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

@media (max-width: 992px) {
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

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

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

  .text-container {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .hamburger {
    display: block;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .text-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dynamic-text {
    min-width: 200px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 5rem 5% 3rem;
  }

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

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

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

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

  .text-container {
    font-size: 0.9rem;
  }
}




