:root {
  --primary-color: #0A2342; /* Navy Blue */
  --accent-color: #FF8C00;  /* Orange */
  --background-color: #f8f9fa;
  --text-color: #343a40;
  --card-background: #ffffff;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px; /* Reduced margin */
}

header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--accent-color);
}

/* --- Updated Hero Section Styling --- */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh; /* Use min-height to ensure it's not too tall */
  background: var(--primary-color);
  color: #fff;
  padding: 40px 20px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1100px;
  width: 100%;
}

.hero-text {
  text-align: left;
  animation: fadeIn 1.5s ease-out;
}

.hero-title {
  font-size: 4rem;
  margin: 0;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin: 10px 0 30px;
  color: var(--accent-color); /* Make subtitle stand out */
}

.hero-social-links a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  margin-right: 15px;
  transition: background-color 0.3s ease;
}

.hero-social-links a:hover {
  background-color: var(--accent-color);
}

.hero-social-links i {
  margin-right: 8px;
}

.headshot {
  /* Increased size by 1.5x again */
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 7px solid var(--accent-color);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: zoomIn 1s ease-out;
}

/* --- Updated About Section Styling --- */
#about {
  padding: 80px 20px;
  text-align: center;
}

.about-text {
  max-width: 800px;
  margin: 0 auto; /* Center the text block */
  font-size: 1.1rem;
  line-height: 1.7;
}

section {
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

section:last-of-type {
    border-bottom: none;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  background-color: #e67e00;
  transform: translateY(-3px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 40px;
}

.project-card {
  background: var(--card-background);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.project-card h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.project-card a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  justify-content: center;
  margin-top: 40px;
}

.skills-list li {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.skills-list li:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 40px auto;
  text-align: left;
}

#contact input,
#contact textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

footer {
  background: var(--primary-color);
  color: var(--background-color);
  text-align: center;
  padding: 20px;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
      text-align: center;
      order: 2; /* Make text appear below image on mobile */
  }
  .hero-image-container {
      order: 1; /* Make image appear above text on mobile */
  }
  .headshot {
      width: 250px;
      height: 250px;
      margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  nav ul { display: none; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
}