/* ========================================================= */
/*                 COLOR THEME (YOUR COLORS)                 */
/* ========================================================= */

:root {
  --bg:#070708;
  --panel:#0f1114;
  --accent-blue:#00A8FF;
  --accent-red:#FF3B3B;
  --muted:#9aa3ad;
  --card:#131519;
  --glass: rgba(255,255,255,0.03);
}

/* ========================================================= */
/*                       GLOBAL RESET                         */
/* ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: #e9eef3;
  line-height: 1.6;
}

/* ========================================================= */
/*                         NAVBAR                             */
/* ========================================================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: linear-gradient(90deg, #0b0c10, #111218);
  border-bottom: 1px solid rgba(0,168,255,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.25s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-3px);
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* ========================================================= */
/*                          HERO                              */
/* ========================================================= */

.race-hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #0b0d10cc, #111217dd);
  animation: fadeIn 1s ease both;
}

.race-hero h1 {
  font-size: 2.6rem;
  color: var(--accent-blue);
  text-shadow: 0 0 15px rgba(0,168,255,0.25);
}

.race-hero p {
  color: var(--muted);
  max-width: 700px;
  margin: 10px auto 18px;
}

.hero-img {
  width: 60%;
  max-width: 480px;
  border-radius: 16px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp 1.5s ease forwards;
}

.btn {
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: var(--accent-red);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s;
  box-shadow: 0 0 15px rgba(255,59,59,0.3);
}

.btn.primary {
  background: var(--accent-blue);
  color: #00171d;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0,168,255,0.4);
}

/* ========================================================= */
/*                         SECTIONS                           */
/* ========================================================= */

.container {
  width: 90%;
  max-width: 1150px;
  margin: 60px auto;
}

.section {
  background: var(--glass);
  padding: 30px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
  animation: fadeUp 1s ease both;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

/* ========================================================= */
/*                           ABOUT                            */
/* ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 25px;
}

.about-card {
  background: var(--card);
  padding: 22px;
  border-radius: 12px;
  transition: 0.3s;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0,168,255,0.15);
}

/* ========================================================= */
/*                          SKILLS                            */
/* ========================================================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 20px;
}

.skill-card {
  background: var(--card);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 22px rgba(0,168,255,0.25);
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: #0d0f12;
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: var(--accent-blue);
  width: 0;
  animation: grow 2s forwards;
}

@keyframes grow {
  to {
    width: var(--width);
  }
}

/* ========================================================= */
/*                         SERVICES                           */
/* ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 20px;
}

.service-card {
  background: var(--card);
  padding: 20px;
  border-radius: 14px;
  transition: 0.25s;
  border: 1px solid rgba(255,255,255,0.08);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255,59,59,0.25);
}

/* ========================================================= */
/*                         PROJECTS                           */
/* ========================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
}

.project-card {
  background: var(--card);
  padding: 20px;
  border-radius: 14px;
  transition: 0.25s;
  border: 1px solid rgba(255,255,255,0.08);
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0,168,255,0.25);
}

.project-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ========================================================= */
/*                         CONTACT                            */
/* ========================================================= */

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
}

.contact-icon {
  font-size: 2rem;
  color: var(--accent-blue);
  transition: 0.25s;
}

.contact-icon:hover {
  color: var(--accent-red);
  transform: scale(1.2);
}

/* ========================================================= */
/*                        RESPONSIVE                          */
/* ========================================================= */

@media(max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--panel);
    position: absolute;
    width: 200px;
    right: 0;
    top: 60px;
    padding: 10px;
    border-radius: 0 0 0 10px;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* ========================================================= */
/*                        ANIMATIONS                          */
/* ========================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
}
