/* ========================================
   RETRO BRUTALIST PORTFOLIO - CSS
   Monochrome, bold, browser-window style
   ======================================== */

/* CSS Variables */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --border-width: 3px;
  --radius: 0px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--gray-100);
  color: var(--black);
  line-height: 1.6;
}

/* Selection */
::selection {
  background: var(--black);
  color: var(--white);
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--black);
  color: var(--white);
  z-index: 1000;
}

.nav-logo svg {
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
main {
  padding-top: 60px;
}

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  section {
    padding: 3rem 1rem;
  }
}

/* Section Titles */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--black);
}

@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gray-100);
  border-bottom: var(--border-width) solid var(--black);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 450px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: var(--border-width) solid var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

/* Hero Illustration */
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.retro-computer {
  width: 100%;
  max-width: 300px;
  height: auto;
}

@media (max-width: 900px) {
  .retro-computer {
    max-width: 220px;
  }
}

/* Quick Links */
.quick-links {
  border-top: var(--border-width) solid var(--black);
  padding-top: 2rem;
}

.quick-links h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--border-width) solid var(--black);
}

@media (max-width: 700px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quick-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  border-right: var(--border-width) solid var(--black);
  transition: all 0.2s ease;
}

.quick-link:last-child {
  border-right: none;
}

@media (max-width: 700px) {
  .quick-link:nth-child(2) {
    border-right: none;
  }

  .quick-link:nth-child(1),
  .quick-link:nth-child(2) {
    border-bottom: var(--border-width) solid var(--black);
  }
}

.quick-link:hover {
  background: var(--black);
  color: var(--white);
}

.quick-link .arrow {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.quick-link:hover .arrow {
  transform: translate(3px, -3px);
}

/* ========================================
   BROWSER CARD COMPONENT
   ======================================== */
.browser-card {
  background: var(--white);
  border: var(--border-width) solid var(--black);
  overflow: hidden;
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--gray-200);
  border-bottom: var(--border-width) solid var(--black);
}

.browser-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: var(--white);
}

.browser-title {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-family: monospace;
}

.browser-content {
  padding: 1.5rem;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
  background: var(--gray-200);
  border-bottom: var(--border-width) solid var(--black);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.browser-card .project-image {
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  border-bottom: var(--border-width) solid var(--black);
  overflow: hidden;
}

.browser-card .project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.browser-card:hover .project-image img {
  filter: grayscale(0%);
}

.project-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-section {
  background: var(--gray-100);
  border-bottom: var(--border-width) solid var(--black);
}

.skills-container {
  max-width: 800px;
  margin: 0 auto;
}

.skills-card .browser-content {
  padding: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.skill-category h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.4rem 0.8rem;
  background: var(--gray-100);
  border: 2px solid var(--black);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--black);
  color: var(--white);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  background: var(--white);
  border-bottom: var(--border-width) solid var(--black);
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.about-photo {
  border: var(--border-width) solid var(--black);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.about-photo:hover img {
  filter: grayscale(0%);
}

@media (max-width: 700px) {
  .about-photo {
    width: 180px;
    margin: 0 auto;
  }
}

.about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.about-role {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-education {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-200);
}

.about-education h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.about-education p {
  margin-bottom: 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  background: var(--gray-200);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

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

.contact-card .browser-content {
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--black);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.contact-form .btn-primary {
  align-self: flex-start;
  border: none;
  border: var(--border-width) solid var(--black);
}

/* Contact Links */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link-card {
  background: var(--white);
  border: var(--border-width) solid var(--black);
  text-decoration: none;
  color: var(--black);
  transition: all 0.2s ease;
}

.contact-link-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--black);
}

.contact-link-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.contact-link-content svg {
  flex-shrink: 0;
}

.contact-link-content span {
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-link-content .arrow {
  margin-left: auto;
  font-size: 1.2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for project cards */
.browser-card:nth-child(1) { transition-delay: 0.1s; }
.browser-card:nth-child(2) { transition-delay: 0.2s; }
.browser-card:nth-child(3) { transition-delay: 0.3s; }
.browser-card:nth-child(4) { transition-delay: 0.4s; }
.browser-card:nth-child(5) { transition-delay: 0.5s; }
.browser-card:nth-child(6) { transition-delay: 0.6s; }

/* ========================================
   HOVER EFFECTS
   ======================================== */
.browser-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.browser-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--black);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .nav {
    display: none;
  }

  main {
    padding-top: 0;
  }

  .browser-card {
    break-inside: avoid;
  }
}
