* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ffffff;
  --primary-dark: #e5e5e5;
  --secondary: #a3a3a3;
  --accent: #737373;
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --text: #fafafa;
  --text-muted: #a3a3a3;
  --card-bg: rgba(23, 23, 23, 0.5);
  --border: rgba(255, 255, 255, 0.08);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-darker);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated Background */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.bg-gradient::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.15;
  top: -250px;
  right: -250px;
  animation: float 20s ease-in-out infinite;
}

.bg-gradient::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  opacity: 0.15;
  bottom: -200px;
  left: -200px;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -50px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.5rem 2rem;
  /* background: rgba(15, 23, 42, 0.8); */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.5rem 2rem;
  /* background: rgba(15, 23, 42, 0.95); */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  margin-bottom: 1rem;
  animation: fadeIn 1s ease 0.2s backwards;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--secondary) 50%,
      var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 1s ease 0.4s backwards;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  animation: fadeIn 1s ease 0.6s backwards;
}

.typing-text {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  min-height: 1.8rem;
  animation: fadeIn 1s ease 0.8s backwards;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  animation: fadeIn 1s ease 1s backwards;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  animation: fadeIn 1s ease 1.2s backwards;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: var(--bg-dark);
  color: var(--primary);
  border: 1px solid var(--primary);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator i {
  font-size: 2rem;
  color: var(--primary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

/* About Section */
.about-content {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tech-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.tech-item i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Experience Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 20px var(--secondary);
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.timeline-content .company {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.timeline-content .date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-content ul {
  list-style: none;
  margin-left: 0;
}

.timeline-content ul li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-content ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: var(--primary);
}

/* GitHub Repos */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.repo-card {
  background: var(--card-bg);
  height: 300px;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.repo-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(163, 163, 163, 0.1);
}

.repo-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.repo-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.repo-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.repo-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* LinkedIn Posts Carousel */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-wrapper {
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  padding: 0 1rem;
}

.post-card {
  min-width: 350px;
  align-items: center;
  display: flex;
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
  flex-shrink: 1;
  position: relative;
  overflow: hidden;
}

/* .post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
} */

.post-card:hover {
  border-color: var(--primary);
  /* transform: translateY(-10px) scale(1.02); */
  box-shadow: 0 10px 30px rgba(163, 163, 163, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.post-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.post-author h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.post-author .post-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-content {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-engagement {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-engagement span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-engagement i {
  color: var(--primary);
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.post-link:hover {
  gap: 0.75rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(163, 163, 163, 0.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  transform: translateY(-50%) scale(1);
  background: var(--card-bg);
}

.carousel-btn.prev {
  left: -25px;
}

.carousel-btn.next {
  right: -25px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 30px;
  border-radius: 5px;
  background: var(--primary);
}

.carousel-dot:hover {
  background: var(--primary);
  transform: scale(1.2);
}

/* Certifications */
.cert-list {
  display: grid;
  gap: 1rem;
}

.cert-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.cert-item:hover {
  border-color: var(--primary);
  transform: translateX(10px);
}

.cert-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-dark);
  flex-shrink: 0;
}

.cert-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.cert-details .issuer {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.cert-details .date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.show-more {
  display: none;
}

.show-more.expanded {
  display: grid;
}

.toggle-certs {
  text-align: center;
  margin-top: 2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0.5rem !important;
  margin-top: 2rem !important;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg,
      var(--card-bg) 25%,
      rgba(99, 102, 241, 0.1) 50%,
      var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 10px;
  height: 20px;
  margin-bottom: 10px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  #navbar {
    display: none;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline-item {
    padding-left: 0;
  }

  .timeline-item::before {
    left: -1.45rem;
  }

  #linkedin {
    display: none;
  }
}