:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --secondary: #00bbff;
  --accent: #ffe900;
  --dark: #222;
  --light: #f4f8fc;
  --white: #fff;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 3em 0 5em;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.profile-pic:hover {
  transform: scale(1.05);
}

.name {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.role {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-5px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
  transition: var(--transition);
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator i {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 3px 0;
  transition: var(--transition);
}

/* Cards */
.card {
  background: var(--white);
  padding: 2.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* About Section */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.highlight {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--light);
  transition: var(--transition);
}

.highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.highlight i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.highlight h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.highlight p {
  color: var(--gray);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  padding-left: 30px;
  display: flex;
  gap: 1.5rem;
}

.timeline-marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--primary);
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content {
  flex: 1;
}

.timeline-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.timeline-date {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-company {
  display: block;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 0.8rem;
}

.timeline-item p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-tags span {
  background: var(--light);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 12px;
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category h3 i {
  color: var(--secondary);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--dark);
}

.skill-bar {
  height: 8px;
  background: var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
}

/* Education */
.education-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.education-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--light);
  border-radius: 12px;
  transition: var(--transition);
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.education-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.education-content {
  flex: 1;
}

.education-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.education-item p {
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.education-date {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Languages */
.languages-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.language-item:last-child {
  border-bottom: none;
}

.language-name {
  font-weight: 600;
  width: 120px;
}

.language-level {
  display: flex;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.language-level span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-light);
}

.language-level span.filled {
  background: var(--primary);
}

.language-proficiency {
  width: 80px;
  text-align: right;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-info p {
  opacity: 0.8;
}

.footer-contact h4, .footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-links a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
  transition: var(--transition);
}

.contact-links a:hover {
  opacity: 1;
}

.footer-social .social-links {
  justify-content: flex-start;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.8;
}

.footer-bottom i {
  color: var(--accent);
  margin: 0 5px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 992px) {
  .name {
    font-size: 3rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5em 0 4em;
    min-height: 90vh;
  }
  
  .name {
    font-size: 2.5rem;
  }
  
  .profile-pic {
    width: 150px;
    height: 150px;
  }
  
  .card {
    padding: 2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .education-item {
    flex-direction: column;
    text-align: center;
  }
  
  .language-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .language-name, .language-proficiency {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2em 0 3em;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .profile-pic {
    width: 120px;
    height: 120px;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
  }
}
