/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global styles */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: white;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

html {
  overflow-y: scroll;
}

/* Header */
.header {
  background: white;
  color: #333;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
.logo img {
  height: 55px;
  width: auto;
  display: block;
  margin-left: -220px;
  margin-top: 25px;
}

/* Navigation */
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 80px;
}

.nav a {
  position: relative;
  color: #333;
  text-decoration: none;
  font-weight: 550;
  font-size: 18px;
  padding-bottom: 5px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Search Icon (header) */
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-right: -200px;
}

.search-btn svg {
  width: 35px;
  height: 35px;
  fill: #333;
  transition: fill 0.2s ease;
}

.search-btn:hover svg {
  fill: #007BFF;
}

.search-btn:active {
  background: rgba(0, 123, 255, 0.2);
  transform: scale(0.9);
}

/* Search Section */
.search-section {
  position: relative;
  margin: 80px auto;
  max-width: 1000px;
  text-align: center;
}

/* Independent positioning for all parts */
.search-text,
.search-image,
.search-bar {
  position: relative;
  transform: translate(var(--x, 0), var(--y, 0));
  transition: transform 0.3s ease;
}

/* Text Styling */
.search-text h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
}

.search-text p {
  font-size: 19px;
  color: #555;
  font-family: 'Montserrat' sans-serif;
}

/* Image Styling */
.search-image {
  width: 700px;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* Search Bar */
.search-bar {
  position: relative;
  display: inline-block;
  max-width: 500px;
  width: 100%;
  margin-top: 20px;
}

.search-bar input {
  width: 120%;
  padding: 14px 20px 14px 50px; /* room for icon */
  font-size: 18px;
  border: 2px solid #ccc;
  border-radius: 30px;
  outline: none;
  transition: border 0.3s;
}

.search-bar input:focus {
  border-color: black;
}

.search-bar .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 20px;
  pointer-events: none;
}

/* Hero Section */
.hero {
  position: relative; /* allows text to sit on top of image */
  width: 100%;
  overflow: hidden;
  margin-bottom: 100px;
}

.hero-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  top: 85%;          /* vertical position */
  left: 2%;         /* horizontal position */
  text-align: left;
  color: #ffffff;      /* text color */
  font-family: 'Montserrat', sans-serif;
  font-size: 64px;   /* adjust size as you like */
  
 line-height: 1.3; /* adjust spacing between lines */
}



.hero-text h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 800;  
    color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}


/* Shared content row layout */
.content-row,
.second-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 40px;
  margin: 60px auto;
  max-width: 1200px;
}

/* Add extra spacing between sections */
.content-row {
  margin-bottom: 50px; /* space below first section */
  margin-top: 120px;
}

.second-row {
  margin-top: 140px; /* OR space above second section */
}
/* Independent movement with CSS variables */
.left-photo,
.right-photo,
.below-text,
.second-text {
  position: relative;
  transform: translate(var(--x, 0), var(--y, 0));
  transition: transform 0.3s ease;
}

/* Image styles */
.left-photo,
.right-photo {
  max-width: 700px;
  height: auto;
  border-radius: 2px;
}

/* Text styles */
.below-text,
.second-text {
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
}

/* Add spacing below headings */
.below-text h1,
.second-text h1 {
  margin-bottom: 15px;
}

/* Main content */
.main {
  padding: 40px 0;
}

.second-row {
  margin-bottom: 210px; /* space before footer */
}

/* Footer */
.footer {
  background: #222;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.footer-top {
  background: #6f51e5;
  text-align: center;
  padding: 15px;
}

.footer-top p {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-top .social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 18px;
  transition: color 0.3s;
}

.footer-top .social-icons a:hover {
  color: #ddd;
}

.footer-main {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  padding: 40px 20px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1 1 250px;
  max-width: 300px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid #6f51e5;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  background: #111;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* -----------------------------
  Mobile menu: hamburger & overlay
------------------------------ */

/* Hide hamburger by default, show nav normally */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  /* Show hamburger */
  .menu-btn {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001; /* above overlay */
  }

  /* Hide nav by default */
  .nav {
    position: fixed;
    top: 0;
    right: -100%; /* hidden offscreen */
    width: 250px;
    height: 100%;
    background: #fff;
    flex-direction: column;
    gap: 20px;
    padding: 80px 20px; /* space from top for logo */
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  /* Slide-in active state */
  .nav.open {
    right: 0;
  }

  /* Nav links styling for mobile */
  .nav a {
    font-size: 20px;
    font-weight: 600;
  }
  
  /* Optional: overlay behind menu */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  /* Remove absolute positioning on desktop-only nav */
  .nav {
    position: fixed;
  }

  /* Adjust logo if needed */
  .logo img {
    margin-left: 0;
    margin-top: 0;
    height: 50px;
  }
}