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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #f8fafc;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.header-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 18px 0;
  z-index: 1000;
}

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

.logo,
.footer-logo {
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #38bdf8;
}

.nav-toggle {
  display: none;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-tagline {
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-name {
  font-size: 52px;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 25px;
  margin-bottom: 18px;
}

.text-gradient {
  color: #38bdf8;
}

.typing-cursor {
  color: #38bdf8;
}

.hero-desc,
.about-text,
.section-subtitle,
.project-desc,
.timeline-desc {
  color: #cbd5e1;
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  gap: 14px;
}

.btn {
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.2s;
}

.btn-primary {
  background: #38bdf8;
  color: #0f172a;
}

.btn-outline {
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.hero-image img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #38bdf8;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 34px;
  margin-bottom: 10px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.about-card,
.skill-card,
.project-card,
.timeline-card,
.contact-card,
.contact-form-card,
.stat-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
}

.about-card {
  padding: 25px;
}

.about-fact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.about-fact-icon {
  font-size: 24px;
}

.about-fact-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.about-fact-desc {
  color: #cbd5e1;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.stat-item {
  padding: 18px;
  text-align: center;
}

.stat-num {
  font-size: 26px;
  color: #38bdf8;
  font-weight: 700;
}

.stat-label {
  color: #cbd5e1;
  font-size: 14px;
}

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

.skill-card {
  padding: 22px;
  text-align: center;
  transition: 0.2s;
}

.skill-icon-wrapper {
  font-size: 28px;
  margin-bottom: 8px;
}

.skill-card h3 {
  font-size: 16px;
}

.skill-card:hover,
.project-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
}

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

.project-card {
  padding: 25px;
  transition: 0.2s;
}

.project-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tech-tag {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #334155;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.project-btn {
  background: #38bdf8;
  color: #0f172a;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.project-btn:hover {
  background: #0ea5e9;
}

.timeline-card {
  max-width: 760px;
  margin: auto;
  padding: 25px;
}

.timeline-period {
  color: #38bdf8;
  font-weight: 700;
}

.timeline-title {
  margin: 10px 0;
}

.timeline-org {
  color: #cbd5e1;
  margin-bottom: 10px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  display: flex;
  gap: 15px;
  padding: 18px;
  text-decoration: none;
  color: #ffffff;
  align-items: center;
}

.contact-icon-wrapper {
  font-size: 26px;
}

.contact-details h4 {
  color: #38bdf8;
}

.contact-details p {
  color: #cbd5e1;
}

.contact-form-card {
  padding: 25px;
}

.contact-form-title {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  color: #cbd5e1;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0f172a;
  color: #ffffff;
}

.form-input:focus {
  outline: none;
  border-color: #38bdf8;
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
}

.scroll-to-top {
  position: fixed;
  right: -60px;
  bottom: 25px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-size: 22px;
  cursor: pointer;
}

.scroll-to-top.show {
  right: 25px;
}

.site-footer {
  text-align: center;
  padding: 40px 0;
  background: #020617;
  border-top: 1px solid #1e293b;
}

.footer-subtitle {
  color: #cbd5e1;
  margin: 10px 0 20px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-socials a {
  color: #38bdf8;
  text-decoration: none;
}

.footer-copy {
  color: #94a3b8;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
  }

  .nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 220px;
    height: 100vh;
    background: #0f172a;
    flex-direction: column;
    padding: 30px;
    transition: 0.3s;
    border-left: 1px solid #1e293b;
  }

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

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-name {
    font-size: 38px;
  }

  .hero-title {
    font-size: 21px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
  }

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

  .about-fact-item,
  .contact-card {
    justify-content: center;
    text-align: left;
  }
}

#typingText {
  color: #38bdf8;
}

.typing-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}