/* COLOR VARIABLES */
:root {
  /* Primary brand colors */
  --primary: #14213d;        /* Prussian Blue */
  --primary-dark: #0e172e;   /* Darker shade for hover */

  /* Accent color (use sparingly) */
  --accent: #fca311;          /* Orange */
  --accent-dark: #e59410;     /* Slightly darker for hover if needed */

  /* Backgrounds */
  --bg-body: #e5e5e5;        /* Alabaster Grey – light, easy on eyes */
  --bg-white: #ffffff;        /* White for cards */
  --bg-hero-gradient: linear-gradient(135deg, #14213d 0%, #1f2a44 100%); /* Prussian Blue gradient */
  --bg-resume: #e5e5e5;       /* Alabaster Grey */
  --bg-footer: #000000;       /* Black footer */

  /* Text colors */
  --text-dark: #000000;       /* Black for headings on light backgrounds */
  --text-medium: #14213d;     /* Prussian Blue for body text on light? Use black for better contrast */
  --text-muted: #4a4a4a;      /* Dark grey for secondary text */
  --text-light: #6c6c6c;      /* Light grey for skill card descriptions */
  --text-white: #ffffff;      /* White on dark backgrounds */

  /* Hero text colors (on dark gradient) */
  --text-hero-heading: #ffffff;
  --text-hero-subhead: #e5e5e5;
  --text-hero-tagline: #cccccc;

  /* Borders & shadows */
  --shadow-light: rgba(0,0,0,0.1);
  --border-white: white;

  /* Button & link colors */
  --btn-small-bg: #0e172e;
  --btn-small-bg-hover: #e59410;
  --btn-small-text: #ffffff;

  /* Skill card icon color */
  --skill-icon: var(--primary); /* Prussian Blue */

  /* Accent for stars etc. */
  --accent-gold: var(--accent); /* Orange */
}

/* Then adjust btn-small styles to use new variables: */
.btn-small {
  background-color: var(--btn-small-bg);
  color: var(--btn-small-text);
}
.btn-small:hover {
  background-color: var(--btn-small-bg-hover);
}

/* Base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-medium);
  background-color: var(--bg-body);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: var(--bg-white);
  box-shadow: 0 2px 5px var(--shadow-light);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--nav-text);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: var(--btn-small-bg);
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--accent-dark);
}

.burger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--nav-text);
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  height: 768px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-hero-gradient);
  padding: 0 20px;
  margin-top: 60px; /* offset fixed nav */
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-hero-heading);
}

.hero .subhead {
  font-size: 1.2rem;
  color: var(--text-hero-subhead);
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-hero-tagline);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-dark);
  color: #000000;
}

.btn-small {
  display: inline-block;
  background-color: var(--btn-small-bg);
  color: var(--text-white);
  padding: 0.4rem 1rem;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.btn-small:hover {
  background-color: var(--btn-small-bg-hover);
  color: #000000;
}

/* Based on concept from MDN @keyframes documentation: @keyframes slide-in {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(100%);
  }
}, but changed to fade and slide up instead of horizontal slide. */

.hero-content {
  animation: fadeSlideUp 1.2s ease-out forwards;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--text-dark);
}

/* About */
.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px var(--shadow-light);
  border: 3px solid var(--border-white);
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-card {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--shadow-light);
  text-align: center;
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--skill-icon);
  margin-bottom: 1rem;
}

.skill-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-medium);
}

.skill-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--shadow-light);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-medium);
}

.project-subtitle {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Resume */
.resume {
  text-align: center;
  background-color: var(--bg-resume);
}

.resume p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.small {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.project-subtitle i.fa-star {
  color: var(--accent-gold);
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-links a {
  text-decoration: none;
  color: var(--primary);
  font-size: 1.1rem;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-links a:hover {
  color: var(--accent-dark);
}

.personal-portfolio {
  text-align: center;
  color: var(--text-light);
}

/* Footer */
footer {
  background-color: var(--bg-footer);
  color: var(--text-white);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .portrait {
    width: 150px;
    height: 150px;
  }

  .navbar {
    padding: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--bg-white);
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-light);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    margin: 0.5rem 0;
  }

  .burger {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subhead {
    font-size: 1rem;
  }

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