:root {
  --primary-color: #6a0dad; /* Dark Purple */
  --secondary-color: #5b0eab; /* Deeper Purple */
  --text-color: #2e1a47; /* Darker Text Color */
  --light-bg: #f8f0ff; /* Light Purple Background */
  --border-color: #e0cfe8; /* Light Purple Border */
}

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

html {
  scroll-behavior: smooth;
}

body {
  /* font-family: 'Inter', system-ui, -apple-system, sans-serif; */
  font-family: 'Lato', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: linear-gradient(180deg, #f0dbff, white);
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Lato', 'Lato', 'Inter', system-ui, -apple-system, sans-serif;
  /* font-family: 'Playfair Display', serif; */
  /* font-family: 'Raleway', sans-serif; */
  /* font-family: 'Poppins', sans-serif; */
  /* font-family: 'Montserrat', sans-serif; */

  color: var(--primary-color);
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--primary-color);
  color: white;
}

/* Hamburger icon (hidden by default) */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger i {
  color: var(--primary-color);
  font-size: 24px;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  /* Hide links and show hamburger on small screens */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    background-color: white;
    z-index: 1;
  }
  .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: var(--primary-color);
    color: white;
  }

  .hamburger {
    display: block;
  }

  /* Toggle to show links when hamburger is clicked */
  .nav-links.show {
    display: flex;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
              url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&q=80&w=2070') center/cover fixed;
  padding: 6rem 2rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
}

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

.hero-image img {
  width: 330px;
  height: 330px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
  position: relative;
  z-index: 2;
}

.hero-shape {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn.primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

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

/* Tech Stack */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.tech-item p {
  font-size: 0.875rem;
  color: white;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    order: 2;
  }

  .hero-image {
    order: 1;
  }

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

  .tech-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 8rem;
  }

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

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero-image img {
    width: 250px;
    height: 250px;
  }

  .hero-shape {
    width: 280px;
    height: 280px;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .hero-image img {
    width: 200px;
    height: 200px;
  }

  .hero-shape {
    width: 230px;
    height: 230px;
  }

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

/* Sections */
section {
  padding: 5rem 1rem;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* About Section */
.about-content {
  display: grid;
  gap: 2rem;
}

.about-content p{
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.key-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.point {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.point i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1rem;
}

.skill-category {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.progress {
  height: 8px;
  background: var(--primary-color);
  border-radius: 4px;
  margin-top: 0.5rem;
}

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

.project-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h2{
  color: var(--primary-color);
}

.project-tags {
  margin: 1rem 0;
}

.project-tags span {
  background: var(--light-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

.live{
  color: var(--primary-color);
}
.live:hover{
  border: none;
  box-shadow: 0 4px 6px var(--primary-color);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--primary-color);
}

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

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-left: 2rem;
}

.timeline-content ul{
  padding: 0 1.5rem;
}

.timeline-date {
  position: absolute;
  left: -150px;
  top: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.contact-card {
  background: white;
  padding: 1.8rem;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  margin: 10px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

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

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.social-links a, .hero-social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.hero-social-links{
  padding: 1rem;
  gap: 1.2rem;
}
.hero-social-links a {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: white;
}

.hero-social-links a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .social-links{
    justify-content: center;
  }
  .hero-social-links{
    justify-content: center;
  }

  .project-card .project-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
  }

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

  .hero h2 {
    font-size: 1.5rem;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-date {
    position: relative;
    left: 0;
    margin-bottom: 1rem;
    display: inline-block;
  }

  .timeline-content {
    margin-left: 0;
  }

  .contact-form{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }
  .contact-form .form-group{
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}