/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #1c1f22;
  color: #fff;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;               /* full viewport height */
  display: flex;               /* must be "flex" */
  align-items: flex-end;       /* stick content to bottom */
  justify-content: flex-start;   /* align content right */
  padding: 50px;
  color: #fff;
  overflow: hidden;

  background-image: url("../images_web/home.png");
  background-size: cover;       
  background-position: center;  
  background-repeat: no-repeat;

  /* Make background fixed */
  background-attachment: fixed; 
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 400px;
  z-index: 2;
}

/* Optional dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.2); 
  z-index: 1;
}

.hero-text h1,
.hero-text h3,
.hero-text p {
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 10px 20px;
  text-decoration: none;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

/*Welcome*/
/* ---------- Forced Welcome layout (drop-in) ---------- */
.Welcome {
  display: flex !important;
  width: 90% !important;
  max-width: 1200px !important;
  margin: 100px auto 0 auto !important;
  gap: 40px !important;
  align-items: flex-start !important;  /* top align columns */
  box-sizing: border-box !important;
}

/* Left column: fixed/big */
.WelcomeLeft {
  flex: 0 0 50% !important;    /* force 60% of container */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* vertical centering inside left */
  align-items: center !important;     /* horizontal centering of title */
  text-align: center !important;      /* title centered */
}
.WelcomeLeft h1 {
  font-size: 48px;
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 12px;
}


/* Right column: fixed/smaller */
.WelcomeRight {
  flex: 0 0 50% !important;    /* force 40% of container */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;    /* paragraphs fill column width */
  text-align: justify !important;     /* text is justified */
  gap: 16px !important;
}

.WelcomeRight p {
  margin: 0 !important;
  width: 100% !important;
  text-align: justify !important;
}

.WelcomeRight .btn {
  align-self: center !important; /* centers the button within right column */
  margin-top: 6px !important;
}

/* Projects */
.projects {
  padding: 60px 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 10px;                             /* space between images */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-item {
  width: 100%;
  aspect-ratio: 1 / 1;   /* forces square cells */
  overflow: hidden;       /* hides excess part of image */
  border-radius: 5px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills square without distortion */
  display: block;
}



/* About */
.about {
  padding: 60px 20px;
  background: #111;
}

.about h2 {
  text-align: center;
  margin-bottom: 30px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Contact */
footer {
  background: #000;
  padding: 40px 20px;
  text-align: center;
}

.contact-box {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-info,
.social {
  margin: 10px;
}

a {
  color: #fff;
  text-decoration: underline;
}