/* --- Root Variables --- */
:root {
  /* Fonts */
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'League Spartan', sans-serif;

  /* Colors */
  --color-bg: #f9fcff;
  --color-text: #333;
  --color-accent: #342d47;
  --color-light-bg: #f9fcff;
  --color-heading: #1f1f1f;
  --color-subheading: #444;
  --color-highlight: #4a9edc;
  --color-footer-bg: #eee;
}

/* --- Global Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base Styles --- */
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* --- Container --- */
.container {
  /* max-width: 1800px; */
  margin: 0 auto;
  /* padding: 2em; */
}
/* Fullscreen for hero section */
#hero {
  /* min-height: 100vh; Takes up full viewport height */
  display: flex;
  flex-direction: column;
}
@media (min-width: 950px) {
    #hero {
        min-height: 100vh; /* Takes up full viewport height */
        display: flex;
        flex-direction: column;
    }
}

/* --- Header Layout --- */
header {
  background-color: transparent;
  flex-shrink: 0;
}

.header-bar {
  background-color: var(--color-accent);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;   /* vertically center image and text */
  gap: 0.5rem;           /* spacing between image and name */
}

.logo-img {
  height: 28px;          /* fixed height for the image */
  width: auto;           /* preserve image's aspect ratio */
}

.logo h3 {
  font-size: 28px;       /* matches the image height */
  line-height: 1;        /* prevents extra spacing */
  margin: 0;
}

/* --- Navigation --- */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  /* opacity: 0.7; */
  color: skyblue;
}

/* --- Main Intro Section --- */
/* #intro {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-light-bg);
  flex-wrap: wrap;
} */

/* v2 using background image */
#intro {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: var(--color-light-bg);

  background-image: url('../img/IntroBackground1.png');
  background-repeat: no-repeat;
  background-position: left center; /* left side */
  background-size: cover; /* or contain/cover as you wish */
}

#intro-text {
  width: 60%;
  padding: 3rem 1.5rem;
  margin-left: 3%;

  /* translucent white background */
  background-color: rgba(255, 255, 255, 0.8); /* 80% opacity white */
  border-radius: 1rem; /* rounded corners */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  */
}

#intro-text h1 {
  font-family: var(--font-heading);
  font-size: 56pt;
  font-weight: 800;
  color: var(--color-heading);
  margin: -0.25em 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

#intro-text h2 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-subheading);
}

#intro-text h2 b {
  color: var(--color-highlight);
}

#intro-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-top: 1rem;
}

#intro-text p:first-of-type b {
  font-weight: 700;
}

@media (max-width: 950px) {
  #intro-text h1 {
    font-size: 36pt;
  }

  #intro-text h2 {
    font-size: 1.5rem;
  }

  #intro-text p {
    font-size: 1rem;
  }
}


#intro-portrait {
  width: 35%;
  align-self: flex-end; /* Aligns the image to bottom of the container */
  margin-top: 2rem;
  padding-right: 2em;
}

#intro-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Projects Section --- */
#featured-projects {
  padding: 50px;

  background-image: url('../img/ProjectBackground1.png');
  background-repeat: no-repeat;
  background-position: top center; /* left side */
  background-size: cover; /* or contain/cover as you wish */
}

#featured-projects h1 {
    font-family: var(--font-heading), sans-serif;
    font-size: 48px;
    text-align: center;
}

#featured-projects h1 b {
    color: var(--color-highlight);
    font-weight: 800;
}

/* Carousel Editing */

/* Carousel wrapper with relative positioning */
.carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  overflow: hidden;
}

/* Carousel viewport */
.carousel {
  overflow-x: auto;
  scroll-behavior: smooth;
}

/* Hide scrollbar */
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

/* Carousel arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 2rem;
  padding: 0.3em 0.6em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;
  display: none; /* default hidden */
  transition: opacity 0.2s;
}

.carousel-btn:hover {
  opacity: 0.7;
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}


/* Layout for multiple project cards */
/* .project-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
} */

/* v2 without js */
.project-grid {
  display: grid;
  gap: 2rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 1rem 0;
}

/* v3 with js */
/* Grid inside scrollable area */
/* .project-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  padding: 1rem;
} */


/* Adjust card size for horizontal layout */
.project-card {
  flex: 0 0 300px;
  /* max-width: 300px; */
}

/* Project card styling */
.project-card {
  background-color: white;
  border-left: 4px solid var(--color-highlight);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease;
  max-width: 500px;
  margin: 0 auto;
}


.project-card:hover {
  transform: translateY(-4px);
}

/* Image at top of card */
.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Card content */
.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
}

.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.project-content h4 {
  font-size: 1rem;
  color: gray;
  margin-bottom: 1rem;
}

.project-content p {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* Buttons */
.project-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-buttons button {
  background-color: var(--color-highlight);
  color: white;
  border: none;
  padding: 0.5em 1em;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.project-buttons button:hover {
  background-color: var(--color-accent);
}

/* --------------- CONTACT PAGE -------------------- */
#contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.contact-columns {
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
}

/* Left Column */
.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h2 {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-info a {
  color: var(--color-highlight);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Right Column */
.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-subheading);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--font-main);
  width: 100%;
}

.contact-form button {
  background-color: var(--color-highlight);
  color: white;
  border: none;
  padding: 0.75em 1.5em;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: var(--font-main);
}

.contact-form button:hover {
  background-color: var(--color-accent);
}

.contact-icons p {
  font-size: 1rem;
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
}

.contact-icons i {
  font-size: 1.2rem;
  color: var(--color-highlight);
  min-width: 1.2rem;
}

.contact-icons a {
  color: var(--color-highlight);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-icons a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}


/* --- Footer --- */
/* footer {
  text-align: center;
  padding: 20px 0;
  background-color: var(--color-footer-bg);
  font-size: 14px;
} */
.footer-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  background-color: #eee;
  font-size: 14px;
}

.footer-inline i {
  font-size: 1.4rem;
  color: var(--color-highlight);
  transition: color 0.2s ease, transform 0.2s;
}

.footer-inline a:hover i {
  color: var(--color-accent);
  transform: scale(1.2);
}

.footer-inline p {
  margin: 0;
}
