/* Base styles */
:root {
  --blue: #111f9a;
  --gold: #ffd700;
  --black: #000;
  --white: #fff;
  --light-gray: rgba(255, 255, 255, 0.1);
  --dark-gray: rgba(255, 255, 255, 0.7);
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--gold);
  background-color: var(--blue);
}

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

ul {
  list-style: none;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem; /* Reduced top/bottom padding */
  position: sticky;
  top: 0;
  background-color: var(--blue);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  margin-right: 5px;
}

.filled {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* Enhanced navigation styling */
nav ul {
  display: flex;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  position: relative;
  padding: 5px 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--gold);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--white);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Add styles for active navigation */
nav ul li a.active {
  color: var(--white);
}

nav ul li a.active::after {
  width: 100%;
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 1.5rem 0; /* Reduced from 2rem to 1.5rem */
}

/* Reduced spacing for hero section */
.hero {
  min-height: 50vh; /* Reduced from 60vh to 50vh */
  display: flex;
  align-items: center;
  padding-bottom: 0.5rem; /* Reduced from 1rem to 0.5rem */
  padding-top: 0.5rem; /* Added to reduce space at top */
}

h1 {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem; /* Reduced from 2rem to 1.5rem */
  letter-spacing: 1px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
  max-width: 700px;
}

/* Reduced spacing for dividers */
.divider {
  height: 1px;
  background-color: var(--light-gray);
  width: 100%;
  margin: 0.5rem 0; /* Reduced from 1rem to 0.5rem */
}

/* Work section */
.job {
  margin-bottom: 3rem;
}

.company {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

/* Interests section */
.interest-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category ul {
  margin-top: 1rem;
}

.category li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.category li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Enhanced Contact section */
.social-links {
  display: flex;
  gap: 2rem;
  font-size: 1.5rem;
}

.social-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--gold);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}

.social-links a:hover {
  color: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-links a:hover::before {
  transform: scale(1);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--dark-gray);
  background-color: rgba(0, 0, 0, 0.2);
  margin-top: 4rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Updated Responsive Styles for Horizontal Mobile Navigation */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem; /* Further reduced padding on mobile */
  }

  nav {
    width: 100%;
    margin-top: 1rem; /* Reduced from 1.5rem */
  }

  nav ul {
    flex-direction: row; /* Keep horizontal layout */
    justify-content: space-between; /* Distribute items evenly */
    width: 100%;
    padding: 0;
  }

  nav ul li {
    margin: 0; /* Remove left margin */
  }

  nav ul li a {
    font-size: 0.9rem; /* Slightly smaller font for mobile */
    padding: 0.5rem 0;
    display: block;
  }

  h1 {
    font-size: 3rem;
  }

  .hero {
    min-height: 40vh; /* Further reduced on mobile */
    padding-top: 0; /* Remove top padding on mobile */
  }

  .interest-categories {
    grid-template-columns: 1fr;
  }

  .social-links a {
    width: 50px;
    height: 50px;
  }

  /* Reduce section padding on mobile */
  section {
    padding: 1rem 0;
  }
}

/* For very small screens */
@media (max-width: 400px) {
  nav ul li a {
    font-size: 0.8rem; /* Even smaller font for very small screens */
  }

  .logo {
    font-size: 0.9rem;
  }

  .circle {
    width: 16px;
    height: 16px;
  }
}

/* Gold theme elements */
.hero h1 {
  color: var(--gold);
}

.filled {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* Hover effects */
.job:hover h3 {
  color: var(--white);
  transition: var(--transition);
}

.category h3:hover {
  color: var(--white);
  transition: var(--transition);
}

/* Enhanced hyperlinks in the about section - REMOVED ARROW */
.about a {
  color: var(--white);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
}

.about a:hover {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* Add a subtle pulse animation to encourage clicking */
@keyframes subtle-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.social-links a:hover i {
  animation: subtle-pulse 1s infinite;
}

/* Add tooltip-style labels for social links on hover */
.social-links a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold);
  color: var(--blue);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.social-links a:hover::after {
  opacity: 1;
}

/* Specific adjustments for about-page section */
#about-page {
  padding-top: 1rem; /* Reduced padding specifically for this section */
}
