/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&family=Inter:wght@300;400&display=swap');

/* ===== Root Variables ===== */
:root {
  /* Color Palette */
  --purple-primary: #8B5FBF;
  --purple-dark: #6A4B8C;
  --purple-light: #B18BDD;
  --bg-primary: #0F0A18;
  --bg-secondary: #1A1226;
  --text-primary: #F0E6FF;
  --text-secondary: #C2B5D6;
  --success: #5CB85C;
  --warning: #FFC107;
  --error: #FF5252;

  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(139, 95, 191, 0.15);
  --shadow-md: 0 4px 12px rgba(139, 95, 191, 0.25);
}

/* Scrollbar Styling for WebKit Browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #8B5FBF;
    border-radius: 10px;
    margin: 10px;
    border: 1px solid #f1f1f1; /* for padding around thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #734DB3; /* slightly darker on hover */
}


/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

a{
  text-decoration: none;
}


body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
padding-top: 70px;

}
/* ===== Sticky Navbar ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
}

/* ===== Hamburger Menu ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple-primary);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* ===== Navigation Links ===== */
.nav-links ul {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--purple-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--purple-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-links ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  /* Hamburger Animation */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ===== Hero Section with Image ===== */
.hero {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, var(--purple-primary) 0%, transparent 60%);
  opacity: 0.1;
  z-index: -1;
}

.hero-content {
  width: 100%;
  order: 1;
  margin-top: 1rem;
}

.hero-image-container {
  order: 2;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 3px solid var(--purple-primary);
  box-shadow: var(--shadow-md);
  border-radius: 50%;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s 0.8s forwards;
}

/* Typography */
.hero-subtitle {
  color: var(--purple-light);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeIn 0.8s 0.2s forwards;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--text-primary), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeIn 0.8s 0.4s forwards;
}

.hero-title span {
  background: linear-gradient(90deg, var(--purple-primary), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  opacity: 0;
  animation: fadeIn 0.8s 0.6s forwards;
}

/* Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeIn 0.8s 0.8s forwards;
}

.btn {
  display: inline-block;
  padding: 0.9rem;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--purple-primary);
  color: var(--text-primary);
  border: 2px solid var(--purple-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--purple-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--purple-primary);
  border: 2px solid var(--purple-primary);
}

.btn-secondary:hover {
  background: var(--purple-primary);
  color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    min-height: 90vh;
  }

  .hero-content {
    order: unset;
    margin-top: 0;
  }

  .hero-image-container {
    order: unset;
    margin: 0;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .btn {
    padding: var(--space-sm) var(--space-md);
    width: auto;
  }

  .hero::before {
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    opacity: 0.15;
    animation: float 6s infinite ease-in-out;
  }

  @keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
  }
}

/* ===== Desktop (1024px+) ===== */
@media (min-width: 1024px) {
  .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-image {
    max-width: 90%;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion) {
  .hero-subtitle,
  .hero-title,
  .hero-description,
  .hero-buttons,
  .hero-image {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }
}

/* ===== Skills Section ===== */
.skills {
  background-color: var(--bg-secondary);
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--purple-primary) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--text-primary), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skill-card {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--purple-dark);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-primary);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 2px solid var(--purple-primary);
}

.skill-icon img {
  width: 30px;
  height: 30px;
}

.skill-card h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skill-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-primary), var(--purple-light));
  border-radius: 3px;
  transition: width 1.5s ease-out;
}

/* Animation on scroll */
.skill-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-card {
    padding: 1.2rem;
  }
}


/* ===== Projects Section ===== */
.projects {
  background-color: var(--bg-primary);
  padding: 4rem 1.5rem;
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--purple-primary) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--text-primary), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--purple-dark);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-primary);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 10, 24, 0.9), transparent);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-links {
  opacity: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--purple-primary);
  color: var(--text-primary);
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--purple-light);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  background: rgba(139, 95, 191, 0.2);
  color: var(--purple-light);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
}

.coming-soon{
  display: block;
  max-width: 250px;
  margin: 50px auto;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-links {
    opacity: 1;
    background: rgba(15, 10, 24, 0.7);
  }
  
  .project-link {
    padding: 0.5rem;
    font-size: 0.7rem;
  }
}

/* ===== About Section ===== */
.about {
  background-color: var(--bg-primary);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--purple-primary) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
  transform: translateY(-50%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--text-primary), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-image {
  position: relative;
  max-width: 350px;
  margin: 0 auto;
  border-radius: 8px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.about-image:hover img {
  filter: grayscale(0%);
}

.image-border {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--purple-primary);
  border-radius: 8px;
  z-index: 1;
  transition: all 0.3s ease;
}

.about-image:hover .image-border {
  top: 10px;
  left: 10px;
}

.about-content {
  flex: 1;
}

.about-content h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.7;
  font-size: 1rem;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.detail-item {
  margin-bottom: 0.8rem;
}

.detail-label {
  display: inline-block;
  min-width: 70px;
  color: var(--purple-light);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}

.detail-value {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  background: var(--purple-primary);
  color: var(--text-primary);
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--purple-primary);
}

.btn-about:hover {
  background: transparent;
  color: var(--purple-primary);
  box-shadow: var(--shadow-sm);
}

/* ===== Responsive Adjustments ===== */
@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  
  .about-image {
    margin: 0;
    flex: 0 0 40%;
    max-width: 100%;
  }
  
  .about-content {
    flex: 1;
  }
  
  .about-content h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 3rem 1rem;
  }
  
  .about-details {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    max-width: 280px;
  }
  
  .image-border {
    top: 10px;
    left: 10px;
  }
}


/* ===== Contact Section ===== */
.contact {
  background-color: var(--bg-secondary);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--purple-primary) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(139, 95, 191, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.contact-details a, 
.contact-details p {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.contact-details a:hover {
  color: var(--purple-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  text-decoration: none;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 95, 191, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-link:hover {
  background: var(--purple-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  pointer-events: none;
  background: var(--bg-secondary);
  padding: 0 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--purple-dark);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-color: var(--purple-primary);
  outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: var(--purple-light);
}

/* ===== Unique Submit Button ===== */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  color: var(--text-primary);
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(139, 95, 191, 0.3);
  margin-top: 1rem;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-primary));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 95, 191, 0.4);
}

.btn-submit:hover::before {
  opacity: 1;
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
  transform: translateX(3px);
}

.btn-submit:disabled {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: not-allowed;
  transform: none !important;
}

/* Loading state */
.btn-submit.loading .btn-text {
  visibility: hidden;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid transparent;
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success state */
.btn-submit.success {
  background: #4CAF50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-submit.success::before {
  background: #3d8b40;
}

/* Error state */
.btn-submit.error {
  background: #F44336;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-submit.error::before {
  background: #d32f2f;
}

/* ===== Responsive Adjustments ===== */
@media (min-width: 768px) {
  .contact-container {
    flex-direction: row;
    gap: 4rem;
  }
  
  .contact-info {
    flex: 1;
  }
  
  .contact-form {
    flex: 1.2;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 3rem 1rem;
  }
  
  .contact-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== Footer Styles ===== */
.footer {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 3rem 1.5rem 1rem;
  border-top: 1px solid var(--purple-dark);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, var(--purple-primary) 0%, transparent 70%);
  opacity: 0.05;
  z-index: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--text-primary), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--purple-light);
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--purple-primary);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--purple-primary);
  width: 16px;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  border-radius: 50%;
  background: rgba(139, 95, 191, 0.1);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--purple-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--purple-dark);
  color: var(--text-secondary);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom p {
  margin: 0;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}



/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--purple-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--purple-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 95, 191, 0.4);
}

.back-to-top:active {
  transform: translateY(0) scale(0.98);
}

/* Responsive positioning */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }
}

