/* ==================== */
/* Global Styles */
/* ==================== */
:root {
  --primary: #6e8efb;
  --primary-dark: #4a6cf7;
  --secondary: #a777e3;
  --secondary-dark: #8a5ecf;
  --dark: #5d5db0;
  --darker: #6c6cd0;
  --light: #f9f9f9;
  --text: #3d3838;
  --text-light: #fbfafe;
  --white: #ffffff;
  --neon-glow: 0 0 15px rgba(110, 142, 251, 0.6);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(110, 142, 251, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(167, 119, 227, 0.15) 0%, transparent 30%);
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(110, 142, 251, 0.4);
  background: var(--primary-dark);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* ==================== */
/* Header Styles */
/* ==================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  margin-top: -80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(110, 142, 251, 0.2) 0%, transparent 70%);
  animation: pulse 15s infinite alternate;
  z-index: 0;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-text {
  margin-bottom: 2rem;
  width: 100%;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.intro {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  color: var(--text);
}

/* Typewriter animation */
#typewriter {
  font-size: 3.5rem;
  color: var(--dark);
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto 1rem;
  height: 4rem;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary); }
}

.title-container {
  height: 2.5rem;
  overflow: hidden;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.title-words {
  animation: slide 6s ease-in-out infinite;
}

@keyframes slide {
  0%, 40% { transform: translateY(0); }
  50%, 90% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.title-word {
  display: block;
  height: 2.5rem;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.5rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  color: var(--dark);
  font-size: 1.8rem;
  transition: var(--transition);
}

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

/* CSS Laptop Animation */
.css-laptop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 600px;
  z-index: 1;
  opacity: 0.8;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(110, 142, 251, 0.5));
  transition: var(--transition);
}

.css-laptop:hover {
  transform: translate(-50%, -50%) scale(1.05) rotateY(10deg);
  filter: drop-shadow(0 0 25px rgba(167, 119, 227, 0.7));
}

.screen {
  position: relative;
  background: #0a0a12;
  border: 12px solid #2a2a35;
  border-radius: 8px 8px 0 0;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.keyboard {
  width: 110%;
  margin-left: -5%;
  height: 20px;
  background: #2a2a35;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.code-line {
  height: 14px;
  background: rgba(110, 142, 251, 0.1);
  margin: 12px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.code-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(110, 142, 251, 0.4), transparent);
  animation: codeFlow 3s linear infinite;
}

.code-line:nth-child(1) { width: 80%; animation-delay: 0.3s; }
.code-line:nth-child(2) { width: 65%; animation-delay: 0.6s; }
.code-line:nth-child(3) { width: 70%; animation-delay: 0.9s; }

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-15px); }
}

@keyframes codeFlow {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

/* ==================== */
/* About Section */
/* ==================== */
.about {
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.section-title:hover::after {
  transform: scaleX(1);
}

.animated-card {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.animated-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right, rgba(110, 142, 251, 0.1), rgba(167, 119, 227, 0.1));
  transform: rotate(30deg);
  z-index: -1;
  transition: var(--transition);
}

.animated-card:hover::before {
  transform: rotate(45deg) scale(1.2);
}

.animated-text {
  line-height: 1.8;
  font-size: 1.1rem;
}

.skills-container {
  margin: 2rem 0;
}

.skills-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-item {
  background: rgba(110, 142, 251, 0.1);
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.skill-item:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.education-card {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.education-card h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.education-card p {
  line-height: 1.7;
}

/* ==================== */
/* Experience Section */
/* ==================== */
.experience {
  position: relative;
}

.timeline-tree {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 50px;
}

.tree-node {
  position: relative;
  margin-bottom: 40px;
}

.tree-connector {
  position: absolute;
  left: -30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.tree-card {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  transition: var(--transition);
}

.tree-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(110, 142, 251, 0.1);
}

.tree-date {
  position: absolute;
  left: -90px;
  top: 20px;
  width: 80px;
  text-align: right;
  color: var(--primary);
  font-weight: 600;
}

.tree-role {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.tree-details {
  margin-left: 20px;
}

.tree-details li {
  position: relative;
  margin-bottom: 8px;
  list-style: none;
  line-height: 1.5;
}

.tree-details i.fa-circle {
  position: absolute;
  left: -20px;
  top: 8px;
  font-size: 8px;
  color: var(--secondary);
}

.tree-icon {
  position: absolute;
  left: -55px;
  top: 15px;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(110, 142, 251, 0.2);
}

.tree-root {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.root-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 20px;
  font-size: 1.2rem;
}

.root-text {
  font-weight: 600;
  color: var(--text);
}

/* ==================== */
/* Projects Section - Compact */
/* ==================== */
.projects-section {
  padding: 60px 0;
  position: relative;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  background: rgba(70, 56, 132, 0.1);
  color: var(--primary);
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--primary);
  color: rgb(105, 101, 101);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  color: rgb(61, 44, 44);
  box-shadow: 0 3px 10px rgba(17, 62, 209, 0.3);
}

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

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: scale(0.97);
  box-shadow: 0 6px 18px rgba(110, 142, 251, 0.18);
}

.project-image-container {
  height: 160px;
  overflow: hidden;
  position: relative;
}

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

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

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

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

.project-content {
  padding: 1rem;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.project-description {
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

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

.tech-tag {
  background: rgba(83, 86, 94, 0.1);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  transition: var(--transition);
}

.tech-tag:hover {
  background: var(--primary);
  color: white;
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition);
}

.project-link.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 10px rgba(110, 142, 251, 0.3);
}

.project-link.secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(110, 142, 251, 0.2);
}

.project-link i {
  margin-right: 0.4rem;
  font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .projects-section {
    padding: 50px 0;
  }
  
  .project-filters {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 576px) {
  .projects-grid {
    gap: 1rem;
  }
  
  .project-image-container {
    height: 140px;
  }
  
  .project-content {
    padding: 0.8rem;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
}

/* ==================== */
/* Contact Section */
/* ==================== */
.contact {
  position: relative;
}

.contact-flex-container {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.contact-profile-column {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-pic-holographic {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pic-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-pic {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.profile-pic-border {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  animation: rotate 8s linear infinite;
  z-index: 1;
  opacity: 0.7;
}

.holographic-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 142, 251, 0.1) 0%, transparent 70%);
  animation: pulse 6s infinite alternate;
  z-index: 0;
}

.profile-social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
  color: var(--dark);
}

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

.contact-content-column {
  flex: 1;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(110, 142, 251, 0.1);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(110, 142, 251, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.info-content h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.info-content a {
  color: var(--primary);
  transition: var(--transition);
}

.info-content a:hover {
  color: var(--secondary-dark);
}

.schedule-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.schedule-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.form-control {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
  background: transparent;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.form-control:focus ~ label,
.form-control:valid ~ label {
  transform: translateY(-25px);
  font-size: 0.8rem;
  color: var(--primary);
}

.form-control ~ label {
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--text);
  transition: var(--transition);
  pointer-events: none;
}

.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s ease;
}

.form-control:focus ~ .focus-border {
  width: 100%;
}

.submit-btn {
  position: relative;
  overflow: hidden;
  padding: 1rem 2.5rem;
  border: none;
}

.btn-text {
  display: inline-block;
  transition: var(--transition);
}

.btn-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: var(--transition);
}

.submit-btn:hover .btn-text {
  transform: translateX(-10px);
}

.submit-btn:hover .btn-icon {
  opacity: 1;
  right: 1.2rem;
}

.contact-dots .dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(110, 142, 251, 0.1);
  animation: float 8s infinite ease-in-out;
}

.dot-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
}

.dot-2 {
  width: 150px;
  height: 150px;
  bottom: 15%;
  right: 10%;
  animation-delay: 1s;
}

.dot-3 {
  width: 70px;
  height: 70px;
  top: 60%;
  left: 30%;
  animation-delay: 2s;
}

/* ==================== */
/* Footer */
/* ==================== */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.footer-links a {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

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

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==================== */
/* Responsive Styles */
/* ==================== */
@media (max-width: 992px) {
  .hero {
    min-height: 700px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .contact-flex-container {
    flex-direction: column;
  }
  
  .contact-profile-column,
  .contact-content-column {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
  }

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

  .mobile-menu-toggle {
    display: block;
  }

  #typewriter {
    font-size: 2.5rem;
    height: 3rem;
  }

  .title-word {
    font-size: 1.5rem;
  }
  
  .css-laptop {
    width: 90%;
    opacity: 0.6;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .intro {
    font-size: 1.2rem;
  }
  
  #typewriter {
    font-size: 2rem;
    height: 2.5rem;
  }
  
  .title-word {
    font-size: 1.3rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .profile-pic-wrapper {
    width: 200px;
    height: 200px;
  }
  
  .profile-pic {
    width: 180px;
    height: 180px;
  }
}
/* Typing Animation Styles */
.typing-container {
  display: inline-block;
  position: relative;
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #4e9af1; /* Cursor color */
  margin: 0 auto;
  letter-spacing: 1px;
  animation: 
    typing 3s steps(30, end) forwards,
    blink-caret 0.75s step-end infinite;
  width: 0;
}

/* For the logo in header */
.logo .typing-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

/* For the hero section */
.hero h1.typing-text {
  font-size: 3.5rem;
  border-right: 3px solid #4e9af1;
  margin-bottom: 0.5rem;
}

/* Typing keyframes */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #4e9af1; }
}

/* Animation delay for multiple elements */
.typing-delay-1 {
  animation-delay: 0.5s;
}
.typing-delay-2 {
  animation-delay: 1s;
}
.typing-delay-3 {
  animation-delay: 1.5s;
}
