:root {
  --primary: #4fc3f7;
  --secondary: #00d1b2;

  --bg: #0a0f1c;
  --card: #121a2b;

  --text: #eaf2ff;
  --muted: #a8b3cf;

  font-family: Inter, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
}

.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(10, 15, 28, 0.75);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  transition: all 0.3s ease;
}

.main-header.scrolled {
  background: rgba(10, 15, 28, 0.95);

  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 20px;
}

.logo {
  font-weight: 700;
  font-size: 18px;

  letter-spacing: 0.5px;
}

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

.nav-menu {
  display: flex;
  gap: 40px;

  list-style: none;
}

.nav-link {
  position: relative;

  text-decoration: none;

  color: var(--muted);

  font-weight: 500;

  transition: all 0.25s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -6px;

  width: 0%;
  height: 2px;

  background: var(--primary);

  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

.nav-button {
  padding: 10px 20px;

  border-radius: 8px;

  background: var(--primary);

  color: white;

  text-decoration: none;

  font-weight: 600;

  transition: all 0.3s ease;
}

.nav-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 20px rgba(79, 195, 247, 0.35);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.nav-link {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
}

.hero-section {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 160px 20px 120px 20px;

  position: relative;

  text-align: center;
}

.hero-container {
  max-width: 900px;

  margin: auto;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 30px;
}

.hero-name {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-family: "Fira Code", monospace;
  font-size: 48px;
  margin-bottom: 25px;
}

.name-value {
  color: #53c4f7;
  font-weight: 600;
}

.typing-text {
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--primary);
  width: 0;
  animation:
    typing 2.5s steps(18, end) forwards,
    blink 0.7s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 18ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero-description {
  max-width: 650px;

  color: var(--muted);

  font-size: 18px;

  line-height: 1.7;
}

.hero-buttons {
  display: flex;

  gap: 20px;

  margin-top: 20px;

  flex-wrap: wrap;

  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  padding: 12px 24px;
  color: white;
  text-decoration: none;
  margin: 10px;
  border-radius: 8px;
}

.btn-secondary {
  border: 1px solid var(--primary);
  padding: 12px 24px;
  color: var(--primary);
  text-decoration: none;
  margin: 10px;
  border-radius: 8px;
}

.section {
  padding: 100px 20px;
  max-width: 1000px;
  margin: auto;
}

.skills {
  display: grid;
  gap: 20px;
}

.skill-bar {
  background: #1e293b;
  height: 8px;
  border-radius: 5px;
}

.skill-progress {
  background: var(--primary);
  height: 100%;
  width: 0%;
}

.project-card {
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.loader-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #333;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;

  font-family: "Fira Code", monospace;

  color: rgba(79, 195, 247, 0.6);

  font-size: 22px;

  text-shadow: 0 0 10px rgba(79, 195, 247, 0.6);

  animation: float 12s linear infinite;

  opacity: 0.8;
}

@keyframes float {
  0% {
    transform: translateY(110vh) scale(0.6);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}
.about-section {
  padding: 120px 20px;

  background: linear-gradient(
    180deg,
    rgba(10, 15, 28, 0) 0%,
    rgba(18, 26, 43, 0.6) 100%
  );

  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-container {
  max-width: 1200px;

  margin: auto;

  display: grid;

  grid-template-columns: 1.4fr 1fr;

  gap: 60px;

  align-items: center;
}

.section-title {
  font-size: 40px;

  margin-bottom: 30px;
}

.about-description {
  color: var(--muted);

  line-height: 1.8;

  font-size: 17px;
}

.about-stats {
  display: flex;

  gap: 40px;

  margin-top: 40px;
}

.stat h3 {
  font-size: 28px;

  color: var(--primary);

  margin-bottom: 5px;
}

.stat p {
  font-size: 14px;

  color: var(--muted);
}

.about-card {
  background: var(--card);

  padding: 40px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.05);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-card h3 {
  margin-bottom: 20px;
}

.about-card ul {
  list-style: none;

  padding: 0;
}

.about-card li {
  padding: 10px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  color: var(--muted);
}

.about-card li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-stats {
    justify-content: space-between;
  }
}

.skills-section {
  padding: 120px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.05);

  background: linear-gradient(
    180deg,
    rgba(18, 26, 43, 0.6) 0%,
    rgba(10, 15, 28, 1) 100%
  );
}

.skills-container {
  max-width: 1100px;

  margin: auto;
}

.skills-card {
  background: var(--card);

  padding: 50px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.05);

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.skills-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 30px;
}

.skill-item {
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-3px);
}

.skill-header {
  display: flex;

  justify-content: space-between;

  margin-bottom: 10px;

  font-weight: 600;
}

.skill-percent {
  color: var(--primary);
}

.skill-bar {
  height: 8px;

  background: #1f2a40;

  border-radius: 6px;

  overflow: hidden;
}

.skill-progress {
  height: 100%;

  width: 0%;

  background: linear-gradient(90deg, var(--primary), var(--secondary));

  transition: width 1.5s ease;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.experience-section {
  padding: 120px 20px;

  background: linear-gradient(
    180deg,
    rgba(10, 15, 28, 1) 0%,
    rgba(18, 26, 43, 0.6) 100%
  );

  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-container {
  max-width: 1100px;

  margin: auto;
}

.timeline {
  position: relative;

  margin-top: 60px;

  padding-left: 40px;

  border-left: 2px solid rgba(79, 195, 247, 0.3);
}

.timeline-item {
  position: relative;

  margin-bottom: 60px;

  opacity: 0;

  transform: translateY(40px);

  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;

  transform: translateY(0);
}

.timeline-dot {
  position: absolute;

  left: -10px;

  top: 10px;

  width: 18px;

  height: 18px;

  background: var(--primary);

  border-radius: 50%;

  box-shadow: 0 0 10px rgba(79, 195, 247, 0.6);
}

.timeline-card {
  background: var(--card);

  padding: 30px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.05);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.timeline-card h3 {
  margin-bottom: 8px;
}

.timeline-company {
  display: block;

  color: var(--primary);

  font-weight: 600;

  margin-bottom: 4px;
}

.timeline-date {
  font-size: 14px;

  color: var(--muted);

  margin-bottom: 12px;

  display: block;
}

.timeline-card p {
  color: var(--muted);

  line-height: 1.6;
}

.projects-section {
  padding: 120px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.05);

  background: linear-gradient(
    180deg,
    rgba(18, 26, 43, 0.6) 0%,
    rgba(10, 15, 28, 1) 100%
  );
}

.projects-container {
  max-width: 1200px;

  margin: auto;
}

.projects-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 40px;

  margin-top: 60px;
}

.project-card {
  background: var(--card);

  padding: 30px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.05);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);

  transition: all 0.35s ease;

  position: relative;

  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);

  border-color: rgba(79, 195, 247, 0.4);
}

.project-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: linear-gradient(90deg, var(--primary), var(--secondary));

  opacity: 0;

  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  color: var(--muted);

  line-height: 1.6;

  margin-bottom: 20px;
}

.project-tech {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 20px;
}

.project-tech span {
  font-size: 12px;

  padding: 5px 10px;

  background: rgba(79, 195, 247, 0.1);

  border: 1px solid rgba(79, 195, 247, 0.2);

  border-radius: 6px;

  color: var(--primary);
}

.project-links {
  display: flex;

  gap: 12px;
}

.project-btn {
  padding: 8px 14px;

  font-size: 14px;

  border-radius: 6px;

  text-decoration: none;

  color: white;

  background: var(--primary);

  display: flex;

  align-items: center;

  gap: 6px;

  transition: all 0.25s ease;
}

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

  box-shadow: 0 8px 20px rgba(79, 195, 247, 0.4);
}

.project-btn.live {
  background: var(--secondary);
}

.fade-in {
  opacity: 0;

  transform: translateY(40px);

  transition: all 0.7s ease;
}

.fade-in.visible {
  opacity: 1;

  transform: translateY(0);
}

.contact-section {
  padding: 120px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.05);

  background: linear-gradient(
    180deg,
    rgba(10, 15, 28, 1) 0%,
    rgba(18, 26, 43, 0.6) 100%
  );
}

.contact-container {
  max-width: 1100px;

  margin: auto;
}

.contact-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  margin-top: 60px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--muted);

  margin-bottom: 30px;

  line-height: 1.6;
}

.contact-item {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 16px;
}

.contact-item i {
  color: var(--primary);

  font-size: 18px;
}

.contact-item a {
  color: var(--text);

  text-decoration: none;

  transition: color 0.2s ease;
}

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

.contact-form-card {
  background: var(--card);

  padding: 40px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.05);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.form-group input,
.form-group textarea {
  width: 100%;

  padding: 12px 14px;

  border-radius: 8px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  background: #0f172a;

  color: white;

  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;

  border-color: var(--primary);
}

.contact-button {
  background: var(--primary);

  color: white;

  padding: 12px 20px;

  border: none;

  border-radius: 8px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.25s ease;
}

.contact-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 20px rgba(79, 195, 247, 0.35);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* MOBILE RESPONSIVE STYLES */
/* ============================= */

/* Tablets */
@media (max-width: 1024px) {
  .section-container,
  .skills-container,
  .projects-container,
  .about-container,
  .contact-container {
    padding: 0 30px;
  }

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

/* Mobile */
@media (max-width: 768px) {
  /* Hero section */

  .hero-name {
    font-size: 28px;

    text-align: center;

    flex-wrap: wrap;
  }

  .hero-description {
    font-size: 16px;

    padding: 0 10px;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: center;

    gap: 12px;
  }

  /* About section */

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

    text-align: center;

    gap: 30px;
  }

  .about-image {
    margin: auto;
  }

  /* Skills */

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

    gap: 25px;
  }

  /* Projects */

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

    gap: 30px;
  }

  /* Contact */

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

    gap: 30px;
  }

  /* Navbar 

  .nav-links {
    display: none;
  }

  /* Buttons */

  .btn-primary,
  .btn-secondary {
    width: 100%;

    text-align: center;
  }

  /* Images */

  img {
    max-width: 100%;

    height: auto;
  }

  /* General section spacing */

  .section {
    padding: 80px 20px;
  }
}

/* Small phones */

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

  .hero-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 26px;
  }
}

/* Mobile Navbar */

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

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;

    width: 100%;

    background: rgba(10, 15, 28, 0.95);

    backdrop-filter: blur(10px);

    flex-direction: column;
    align-items: center;

    gap: 25px;

    padding: 30px 0;

    display: none;
  }

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