/* ================================ */
/* -------- CSS Variables --------- */
/* ================================ */

:root {
  /* Colors - Dark Theme with Vibrant Accents */
  --color-bg: #0a0a0f;
  --color-bg-card: #15151f;
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-text: #f5f5f7;
  --color-text-light: #a1a1aa;
  --color-border: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* ================================ */
/* ---------- CSS Reset ----------- */
/* ================================ */

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

html {
  scroll-behavior: smooth;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ================================ */
/* ------------ Body -------------- */
/* ================================ */

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ================================ */
/* -------- Navigation ------------ */
/* ================================ */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  position: sticky;
  top: 0;
  background-color: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

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

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

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

/* ================================ */
/* ---------- Sections ------------ */
/* ================================ */

section {
  padding: 80px 30px;
  max-width: 1000px;
  margin: 0 auto;
}

section h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

/* ================================ */
/* -------- Home Section ---------- */
/* ================================ */

#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.greeting {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 10px;
}

#home h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 15px;
}

#home h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.highlight {
  color: var(--color-primary);
}

.intro {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 550px;
  margin: 0 auto 40px;
}

.home-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================ */
/* ----------- Buttons ------------ */
/* ================================ */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* ================================ */
/* -------- About Section --------- */
/* ================================ */

#about {
  background-color: var(--color-bg-card);
  max-width: 100%;
  padding: 80px 30px;
}

#about>* {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 40px;
}

.hero-profile-image {
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
  max-width: 400px;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.skills h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-list li {
  padding: 8px 16px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  transition: all 0.3s ease;
}

.skills-list li:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ================================ */
/* ------- Projects Section ------- */
/* ================================ */

.projects-grid {
  display: grid;
  gap: 25px;
}

.project-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg) 100%);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image {
  opacity: 0.8;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 20px 20px 10px;
}

.project-card>p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  padding: 0 20px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 20px;
}

.project-tags li {
  font-size: 0.8rem;
  color: var(--color-primary);
  padding: 4px 10px;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: 6px;
}

.project-links {
  display: flex;
  gap: 20px;
  padding: 15px 20px 20px;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

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

/* ================================ */
/* ------- Contact Section -------- */
/* ================================ */

#contact {
  background-color: var(--color-bg-card);
  max-width: 100%;
  padding: 80px 30px;
}

#contact>* {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.contact-intro {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: -20px auto 40px;
}

.contact-content {
  display: grid;
  gap: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.form-group input,
.form-group textarea {
  padding: 14px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-links a {
  color: var(--color-text-light);
  transition: all 0.3s ease;
}

.contact-links a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

/* ================================ */
/* ----------- Footer ------------- */
/* ================================ */

footer {
  padding: 30px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

footer p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.copyright {
  font-size: 0.8rem;
  margin-top: 10px;
  opacity: 0.6;
}

/* ================================ */
/* ------- Media Queries ---------- */
/* ================================ */

/* Hide nav links on mobile */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  #home h1 {
    font-size: 2.5rem;
  }

  #home h2 {
    font-size: 1.2rem;
  }

  section h2 {
    font-size: 2rem;
  }
}

/* Tablet and up */
@media (min-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 900px) {
  section {
    padding: 100px 50px;
  }

  #about,
  #contact {
    padding: 100px 50px;
  }

  .about-content {
    flex-direction: row;
    gap: 60px;
  }

  .contact-content {
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
  }

  footer {
    display: flex;
    justify-content: space-between;
    padding: 30px 50px;
  }

  .copyright {
    margin-top: 0;
  }
}