@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single:wght@100..900&family=Bitcount+Single:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single:wght@100..900&family=Bitcount+Single:wght@100..900&family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+AU+QLD:wght@100..400&display=swap');

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

:root {
  --primary-color: #5c76e6;
  --secondary-color: #9653d9;
  --accent-color: #9b5ea2;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #1a202c;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --bg-primary: #0a1a2a;
  --bg-secondary: #112b44;
  --bg-dark: #081424;
  --text-primary: #e0e6f0;
  --text-secondary: #a0b0d0;
  --text-light: #7080a0;
  --border-color: #223355;
}

html {
  scroll-behavior: smooth;

}

body {
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition);
    font-family: "Exo 2", sans-serif;

}

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

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

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  
}

.btn-primary {
  background: var(--gradient);
  color: white;
}
.btn-resume {
  background: var(--gradient);
  color: white;

}

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

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

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

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



/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  backdrop-filter:blur(30px) ;
  width: 100%;
   background-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 60px rgba(168, 107, 172, 0.5);
    border: 2px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 32, 44, 0.95);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  
}

.logo-img {
  width: 40px;
  height: 40px;
  display: flex;
  object-fit: cover;
  transition: transform 0.3s ease; /* smooth transition */
}

.logo-img:hover {
  transform: scale(1.5); /* slightly bigger */
  box-shadow: none; /* subtle shadow */
  cursor: pointer; /* change cursor to pointer */
}



.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

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

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 1rem;
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
}

.hero-container {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content {
  max-width: 500px;
  text-align: center;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  padding-top:30%;
}

.typing-text {
 position: relative;
font-size: larger;
font-family: "Bitcount Prop Single", system-ui;

}

.typing-text::after {
  content: ' |';
  animation: blink 1s infinite;
  color: var(--primary-color);
}

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

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.1rem;
  position: relative;
  
}

.profile-card {
  position: relative;
  background: var(--bg-primary);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  border: 5px solid var(--border-color);
  flex-direction: column;
}

.profile-img {
  width: 250px;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid var(--primary-color);
  position: relative;
}

.profile-img img {
  width: 100%;
  height: 100%;
  border-radius: 1%;
  object-fit: cover;
  position:center;
}

.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;

}

.floating-icon {
  position: absolute;
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

/* --- Icon Brand Colors --- */
.fa-react {
  color: #61DAFB; /* React's official blue */
  
}

.fa-node-js {
  color: #8CC84B; /* Node.js's official green */
}

.fa-python {
  color: #3776AB; /* Python's official blue */
}

.fa-aws {
  color: #FF9900; /* AWS's official orange */
}





.floating-icon:nth-child(1) {
  top: 20%;
  left: -5%;
  animation-delay: 1s;

}

.floating-icon:nth-child(2) {
  top: 60%;
  right: -5%;
  animation-delay: 1s;
}

.floating-icon:nth-child(3) {
  bottom: 20%;
  left: -10%;
  animation-delay: 2s;
}

.floating-icon:nth-child(4) {
  bottom: 60%;
  right: -10%;
  animation-delay: 1.5s;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

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

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

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

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat h3 {
  font-size: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-secondary);
  font-weight: 500;
}

.code-snippet {
  background: var(--bg-dark);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #2d3748;
  border-bottom: 1px solid #4a5568;
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
}

.code-dots span:nth-child(2) {
  background: #ffbd2e;
}

.code-dots span:nth-child(3) {
  background: #27ca3f;
}

.code-header span {
  color: #cbd5e0;
  font-size: 0.9rem;
}

.code-content {
  padding: 1.1rem;
  height: 300px;
  width: 360px;
}

.code-content pre {
  color: #e2e8f0;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-animation {
  animation: typewriter 3s steps(40) infinite;
}

@keyframes typewriter {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 100%; }
}

/* Skills Section */
.skills {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.skill-category {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.skill-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 30px;
}

.skill-item span {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 100px;
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

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

/* JavaScript will be used to animate the width based on data-width attribute */

/* Projects Section */
.projects {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

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

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

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

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

.project-card {
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  opacity: 1;
  transform: scale(1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.339);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

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

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

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

.project-link:hover {
  transform: scale(1.1);
  background: var(--primary-color);
  color: white;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.project-tech span {
  padding: 0.3rem 0.8rem;
  background: var(--bg-secondary);
  color: var(--primary-color);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Experience Section */
.experience {
  padding: 5rem 0;
  background: var(--bg-primary);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 2rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--gradient);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.timeline-content ul {
  list-style: none;
  padding-left: 0;
}

.timeline-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 30px;
}

.contact-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-primary);
  color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  overflow: hidden;
}

.social-link i {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.contact-form {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
  background: var(--bg-secondary);
  padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
  }

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

  .hamburger {
    display: flex;
  }

  .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);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-buttons  {
    justify-content: center;
  }

  .social-links{
    justify-content: center;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

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

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .code-content {
  padding: 0.8rem;
  height: 250px;
  width: 300px;
}
.code-content pre {
  font-size: 0.7rem;
}


}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

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

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

  .btn {
    width: 100%;
    max-width: 250px;
  }

  .profile-img {
    width: 250px;
    height: 380px;
  }

  .project-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 150px;
  }

  .code-content {
  padding: 0.8rem;
  height: 250px;
  width: 300px;
}
.code-content pre {
  font-size: 0.7rem;
}

}

@media (max-width: 412px) {
  .container {
    padding: 0 10px;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

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

  .profile-img {
    width: 220px;
    height: 340px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .project-card {
    margin: 0 auto;
    max-width: 320px;
  }

  .contact-item {
    padding: 0.8rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
  }
}

@media (max-width: 393px) {
  .container {
    padding: 0 8px;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

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

  .profile-img {
    width: 200px;
    height: 320px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .skill-category {
    padding: 1.2rem;
  }

  .skill-item span {
    min-width: 80px;
    font-size: 0.9rem;
  }

  .project-card {
    max-width: 330px;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .contact-item {
    padding: 0.7rem;
  }

  .social-links {
    gap: 0.8rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 390px) {
  .container {
    padding: 0 8px;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

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

  .profile-img {
    width: 200px;
    height: 320px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .skill-category {
    padding: 1.2rem;
  }

  .skill-item span {
    min-width: 80px;
    font-size: 0.9rem;
  }

  .project-card {
    max-width: 330px;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .contact-item {
    padding: 0.7rem;
  }

  .social-links {
    gap: 0.8rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }
  .code-content {
  padding: 0.8rem;
  height: 250px;
  width: 300px;
}
.code-content pre {
  font-size: 0.7rem;
}

}

@media (max-width: 360px) {
  .container {
    padding: 0 5px;
  }

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

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

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

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

  .profile-img {
    width: 180px;
    height: 280px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 1rem;
  }

  .skill-category {
    padding: 1rem;
  }

  .skill-item {
    gap: 0.8rem;
  }

  .skill-item span {
    min-width: 70px;
    font-size: 0.85rem;
  }

  .project-card {
    max-width: 320px;
  }

  .project-content {
    padding: 1.5rem;
  }

  .timeline-content {
    padding: 1.2rem;
  }

  .contact-item {
    padding: 0.6rem;
    gap: 0.8rem;
  }

  .contact-item i {
    width: 25px;
    font-size: 1.3rem;
  }

  .social-links {
    gap: 0.6rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link i {
    font-size: 1.3rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .code-content {
  padding: 0.8rem;
  height: 250px;
  width: 300px;
}
.code-content pre {
  font-size: 0.7rem;
}

}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}





.blurred-gradient {
  position: absolute;
  top: 1;
  right:0;
  width: 450px;
  height: 450px;
  filter: blur(48px);
  background-image: linear-gradient(#6733c7, #ef7be9);
  opacity: 0.9;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: rotate 8s linear infinite;
  pointer-events: none; /* so it doesn't block interactions */
  z-index: 0; /* behind content */
}

/* Rotating animation */
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* Make sure content is above the background blob */
.hero-container {
  position: relative;
  z-index: 1;
}


.contain {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  flex-direction: column;
}

.stars {
  position:absolute;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  transform: rotate(-45deg);
}

.star {
  --star-color: var(--primary-color);
  --star-tail-length: 6em;
  --star-tail-height: 2px;
  --star-width: calc(var(--star-tail-length) / 6);
  --fall-duration: 9s;
  --tail-fade-duration: var(--fall-duration);
  position: absolute;
  top: var(--top-offset);
  left: 0;
  width: var(--star-tail-length);
  height: var(--star-tail-height);
  color: var(--star-color);
  background: linear-gradient(45deg, currentColor, transparent);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px currentColor);
  transform: translate3d(104em, 0, 0);
  animation: fall var(--fall-duration) 0s linear infinite, tail-fade var(--tail-fade-duration) 0s ease-out infinite;
}

@media screen and (max-width: 750px) {
  .star {
    animation: fall var(--fall-duration) var(--fall-delay) linear infinite;
  }
}

.star::before,
.star::after {
  position: absolute;
  content: "";
  top: 0;
  left: calc(var(--star-width) / -2);
  width: var(--star-width);
  height: 100%;
  background: linear-gradient(45deg, transparent, currentColor, transparent);
  border-radius: inherit;
  animation: blink 2s linear infinite;
}

.star::before {
  transform: rotate(45deg);
}

.star::after {
  transform: rotate(-45deg);
}

@keyframes fall {
  to {
    transform: translate3d(-50em, 0, 0);
  }
}

@keyframes tail-fade {
  0%,
  50% {
    width: var(--star-tail-length);
    opacity: 1;
  }
  70%,
  80% {
    width: 0;
    opacity: 0.4;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0.6;
  }
}




.icon-pack {
  display: flex;
  flex-wrap: wrap;   
  text-align: center;    /* Allow wrapping on wider screens */
  justify-content: center; /* Center icons */
  gap: 10px;              /* Space between icons */
  padding: 20px 10px;
  overflow-x: auto;       /* Horizontal scroll on small screens */
  scroll-padding: 10px;
}

/* Base icon size */
.icon-pack i {
  font-size: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  min-width: 48px;        /* Prevent icons from shrinking too small */
  text-align: center;
  flex-shrink: 0;         /* Prevent icons from shrinking in flex */
}

.icon-pack i:hover {
  transform: scale(1.2) rotate(-8deg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Medium screens: slightly larger icons and wrap */
@media (min-width: 600px) {
  .icon-pack {
    justify-content: flex-start;  /* Align left on bigger screens */
    gap: 30px;
    overflow-x: visible;          /* Remove horizontal scroll */
  }
  
  .icon-pack i {
    font-size: 48px;
    min-width: 46px;
  }
}

/* Large screens: bigger icons and multiple wrap rows */
@media (min-width: 900px) {
  .icon-pack {
    gap: 40px;
    padding: 30px 20px;
  }
  
  .icon-pack i {
    font-size: 56px;
    min-width: 64px;
  }
}


/* form alert message css */
.form-alert {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  display: none; /* Hidden by default */
  transition: opacity 0.3s ease;
}

.form-alert.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.form-alert.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}






