/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0066ff;
  --secondary-color: #00d4ff;
  --accent-color: #ff6b35;
  --dark-bg: #0a0e1a;
  --darker-bg: #050810;
  --light-bg: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #a0a9c0;
  --text-muted: #6b7280;
  --border-color: #1e293b;
  --success-color: #10b981;

  --font-mono: "JetBrains Mono", monospace;
  --font-sans: "Inter", sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

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

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

/* Navigation */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.terminal-prompt {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

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

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

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

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  overflow: hidden;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.typing-container {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.typing-text {
  color: var(--text-primary);
}

.cursor {
  animation: blink 1s infinite;
  color: var(--primary-color);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-name {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image {
  position: relative;
}

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 3px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
  transition: var(--transition);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
  opacity: 0;
  transition: var(--transition);
  border-radius: 17px;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: var(--primary-color);
  position: relative;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Section Styles */
section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 400;
}

/* About Section */
.about-section {
  background: var(--darker-bg);
}

.about-content {
  max-width: 800px;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.contact-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.contact-item {
  display: flex;
  margin-bottom: 0.5rem;
}

.contact-label {
  font-weight: 600;
  min-width: 100px;
  color: var(--text-primary);
}

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

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

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

.contact-link {
  padding: 0.5rem 1rem;
  background: var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.contact-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

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

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-family: var(--font-mono);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--darker-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.skill-item span {
  font-weight: 500;
  min-width: 150px;
}

.skill-bar {
  flex: 1;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  margin-left: 1rem;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  width: 0;
  transition: width 1s ease-out;
}

/* Experience Section */
.experience-section {
  background: var(--darker-bg);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0.6;
  transition: var(--transition);
}

.timeline-item.active {
  opacity: 1;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--dark-bg);
}

.timeline-content {
  background: var(--dark-bg);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-left: 1rem;
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  border-color: var(--primary-color);
  transform: translateX(10px);
}

.job-header {
  margin-bottom: 1.5rem;
}

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

.company {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 1rem;
}

.period,
.location {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.achievements {
  list-style: none;
  padding-left: 0;
}

.achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.achievements li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 0.8rem;
}

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

.project-card {
  background: var(--darker-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

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

.project-header h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--primary-color);
}

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

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

.tech-tag {
  background: var(--border-color);
  color: var(--text-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.project-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Education Section */
.education-section {
  background: var(--darker-bg);
}

.education-item {
  background: var(--dark-bg);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  max-width: 600px;
}

.education-item h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.school {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 1rem;
}

.graduation,
.location {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

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

.contact-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--darker-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
}

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

.method-label {
  font-weight: 600;
  color: var(--text-primary);
}

.method-value {
  color: var(--primary-color);
  font-family: var(--font-mono);
}

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

.footer-content p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.footer-cta {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  margin: 0 0.5rem;
}

.footer-cta:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

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

.footer-credit a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-separator {
  margin: 0 1rem;
  color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .nav-menu a {
    font-size: 0.8rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

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

  .image-container {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .container {
    padding: 0 1rem;
  }

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

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

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

  .timeline {
    padding-left: 1rem;
  }

  .timeline-marker {
    left: -1rem;
  }

  .timeline-content {
    margin-left: 0.5rem;
  }
}

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

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    display: none;
  }

  .contact-method {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
