/* ====================== */
/* === GLOBAL STYLES === */
/* ====================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body styling with flex layout for sticky footer */
body {
  background-color: #1A202C;
  color: #E2E8F0;
  line-height: 1.6;
  min-height: 100vh; /* Minimum full viewport height */
  display: flex;
  flex-direction: column; /* Stack children vertically */
}

/* ====================== */
/* === HEADER & NAV === */
/* ====================== */

/* Fixed header that can hide/show on scroll */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  transition: transform 0.3s ease;
  z-index: 1000; /* Ensure header stays above other content */
}

#main-header.hidden {
  transform: translateY(-100%); /* Hide header by moving up */
}

/* Navigation bar */
.nav {
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #413841;
  border-bottom: 1px solid #fa8072; /* Salmon bottom border */
}

/* Site title in navigation */
.nav h1 {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 2px;
}

/* Link styles */
a {
  margin-left: 2rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fa8072; /* Salmon color */
  text-transform: uppercase;
  text-decoration: none;
}

/* Link states */
a:active { color: #B94E4E; } /* Darker salmon when clicked */
a:hover { color: #FF9999; } /* Light pink on hover */
a:visited { color: #D46A6A; } /* Muted salmon for visited links */

/* ====================== */
/* === BANNER SECTION === */
/* ====================== */

/* Full-width banner with salmon background */
.banner {
  background: #fa8072;
  height: 400px;
  color: #413841; /* Dark text for contrast */
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Content container inside banner */
.banner-content {
  position: relative;
  z-index: 2; /* Ensure content stays above animated background */
}

.banner h1 {
  margin: 0;
  font-size: 3rem;
}

/* Canvas for animated background elements */
#dots-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* Allow clicks to pass through */
}

/* ====================== */
/* === SOCIAL BUTTONS === */
/* ====================== */

/* Container for social media buttons */
.social-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Individual social media button */
.social-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 5px; 
  background-color: #453841; /* Dark purple background */
 /* Salmon icon/text */
  text-decoration: none;
  transition: all 0.3s ease;
}


/* Hover effects for social buttons */
.social-box:hover {
  background-color: rgba(0, 255, 0, 0.2); /* Light green tint */
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 0 15px #fa8072; /* Salmon glow */
}

/* Social icon styling */
.social-box i {
  font-size: 30px;
  margin-bottom: 5px;
}

.social-box span {
  font-size: 12px;
  font-weight: 600;
}

/* ====================== */
/* === MAIN CONTENT === */
/* ====================== */

/* Main content container */
main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  flex-grow: 1; /* Push footer down */
}

/* Section styling */
section {
  margin-bottom: 4rem;
}

/* Section headings with accent border */
section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-left: 4px solid #fa8072; /* Salmon accent */
  padding-left: 1rem;
}

/* ====================== */
/* === ABOUT SECTION === */
/* ====================== */

#about p {
  font-size: 1.1rem;
  max-width: 600px; /* Optimal reading width */
}

/* ====================== */
/* === PROJECTS SECTION === */
/* ====================== */

/* Projects grid layout */
#projects .project-list {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  gap: 2rem;
}

/* Individual project card */
#projects .project {
  border: 1px solid #fa8072; /* Salmon border */
  padding: 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

/* Project hover effect */
#projects .project:hover {
  background-color: #0f0a0f20; /* Semi-transparent dark */
}

/* ====================== */
/* === CONTACT SECTION === */
/* ====================== */

/* Contact form container */
#contact form {
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

/* Generic section spacing */
section {
  padding: 3rem 1rem;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
}

/* Center headings */
.section-header {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* ====================== */
/* === NAV BAR === */
/* ====================== */

.nav {
  background-color: #2D3748;
  border-bottom: 1px solid #4FD1C5;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

a {
  color: #4FD1C5;
  text-decoration: none;
}
a:active { color: #319795; }
a:hover { color: #F6AD55; }
a:visited { color: #81E6D9; }

/* ====================== */
/* === BANNER === */
/* ====================== */

.banner {
  background: #4FD1C5;
  color: #1A202C;
  padding: 3rem 1rem;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
}

/* ====================== */
/* === SOCIAL BUTTONS === */
/* ====================== */

.social-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 2rem 0;
}

.social-box {
  background-color: #2D3748;
  color: #E2E8F0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}

.social-box:hover {
  background-color: rgba(79, 209, 197, 0.15);
  box-shadow: 0 0 15px #4FD1C5;
}

/* ====================== */
/* === PROJECT CARDS === */
/* ====================== */

#projects .project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

#projects .project {
  border: 1px solid #4FD1C5;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: #2D3748;
  text-align: center;
  transition: background 0.3s;
}

#projects .project:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ====================== */
/* === FORM === */
/* ====================== */

form {
  background-color: #2D3748;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

form label {
  color: #CBD5E0;
  font-weight: 500;
}

form input,
form textarea {
  border: 1px solid #4A5568;
  background-color: #1A202C;
  color: #E2E8F0;
  padding: 0.8rem;
  border-radius: 6px;
  width: 100%;
}

form input:focus,
form textarea:focus {
  border-color: #4FD1C5;
  box-shadow: 0 0 6px rgba(79, 209, 197, 0.4);
  outline: none;
}

form button[type="submit"] {
  background-color: #4FD1C5;
  color: #1A202C;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

form button[type="submit"]:hover {
  background-color: #319795;
}

/* ====================== */
/* === FOOTER === */
/* ====================== */

footer {
  border-top: 1px solid #4FD1C5;
  color: #A0AEC0;
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}

/* ====================== */
/* === 3D IMAGE CAROUSEL === */
/* ====================== */

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  perspective: 1000px;
  margin: 2rem auto;
  max-width: 1000px;
}

#carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease-in-out;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  width: 300px;
  text-decoration: none;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.carousel-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.caption {
  padding: 1rem;
  font-size: 1rem;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fa8072;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.carousel-btn:hover { opacity: 1; }
.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* ====================== */
/* === RESPONSIVE === */
/* ====================== */

@media (max-width: 600px) {
  #projects .project-list {
    grid-template-columns: 1fr;
  }
  nav a { margin-left: 1rem; }
  .social-boxes { gap: 10px; }
  .social-box { width: 70px; height: 70px; }
}

/* ====================== */
/* === INTRO SECTION === */
/* ====================== */

.banner {
  background: #4FD1C5; /* Teal banner */
  color: #1A202C; 
  text-align: center;
  padding: 3rem 1rem;
}

.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Social links */
.social-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1.5rem;
}

.social-box {
  background-color: #2D3748;
  color: #E2E8F0;
  width: 60px; 
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;  /* smaller text */
  transition: all 0.3s ease;
}

.social-box:hover {
  background-color: rgba(79, 209, 197, 0.15);
  box-shadow: 0 0 15px #4FD1C5;
  transform: scale(1.1);
}

/* ====================== */
/* === FULL-WIDTH CAROUSEL === */
/* ====================== */

.carousel-wrapper {
  position: relative;
  width: 100%;   /* take full screen width */
  overflow: hidden;
  perspective: 1000px;
  margin-top: 0; /* remove extra gaps */
}

#carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  padding: 2rem 0; /* breathing space */
}

.carousel-item {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #222;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.caption {
  padding: 12px 16px;
  font-size: 1rem;
  text-align: center;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fa8072;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 5;
}
.carousel-btn:hover { opacity: 1; }
.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* ====================== */
/* === DOT NAVIGATION === */
/* ====================== */

.carousel-dots {
  position: absolute;
  bottom: -2rem; /* overlay beneath intro section */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 10;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #CBD5E0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dots button.active {
  background: #4FD1C5;
}


/* Slide header up when hidden */
#main-header.hidden {
  transform: translateY(-100%);
}