/* ===== Mobile Styles ===== */

/* Reset for safety */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #1c1f22;   /* same dark background */
  color: #fff;                 /* white text */
  line-height: 1.6;
  font-size: 14px;
  padding: 0 10px;
}

/* Hero Section (full screen, zoom into center) */
/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;           /* full screen height */
  display: flex;
  align-items: flex-end;   /* text at bottom */
  justify-content: center; /* center horizontally */
  padding: 20px;
  color: #fff;
  overflow: hidden;

  background-image: url("../images_web/home_mobile2.png");
  background-size: cover;       /* fills screen */
  background-position: center;  /* focus on center */
  background-repeat: no-repeat;
  z-index: 0;

  /* Make background fixed */
  background-attachment: fixed; 
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* overlay for readability */
  z-index: 1;
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 90%;
  text-align: center;  /* center text */
  margin-bottom: 20px; /* distance from bottom */
  /*background: rgba(0,0,0,0.3);  optional semi-transparent background */
  padding: 10px 20px;
  border-radius: 8px;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 5vw, 3rem); /* scales with screen */
  line-height: 1.2;
}

.hero-text h3 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #ccc;
}


.hero {
    padding: 10px;
    justify-content: center; /* text still centered horizontally */
    background-position: top center; /* moves focus slightly up for small screens */
  }

.hero-text {
    margin-bottom: 15px;
    padding: 8px 15px;
  }



/* Button */
.btn {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 10px 20px;
  margin-top: 15px;
  text-decoration: none;
  border-radius: 4px;
}

/* Welcome Section: stacked vertically */
.Welcome {
  display: flex;
  flex-direction: column !important;
  gap: 20px;
  margin: 50px auto 0 auto;
  width: 100%;
}

.WelcomeLeft,
.WelcomeRight {
  flex: 0 0 100%;
  text-align: center;
}

.WelcomeLeft h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.WelcomeRight p {
  text-align: justify;
}

/* Projects Gallery: 2 columns */
.projects {
  padding: 40px 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.grid-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 5px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About Section */
.about {
  padding: 40px 10px;
  background: #111;   /* darker background */
}

.about h2 {
  text-align: center;
  margin-bottom: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Footer */
footer {
  background: #000;
  padding: 30px 15px;
  text-align: center;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-info,
.social {
  margin: 5px 0;
}

a {
  color: #fff;
  text-decoration: underline;
}
