:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --secondary: #ff006e;
  --accent: #8338ec;
  --bg-dark: #0a0e27;
  --bg-darker: #050812;
  --text-light: #e8eaf6;
  --text-muted: #9fa3c3;
  --border-color: rgba(0, 212, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-text {
  color: var(--text-light);
}

.logo-dot {
  color: var(--primary);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 0.8s ease;
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-dark);
  font-weight: bold;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

/* 3D Cube */
.hero-3d {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  height: 400px;
}

.cube {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid var(--primary);
  background: rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.cube-face-front {
  transform: rotateY(0deg) translateZ(100px);
}
.cube-face-back {
  transform: rotateY(180deg) translateZ(100px);
}
.cube-face-right {
  transform: rotateY(90deg) translateZ(100px);
}
.cube-face-left {
  transform: rotateY(-90deg) translateZ(100px);
}
.cube-face-top {
  transform: rotateX(90deg) translateZ(100px);
}
.cube-face-bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* About Section */
.about {
  padding: 80px 0;
  background: rgba(0, 212, 255, 0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-muted);
}

.interests {
  padding: 1.5rem;
  background: rgba(131, 56, 236, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
}

/* Projects Section */
.projects {
  padding: 80px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  padding: 2rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.project-card:hover {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.project-card:hover::before {
  left: 100%;
}

.project-header h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.project-subtitle {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  background: rgba(131, 56, 236, 0.2);
  color: var(--accent);
  border-radius: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 212, 255, 0.2);
  color: var(--primary);
  border-radius: 20px;
}

.project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.project-stats div {
  text-align: center;
  color: var(--primary);
}

.project-stats strong {
  display: block;
  font-size: 1.2rem;
}

/* Skills Section */
.skills {
  padding: 80px 0;
  background: rgba(0, 212, 255, 0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.skill-category {
  padding: 2rem;
  background: rgba(131, 56, 236, 0.05);
  border: 1px solid rgba(131, 56, 236, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: rgba(131, 56, 236, 0.1);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.skill-category h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-item {
  padding: 0.6rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  border-radius: 5px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: scale(1.05);
}

/* Education Section */
.education {
  padding: 80px 0;
}

.education-timeline {
  position: relative;
  max-width: 800px;
}

.education-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-marker {
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 3px solid var(--primary);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-marker::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-content {
  padding: 1.5rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary);
}

.timeline-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.institution {
  color: var(--secondary);
  font-size: 0.95rem;
}

.duration {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cert-list p {
  margin: 0.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--primary);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: rgba(131, 56, 236, 0.05);
  border-top: 1px solid var(--border-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--primary);
  font-size: 1.3rem;
}

.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-link {
  padding: 1.5rem;
  background: rgba(131, 56, 236, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--accent);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-5px);
  border-color: var(--accent);
}

.social-link i {
  font-size: 1.5rem;
}

.social-link span {
  font-size: 0.9rem;
}

/* Section Title */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  background: var(--bg-darker);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

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

  .hero-3d {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.99);
    padding: 2rem;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

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

  .contact-content {
    grid-template-columns: 1fr;
  }

  .education-timeline::before {
    left: 15px;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
  }

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