:root {
  --primary-color: #3a86ff;
  --secondary-color: #8338ec;
  --accent-color: #06d6a0;
  --dark-bg: #121826;
  --dark-card: #1e293b;
  --dark-text: #f8fafc;
  --gray-text: #94a3b8;
  --border-color: #334155;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 3rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Navbar */
.navbar {
  background-color: rgba(18, 24, 38, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--dark-text) !important;
}

.navbar-brand span {
  color: var(--primary-color);
}

.nav-link {
  color: var(--gray-text) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%), url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.1) 0%, rgba(58, 134, 255, 0) 70%);
  top: 10%;
  right: 10%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 600px;
}

.profile-img-container {
  position: relative;
  display: inline-block;
}

.profile-img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid var(--dark-card);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: var(--dark-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 3;
  color: var(--primary-color);
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
  top: 10%;
  left: 10%;
  background-color: var(--primary-color);
  color: white;
  animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
  bottom: 15%;
  right: 10%;
  background-color: var(--accent-color);
  color: white;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Cards */
.card-dark {
  background-color: var(--dark-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card-dark:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Skills */
.skill-badge {
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(58, 134, 255, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 500;
  margin: 5px;
  display: inline-block;
  transition: all 0.3s;
}

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

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 3px solid var(--dark-card);
}

.timeline-date {
  background-color: rgba(6, 214, 160, 0.1);
  color: var(--accent-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 10px;
}

/* Contact Cards */
.contact-card {
  background-color: var(--dark-card);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(58, 134, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

/* Footer */
.footer {
  background-color: #0d1117;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--dark-card);
  color: var(--gray-text);
  border-radius: 50%;
  font-size: 1.2rem;
  margin: 0 8px;
  transition: all 0.3s;
  text-decoration: none;
}

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

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  padding: 12px 28px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  background-color: #2a75ff;
  border-color: #2a75ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(58, 134, 255, 0.2);
}

.btn-outline-custom {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 28px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(58, 134, 255, 0.2);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .profile-img {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-section {
    padding: 120px 0 80px;
    text-align: center;
  }

  .profile-img {
    width: 220px;
    height: 220px;
    margin-top: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}
