:root {
  /* Color Scheme */
  --primary-color: #6c63ff;
  --primary-light: #a29bfe;
  --secondary-color: #4d44db;
  --accent-color: #ff7675;
  --dark-color: #2d3436;
  --light-color: #f5f6fa;
  --gray-color: #636e72;
  --white-color: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), #e84393);
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: all 0.2s ease-in-out;
  
  /* Borders */
  --border-radius: 11px;
  --border-radius-lg: 20px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 13px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--gray-color);
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 5px;
  background: var(--gradient-primary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

.section-title p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: capitalize;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

header.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 0.5rem;
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: 2.5rem;
}

.nav-link {
  font-weight: 600;
  color: var(--dark-color);
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  bottom: -5px;
  left: 0;
  transition: var(--transition-fast);
  border-radius: 3px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text h1 span {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.hero-image {
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 30%;
  height: 50%;
  border: 3px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  top: 20px;
  left: 20px;
  z-index: -1;
  animation: pulse 4s infinite;
}

.hero-image img {
  width: 40%;
  max-width: 250px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-15deg);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

/* Social Links */
.social-links {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--white-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateX(10px) scale(1.1);
}

/* About Section */
.about {
  background-color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(100px);
  top: -100px;
  left: -100px;
  opacity: 0.1;
  z-index: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient-primary);
  color: var(--white-color);
  padding: 1.2rem 2rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.exp-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.exp-text {
  font-size: 0.9rem;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-text h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 4px;
  background: var(--gradient-primary);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

.personal-info {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-item {
  display: flex;
  gap: 0.8rem;
}

.info-label {
  font-weight: 600;
  color: var(--dark-color);
}

.info-value {
  color: var(--gray-color);
}

/* Education Section */
.education {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.education::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-accent);
  border-radius: 50%;
  filter: blur(100px);
  bottom: -100px;
  right: -100px;
  opacity: 0.1;
  z-index: 0;
}

.education-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.education-container::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 100%;
  background: var(--gradient-primary);
  left: 40px;
  top: 0;
}

.education-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
  background: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.edu-icon {
  width: 80px;
  height: 80px;
  background: var(--white-color);
  border: 3px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.school-logo {
  width: 80%;
  height: auto;
  object-fit: contain;
}

.edu-content {
  padding: 2rem 2rem 2rem 0;
  flex: 1;
}

.edu-year {
  display: inline-block;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.edu-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.edu-degree {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.edu-organization {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.school-website {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition-fast);
}

.school-website i {
  margin-right: 0.5rem;
}

.school-website:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* Skills Section */
.skills {
  background-color: var(--white-color);
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(100px);
  top: 50%;
  left: -100px;
  opacity: 0.1;
  z-index: 0;
}

.skills-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skills-intro {
  text-align: center;
  color: var(--gray-color);
  margin-bottom: 4rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 99, 255, 0.2);
}

.category-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.category-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  bottom: 0;
  left: 0;
  border-radius: 3px;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  margin-bottom: 0.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 500;
  color: var(--dark-color);
}

.skill-percent {
  color: var(--primary-color);
  font-weight: 600;
}

.progress-bar {
  height: 8px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-accent);
  border-radius: 50%;
  filter: blur(100px);
  bottom: -100px;
  right: -100px;
  opacity: 0.1;
  z-index: 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 4px;
  background: var(--gradient-primary);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

.contact-details {
  margin: 2.5rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.contact-social a {
  width: 45px;
  height: 45px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
}

.contact-social a:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-5px);
}

.contact-form {
  background: var(--white-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-form:hover {
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
  background: rgba(108, 99, 255, 0.02);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
  background: var(--white-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--white-color);
  padding: 5rem 0 2rem;
  text-align: center;
  position: relative;
}

.footer-content {
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes float {
  0% {
    transform: perspective(1000px) rotateY(-15deg) translateY(0);
  }
  50% {
    transform: perspective(1000px) rotateY(-15deg) translateY(-20px);
  }
  100% {
    transform: perspective(1000px) rotateY(-15deg) translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .about-content {
    gap: 2rem;
  }
  
  .education-container::before {
    left: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 6rem 0;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-image {
    order: 1;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .social-links {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 3rem;
    transform: none;
  }
  
  .social-link:hover {
    transform: translateY(-5px) scale(1.1);
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: 3rem;
  }
  
  .education-container::before {
    left: 40px;
  }
  
  .education-item {
    flex-direction: column;
  }
  
  .edu-icon {
    margin: 2rem auto 1rem;
  }
  
  .edu-content {
    padding: 0 2rem 2rem;
    text-align: center;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-item {
    justify-content: center;
  }
  
  .contact-social {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 5rem 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .personal-info {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
