/* Root variables */
:root {
  --brand: #380310;
  --action: #f39c12;
  --white: #ffffff;
  --dark: #000000;
  --grey: #a8a0a0;

  --radius: 10px;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --transition: 0.25s ease;
  --max-width: 1100px;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--grey);
  color: var(--dark);
}

.container {
  width: min(var(--max-width), 100% - 2rem);
  margin: 0 auto;
}

/* Header and Nav */
.site-header {
  background-color: var(--brand);
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Desktop logo */
.logo {
  background: var(--white);
  color: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile logo */
.mobile-logo {
  background: var(--white);
  color: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop nav layout */
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 20px;
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

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

/* Mobile header */
.mobile-header {
  display: none;
}

/* Hide hamburger on desktop */
.hamburger-icon {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  /* Show mobile header */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Hide desktop nav */
  .nav {
    display: none;
  }

  /* Show hamburger */
  .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }

  .hamburger-icon span {
    width: 25px;
    height: 3px;
    background: var(--white);
  }

  /* Show nav when hamburger is clicked */
  .nav.active {
    display: block;
    background: var(--brand);
    padding: 20px;
  }
}

/* Hero */
.hero {
  background: var(--white);
  padding: 60px 20px;
  margin: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--brand);
  margin: 10px 0;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Sections */
.section {
  background: var(--white);
  padding: 40px 20px;
  margin: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section h2 {
  color: var(--brand);
  margin-bottom: 20px;
}

.card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Photo card home */
.photo-card {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.profile-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--brand);
}

.bio-text {
  flex: 1;
}

.btn-toggle {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--brand);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle:hover {
  color: var(--action);
}

.hidden {
  display: none;
}

/* Mobile photo card */
@media (max-width: 768px) {
  .photo-card {
    flex-direction: column;
    text-align: center;
  }

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

  .profile-photo {
    width: 140px;
    height: 140px;
  }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.project-card h3 {
  color: var(--brand);
  margin-bottom: 10px;
}

/* Buttons */
.btn-primary {
  background-color: var(--brand);
  color: var(--white);
  padding: 10px 15px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--action);
  color: var(--dark);
}

/* Footer */
.footer {
  background-color: var(--brand);
  padding: 30px 0;
  text-align: center;
  margin-top: 40px;
  color: var(--white);
  font-size: 0.9rem;
}

/* Layout */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Social icons container */
.social-icons {
  display: flex;
  gap: 22px;
}

/* Clickable area */
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* SVG styling */
.footer-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
  transition: 0.25s ease;
  pointer-events: none; /* ensures click goes to <a> */
}

/* Hover effect */
.footer-icon:hover svg {
  transform: scale(1.15);
  fill: var(--action);
}

/* Footer text */
.footer-text {
  font-size: 0.9rem;
  opacity: 0.85;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.social-icons svg {
  pointer-events: none; /* ensures the click goes to the <a> tag */
}

/* Make footer stay at bottom on short pages */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

/* Allow content to expand so footer stays at bottom */
main, section {
  flex: 1 0 auto;
}

/* About Page Grid */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--dark);
}

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

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

/* About grid profile picture  */
.about-grid img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--brand);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.about-text .btn-toggle {
  margin-top: 15px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.skill {
  background: var(--brand);
  color: var(--white);
  padding: 10px 15px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.skill:hover {
  background: var(--action);
  color: var(--dark);
}

/* CTA card */
.section .card h2 {
  margin-bottom: 10px;
  color: var(--brand);
}

.section .card p {
  margin-bottom: 15px;
}
/* Timeline */
.timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 20px;
  border-left: 3px solid var(--brand);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 25px;
}

.timeline-dot {
  position: absolute;
  left: -11px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--brand);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.timeline-content {
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  margin-bottom: 8px;
  color: var(--brand);
}

.timeline-content p {
  margin: 0;
  color: var(--dark);
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
  .timeline {
    padding-left: 15px;
  }

  .timeline-item {
    padding-left: 20px;
  }

  .timeline-dot {
    left: -10px;
  }
}

/* Projects Page */
.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}

.project-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-card h3 {
  color: var(--brand);
  margin-bottom: 5px;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dark);
}

.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tags span {
  background: var(--brand);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  box-shadow: var(--shadow);
}

/* Coming soon card */
.coming-soon {
  background: var(--grey);
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-inner {
  text-align: center;
}

.coming-soon h3 {
  color: var(--brand);
  margin-bottom: 10px;
}

/* Contact Page */
.contact-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card h2 {
  color: var(--brand);
  margin-bottom: 5px;
}

.contact-intro {
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: bold;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--grey);
  background: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(56, 3, 16, 0.2);
}

.contact-form button {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}