/* Base Styles */
:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --secondary-color: #64748b;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --border-color: #e2e8f0;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --text-color: #334155;
  --heading-color: #0f172a;
  --muted-color: #64748b;
  --gradient-start: #6366f1;
  --gradient-end: #8b5cf6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --transition: all 0.3s ease;
  --section-bg: #f1f5f9;
}

/* Dark Mode Colors */
.dark {
  --primary-color: #818cf8;
  --primary-hover: #6366f1;
  --secondary-color: #94a3b8;
  --dark-color: #f8fafc;
  --light-color: #1e293b;
  --border-color: #334155;
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-color: #e2e8f0;
  --heading-color: #f8fafc;
  --muted-color: #94a3b8;
  --section-bg: #1e293b;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--bg-color);
  transition: var(--transition);
  padding-top: 76px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--heading-color);
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
}

.theme-toggle .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Navigation */
.navbar {
  background-color: var(--bg-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 15px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--heading-color);
}

.logo-text {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border-radius: 8px;
  font-weight: 700;
}

.navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Section Styles */
section {
  position: relative;
  overflow: hidden;
}

.bg-section {
  background-color: var(--section-bg);
}

.section-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background-color: var(--primary-color);
  transform: translateY(-50%);
}

.section-subtitle::before {
  left: -40px;
}

.section-subtitle::after {
  right: -40px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 76px);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-container .badge {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-image-container {
  position: relative;
}

.hero-image {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.experience-badge .years {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-shape-1,
.hero-shape-2 {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
  bottom: -50px;
  left: -50px;
}

/* Stats */
.stats-container {
  padding: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--muted-color);
}

/* Skills */
.skill-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  font-size: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-level {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.skill-level.expert {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.skill-level.advanced {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.skill-level.intermediate {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* Projects */
.project-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-image {
  position: relative;
  overflow: hidden;
}

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

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  background-color: white;
  color: var(--dark-color);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transform: translateY(20px);
  transition: var(--transition);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--muted-color);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--section-bg);
  color: var(--muted-color);
  border-radius: 50px;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
  transform: translateX(-50%);
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-date {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  padding-right: 3rem;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
}

.timeline-content {
  margin-left: 50%;
  padding-left: 3rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: var(--muted-color);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.timeline-achievements {
  margin-top: 1rem;
}

.achievement {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.achievement i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-size: 2rem;
}

.testimonial-text {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.875rem;
  color: var(--muted-color);
}

/* Contact */
.contact-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info {
  padding: 2rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  height: 100%;
}

.contact-info h3 {
  color: white;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  margin-right: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.contact-form {
  padding: 2rem;
}

.form-control {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Footer */
.footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

.footer-logo {
  display: inline-block;
}

.copyright {
  color: var(--muted-color);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  color: white;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
  .hero {
      padding: 3rem 0;
  }
  
  .timeline::before {
      left: 30px;
  }
  
  .timeline-dot {
      left: 30px;
  }
  
  .timeline-date {
      position: relative;
      width: 100%;
      padding-right: 0;
      text-align: left;
      padding-left: 60px;
      margin-bottom: 0.5rem;
  }
  
  .timeline-content {
      margin-left: 0;
      padding-left: 60px;
  }
}

@media (max-width: 767px) {
  .section-title {
      font-size: 1.75rem;
  }
  
  .hero {
      text-align: center;
  }
  
  .contact-info {
      border-radius: 12px 12px 0 0;
  }
  
  .footer-links {
      justify-content: center;
      margin-top: 1rem;
  }
}
