/* Base Styles */
:root {
  --primary-color: #4F46E5;
  --secondary-color: #06B6D4;
  --dark-color: #0F172A;
  --light-color: #F8FAFC;
  --text-color: #475569;
  --text-muted: #94A3B8;
  --bg-color: #FFFFFF;
  --gray-color: #F1F5F9;
  --border-color: #E2E8F0;
  --dark-gray: #64748B;
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Plus Jakarta Sans", sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 100px 0;
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
  margin-bottom: 15px;
  color: var(--dark-color);
  letter-spacing: -0.02em;
}

.underline {
  height: 4px;
  width: 60px;
  background: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
  margin-right: 10px;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  font-weight: 500;
}

.btn-small:hover {
  background: var(--dark-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Highlight */
.highlight {
  font-size: clamp(1.5rem, 5vw, 3rem);
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Header & Navigation */
header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-color);
  position: relative;
  z-index: 1000;
  letter-spacing: -0.02em;
}

.logo a {
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  color: inherit;
}

.logo a:hover {
  transform: none;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 700;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--text-color);
}

/* Hero Section - Enhanced Modern Design */
.hero {
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  background: var(--bg-color);
  margin-top: 60px;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle background glowing elements */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  top: -300px;
  right: -200px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-intro {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  animation: slideInLeft 0.8s ease-out;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 800;
  color: var(--dark-color);
  letter-spacing: -0.03em;
  line-height: 1.1;
  animation: slideInLeft 1s ease-out;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-color);
  animation: slideInLeft 1.2s ease-out;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 25px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  animation: slideInLeft 1.4s ease-out;
}

.hero-achievements {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 30px;
  animation: slideInLeft 1.5s ease-out;
}

.achievement-item {
  font-size: 0.9rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hero-action-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  animation: slideInLeft 1.6s ease-out;
}

.hero-btns {
  margin-bottom: 25px;
}

.hero-btns .btn {
  margin: 0 10px;
}

/* Hero section layout */
.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 10;
}

.hero-text {
  flex: 1;
  text-align: left;
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  max-width: 350px;
  border-radius: 50%;
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--border-color);
  z-index: 10;
  position: relative;
  animation: floatImage 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Media query for responsive hero */
@media (max-width: 992px) {
  .hero-flex {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 60px;
    gap: 2rem;
  }

  .hero-text, .hero-image {
    width: 100%;
    flex: none;
    text-align: center;
  }

  .hero-text .social-icons {
    justify-content: center;
  }

  .hero-image img {
    max-width: 280px;
    margin: 0 auto 2rem auto;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 100vh;
    height: auto;
    padding: 100px 0 40px;
  }

  .hero-image img {
    max-width: 220px;
    margin-top: 40px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn {
    width: auto;
    min-width: 200px;
    margin: 8px 0;
  }

  .hero-achievements {
    justify-content: center;
    gap: 8px;
  }

  .achievement-item {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .hero::before,
  .hero::after {
    display: none; /* Hide floating shapes on mobile for better performance */
  }
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.hero-text .social-icons {
  justify-content: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-color);
  background-color: var(--gray-color);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  color: white;
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* About Section */
.about {
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-lead {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 25px;
  line-height: 1.5;
}

.about-body p {
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 1.1rem;
}

.skills-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.skills-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.skill-category h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.skill-tags span:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Experience Section */
.experience {
  background-color: var(--bg-color);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-color);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 3px var(--primary-color);
  z-index: 1;
}

.timeline-content {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 500;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.timeline-details {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
}

.timeline-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.timeline-details li:last-child {
  margin-bottom: 0;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  background: var(--bg-color);
  color: var(--dark-color);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -27px;
    width: 12px;
    height: 12px;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 6px;
  }

  .timeline-title h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .experience {
    padding: 60px 0;
  }

  .timeline-content {
    padding: 16px;
  }

  .timeline-details li {
    font-size: 0.85rem;
  }
}

/* Core Expertise Section */
.services {
  background-color: var(--light-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-color);
  padding: 35px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: var(--light-color);
  border-radius: 16px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary-color);
  color: white;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Projects Section */
.projects {
  background-color: var(--bg-color);
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
  gap: 8px;
  background: var(--light-color);
  padding: 6px;
  border-radius: 50px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-color);
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: none;
  border-radius: 40px;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.project-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card.featured {
  grid-column: span 2;
}

@media (max-width: 992px) {
  .project-card.featured {
    grid-column: span 1;
  }
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--light-color) 0%, var(--border-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 4rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.project-card:hover .project-image-placeholder {
  color: var(--primary-color);
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

.project-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-weight: 800;
  color: var(--dark-color);
  letter-spacing: -0.01em;
}

.project-subtitle {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-content p {
  color: var(--text-color);
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.project-tags {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background-color: var(--light-color);
  color: var(--dark-color);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* Contact Section */
.contact {
  background-color: var(--light-color);
}

.contact-wrapper {
  display: flex;
  gap: 50px;
}

.contact-info,
.contact-form {
  flex: 1;
  background: var(--bg-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  font-weight: 700;
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--text-color);
  line-height: 1.6;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--light-color);
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-item i {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-size: 1.3rem;
  transition: var(--transition);
}

.contact-item:hover i {
  background-color: var(--dark-color);
  transform: scale(1.05);
}

.contact-item p {
  margin: 0;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
  color: var(--text-color);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 30px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.back-to-top a:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Typing animation */
.typewriter-container {
  display: inline-block;
  min-width: 250px; /* Reduced from 280px for narrow mobile screens */
  max-width: 100%;
  text-align: left;
}

.typed-text {
  font-weight: 700;
  color: var(--primary-color);
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--primary-color);
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 99% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
    opacity: 1;
  }
  
  section {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .about-img {
    margin-bottom: 30px;
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .contact-info {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }

  .nav-item {
    margin: 16px 0;
  }

  .nav-menu.active {
    left: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  body.no-scroll {
    overflow: hidden;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .about-text h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero-btns .btn {
    display: block;
    width: 80%;
    margin: 10px auto;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}
/* Add these rules to the end of your existing CSS file */

/* Animation for sections - Progressive Enhancement */
section {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-enabled section:not(.show) {
  opacity: 0;
  transform: translateY(20px);
}

body.js-enabled section.show {
  opacity: 1;
  transform: translateY(0);
}

/* Make sure the mobile menu is visible when active */
.nav-menu.active {
  left: 0;
  display: flex;
  z-index: 1000;
}

/* Fix for the typing animation */
.cursor.typing {
  animation: none;
}

/* Ensure proper touch area for mobile */
.nav-link,
.social-icon,
.btn,
.btn-small,
.filter-btn {
  min-height: 44px; /* Apple's recommended minimum touch target size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Fix for project filter buttons on mobile */
@media (max-width: 576px) {
  .project-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 80%;
    margin-bottom: 8px;
  }
}



/* ============================================
   VISUAL ENHANCEMENTS - Purple-Yellow Theme
   ============================================ */

/* Gradient Text for Section Headings */
.section-header h2,
.about-text h3,
.skills h3 {
  background: linear-gradient(135deg, #667eea 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Section Background Gradients */


.btn-secondary:hover {
  background-color: var(--light-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary-small {
  padding: 8px 16px;
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.btn-secondary-small:hover {
  background-color: var(--light-color);
  transform: translateY(-2px);
}

.btn:hover,
.btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Contact Section */
/* ============================================
/* CERTIFICATIONS SECTION
   ============================================ */

.certifications {
  background-color: var(--light-color);
  padding: 80px 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.cert-card {
  background: var(--bg-color);
  padding: 35px 25px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.cert-card:hover::before {
  transform: scaleX(1);
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.cert-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
  transition: var(--transition);
}

.cert-card:hover .cert-icon {
  transform: scale(1.1) translateY(-5px);
}

.cert-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  line-height: 1.4;
  font-weight: 700;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-issuer {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--light-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.cert-link:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.cert-link i {
  margin-right: 6px;
}

.cert-link-placeholder {
  display: inline-block;
  padding: 10px 24px;
  background: var(--bg-color);
  color: var(--text-muted);
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.cert-link-placeholder i {
  margin-right: 6px;
  color: #10B981;
}

/* Responsive Design for Certifications */
@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cert-card h3 {
    font-size: 1.1rem;
    min-height: auto;
  }
  
  .cert-icon {
    font-size: 3rem;
  }
}

/* Fix Contact Icons in Mobile View */
.contact-item i {
  flex-shrink: 0;
  min-width: 45px;
  min-height: 45px;
}

@media (max-width: 768px) {
  .contact-item {
    padding: 12px;
  }
  
  .contact-item i {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 1.1rem;
    margin-right: 12px;
  }
  
  .contact-item p {
    font-size: 0.9rem;
    word-break: break-word;
  }
}

/* ============================================
   NEW ENHANCEMENTS
   ============================================ */

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 5px;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}



/* Header Glassmorphism */
header {
  transition: all 0.3s ease;
  background: transparent !important;
  box-shadow: none !important;
}

header.header-scrolled {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}





/* Project Cards Top Border & Numbering */
.project-card {
  position: relative;
  border-top: 4px solid var(--primary-color);
}

/* Make cards fade out on filter */
.project-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}
