/* ===== Base Styles ===== */
:root {
  --primary: #6C4AB6;
  --secondary: #FF9EAA;
  --dark: #1A132F;
  --light: #F7F5F2;
  --accent: #FFD372;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

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

/* ===== Header ===== */
.header {
  background: var(--dark);
  color: white;
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

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

/* ===== Hero Section ===== */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h2 span {
  color: var(--accent);
}

.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 211, 114, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 114, 0.4);
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.skills {
  margin-top: 2rem;
}

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

.skills-list {
  list-style: none;
  margin-bottom: 2rem;
}

.skills-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.education h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.edu-item {
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.edu-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.edu-item p {
  opacity: 0.8;
}

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

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid var(--accent);
}

.project-info {
  padding: 1.5rem;
}

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

.project-info p {
  margin-bottom: 1rem;
  opacity: 0.8;
}

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

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.project-links a:hover {
  color: var(--secondary);
}

/* ===== Contact ===== */
.contact {
  background: var(--dark);
  color: white;
}

.contact .section-title {
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-info a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: var(--accent);
}

.social-links h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.contact-availability {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
}

.contact-availability h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.contact-availability ul {
  list-style: none;
}

.contact-availability li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-top {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.back-to-top:hover {
  color: var(--accent);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hero .container,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-image {
    order: 1;
    text-align: center;
  }

  .hero-image img {
    max-width: 80%;
  }

  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .project-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.profile-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-circle {
  filter: drop-shadow(0 0 10px rgba(108, 74, 182, 0.3));
}

.profile-circle {
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { border-color: var(--accent); }
  50% { border-color: var(--secondary); }
  100% { border-color: var(--accent); }
}
@media (max-width: 768px) {
  .profile-circle {
    width: 200px;
    height: 200px;
  }
}