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

:root {
  --bg:         #0f0f0f;
  --bg-card:    #1a1a1a;
  --bg-section: #141414;
  --accent:     #f0a500;
  --accent-d:   #c98800;
  --white:      #ffffff;
  --text:       #e0e0e0;
  --text-muted: #888;
  --border:     rgba(255,255,255,0.08);
  --radius:     12px;
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

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

/* HEADER */
.site-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,165,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.header-name {
  font-family: 'Georgia', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: bold;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.header-title {
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.github-link {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

.github-link:hover {
  background: var(--accent-d);
  transform: translateY(-2px);
}

/* NAVBAR*/
.navbar {
  background-color: #111;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0 40px;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0;
}

.navbar ul li {
  display: inline;
}

.navbar ul li a {
  display: inline-block;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 24px;
  transition: color 0.2s;
  position: relative;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.navbar ul li a:hover {
  color: var(--accent);
}

.navbar ul li a:hover::after {
  width: 60%;
}

/* MAIN CONTENT */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* SECTIONS*/
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  font-family: 'Georgia', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: bold;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

/*ABOUT SECTION*/
.about-section {
  text-align: left;
}

.about-section .section-title {
  display: block;
  text-align: center;
  margin-bottom: 48px;
}

.about-section .section-title::after {
  margin: 10px auto 0;
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-text {
  flex: 1 1 300px;
  max-width: 580px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

/*SKILLS SECTION*/
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.skill-card {
  flex: 1 1 200px;
  max-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.skill-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}

.skill-card h3 {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.skill-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/*PROJECTS SECTION*/
.projects-section {
  text-align: left;
}

.projects-section .section-title {
  display: block;
  text-align: center;
  margin-bottom: 48px;
}

.projects-section .section-title::after {
  margin: 10px auto 0;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 28px;
}

.project-card {
  flex: 1 1 280px;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}

.project-img {
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-img img {
  transform: scale(1.06);
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.project-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tags span {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  background: rgba(240,165,0,0.1);
  color: var(--accent);
  border: 1px solid rgba(240,165,0,0.3);
  padding: 3px 10px;
  border-radius: 50px;
}

.project-link {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--accent);
  transition: color 0.2s;
}

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

/*CONTACT SECTIOn*/
.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 16px 0 36px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

.contact-btn:hover {
  background: var(--accent-d);
  transform: translateY(-2px);
}

.contact-btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.contact-btn--outline:hover {
  background: var(--accent);
  color: #000;
}

/*FOOTER*/
.site-footer {
  background-color: #0a0a0a;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  line-height: 2;
}

/*RESPONSIVE*/
@media (max-width: 768px) {
  .main-content {
    padding: 0 20px;
  }

  .navbar {
    padding: 0 10px;
  }

  .navbar ul {
    gap: 0;
  }

  .navbar ul li a {
    padding: 14px 12px;
    font-size: 0.72rem;
  }

  .site-header {
    padding: 60px 20px 40px;
  }

  .about-grid {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: left;
  }

  .skill-card {
    flex: 1 1 160px;
  }

  .project-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .navbar ul {
    flex-wrap: wrap;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 200px;
    text-align: center;
  }
}