:root {
  /* Colors */
  --bg-dark: #0f172a;
  --bg-alt: rgba(30, 41, 59, 0.5);
  --bg-card: rgba(30, 41, 59, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.8);

  --text-main: #ffffff;
  --text-muted: #94a3b8;

  --accent-1: #38bdf8;
  --accent-2: #a855f7;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

#vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.bg-alt {
  background-color: var(--bg-alt);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dot {
  color: var(--accent-1);
}

.highlight {
  color: var(--accent-1);
  font-weight: 500;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 500;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}

/* Base Card Style */
.card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-10px);
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.15);
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-header .line {
  height: 4px;
  width: 60px;
  background: var(--accent-gradient);
  margin: 0 auto;
  border-radius: 2px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-cv-btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.2);
  white-space: nowrap;
}

.nav-cv-btn:hover {
  box-shadow: 0 6px 15px rgba(56, 189, 248, 0.4);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--accent-gradient);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.profile-avatar {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.5);
  animation: float 6s ease-in-out infinite;
  transition: all 0.5s ease;
}

.profile-avatar:hover {
  transform: scale(1.05) translateY(-10px);
  border-color: var(--accent-1);
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.8);
  animation-play-state: paused;
}

.hero .greeting {
  color: var(--accent-1);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.hero .name {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .title {
  font-size: 2.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero .summary {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.bg-shape {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.achievements h3,
.education h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.achievements h3 i,
.education h3 i {
  color: var(--accent-1);
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.styled-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-1);
}

.timeline {
  position: relative;
  border-left: 2px solid var(--bg-card);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

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

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

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 5px;
  width: 14px;
  height: 14px;
  background-color: var(--bg-dark);
  border: 2px solid var(--accent-1);
  border-radius: 50%;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background-color: var(--accent-1);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent-1);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.timeline p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  text-align: center;
}

.skill-icon {
  font-size: 3rem;
  color: var(--accent-1);
  margin-bottom: 1rem;
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.tags span {
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--accent-1);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: var(--transition);
}

.card:hover .tags span {
  background-color: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-1);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-links i {
  font-size: 1.8rem;
  color: var(--text-main);
  transition: var(--transition);
}

.project-card:hover .project-links i {
  color: var(--accent-1);
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.project-card:hover h3 {
  color: var(--accent-1);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-bullets {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 1.2rem;
}

.project-bullets li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

.project-card .tags {
  justify-content: flex-start;
}

.project-card .tags span {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
}

/* Certificates Section */
.certificates-section h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  justify-content: center;
}

.certificates-section h3 i {
  color: var(--accent-1);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.cert-icon {
  font-size: 2.5rem;
  color: var(--accent-2);
}

.cert-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.cert-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact Section */
.contact-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  text-align: center;
  padding: 2rem;
}

.contact-card .icon {
  font-size: 2.5rem;
  color: var(--accent-1);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-card:hover .icon {
  transform: translateY(-5px);
  color: var(--accent-2);
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  word-break: break-word;
}

/* Footer */
footer {
  background-color: var(--bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--bg-card);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background-color: var(--accent-1);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
    padding-top: 40px;
  }

  .hero-content {
    margin-bottom: 2rem;
  }

  .hero-btns {
    justify-content: center;
  }

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

  .hero .name {
    font-size: 3.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-right {
    gap: 1rem;
  }

  .nav-cv-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1000;
  }

  .hero .name {
    font-size: 2.8rem;
  }

  .hero .title {
    font-size: 1.5rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .section {
    padding: 70px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero .name {
    font-size: 2.2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}