/* Reset default browser spacing */
html, body {
  margin: 0;
  padding: 0;
}

/* === General Styling === */
h1 {
  margin-top: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fdfdfd;
    color: #222;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

#projects h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

/* === Header === */
header, .hero {
  margin-top: 0;
  padding-top: 20px; /* adjust as needed */
}

header {
    background-color: #222;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

nav {
    margin-top: 10px;
}

nav a {
    color: #ffcc00;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

nav a:hover {
    background-color: #ffcc00;
    color: #222;
}

/* Highlight the active page */
nav a.active {
  background-color: #f4c542; /* yellow background */
  color: #222;              /* dark text */
}

/* === Main Container === */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px;
  margin-top: 0;   /* ⬅ Remove the extra gap */
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #444;
}

/* Tagline under Hero name */
  .hero .tagline {
  font-size: 1.2em;
  margin: 10px 0 20px;
  color: #ffcc00 !important; /* same yellow as buttons */
  font-weight: bold;
}

/* About Me Section */
#about {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  line-height: 1.8;
}

#about h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* Carousel Styling */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out; /* Smooth slide */
}

.carousel-slide {
  min-width: 100%;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.carousel-slide img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

/* Navigation arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  font-size: 24px;
  color: #333;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background: #f4c542;
  color: white;
}

.prev { left: 15px; }
.next { right: 15px; }

/* Contact Section */
#contact {
  background: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #222;
  border-bottom: 3px solid #222;
  display: inline-block;
  padding-bottom: 5px;
}

.contact-info {
  margin-bottom: 25px;
}

.contact-info p {
  font-size: 1rem;
  margin: 10px 0;
  color: #333;
}

.contact-info a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Social Links */
.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #222;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: #444;
  transform: translateY(-2px);
}

/* Resume Page */
.resume-viewer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.resume-viewer iframe {
  width: 100%;
  height: 600px; /* Smaller than before */
  border: none;
}

/* Responsive Adjustment */
@media (max-width: 768px) {
  .resume-viewer iframe {
    height: 400px;
  }
}

/* Resume Page - Download Button */
.resume-download {
  text-align: center;
  margin-top: 20px;
}

.btn-dark {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #222;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.btn-dark:hover {
  background: #444;
  transform: translateY(-2px);
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.study-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

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