/* ================= RESET ================= */
html {
scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  }

body {
background: #f5f7fb;
color: #1f2937;
line-height: 1.6;
overflow-x: hidden; /* prevents side scroll */
}

/* Make images responsive */
img {
max-width: 100%;
height: auto;
}

/* ================= NAVBAR ================= */
nav {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
padding: 15px 20px;
background: rgba(17, 24, 39, 0.95);
backdrop-filter: blur(10px);
position: sticky;
top: 0;
z-index: 1000;
}

.logo img {
height: 45px;
}

/* Nav links */
nav ul {
list-style: none;
display: flex;
gap: 20px;
}

nav a {
color: white;
text-decoration: none;
font-weight: 500;
transition: 0.3s;
}

nav a:hover {
color: #D4AF37;
}

/* Hamburger */
.menu-toggle {
display: none;
font-size: 26px;
color: white;
cursor: pointer;
}

/* ================= HERO ================= */
#hero {
text-align: center;
padding: 70px 20px;
background: linear-gradient(to right, #111827, #1f2937);
color: white;
}

#hero h1 {
font-size: 2.5rem;
font-weight: 600;
}

#hero p {
margin-top: 15px;
font-size: 1rem;
color: #d1d5db;
}

.cta-btn {
margin-top: 20px;
padding: 12px 25px;
background: #D4AF37;
color: black;
border: none;
border-radius: 30px;
font-weight: 600;
cursor: pointer;
transition: 0.3s;
}

.cta-btn:hover {
transform: scale(1.05);
}

/* ================= PROJECTS ================= */
#projects {
padding: 50px 15px;
text-align: center;
}

#projects h2 {
margin-bottom: 25px;
}

.project-container {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}

.project-card {
width: 280px;
background: white;
border-radius: 15px;
overflow: hidden;
text-align: center;
transition: 0.3s;
box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.project-card img {
width: 100%;
height: 180px;
object-fit: cover;
}

.project-card h3 {
margin-top: 10px;
}

.project-card p {
padding: 0 10px;
color: #555;
}

.project-card:hover {
transform: translateY(-10px);
}

.project-card a {
display: inline-block;
margin: 15px;
padding: 10px 18px;
background: #111827;
color: white;
text-decoration: none;
border-radius: 6px;
transition: 0.3s;
}

.project-card a:hover {
background: #D4AF37;
color: black;
}

/* ================= SERVICES ================= */
#services {
padding: 50px 15px;
text-align: center;
background: #f9fafb;
}

#services ul {
list-style: none;
margin-top: 20px;
}

#services li {
margin: 10px 0;
font-weight: 500;
}

/* ================= CONTACT ================= */
#contact {
text-align: center;
padding: 60px 15px;
background: #111827;
color: white;
}

#contactForm {
max-width: 500px;
margin: 25px auto;
display: flex;
flex-direction: column;
gap: 15px;
}

#contactForm input,
#contactForm textarea {
padding: 14px;
border-radius: 10px;
border: none;
outline: none;
}

#contactForm button {
background: #D4AF37;
color: black;
padding: 12px;
border-radius: 10px;
cursor: pointer;
font-weight: 600;
transition: 0.3s;
}

#contactForm button:hover {
transform: scale(1.05);
}

/* ================= FOOTER ================= */
footer {
background: #111827;
color: white;
padding: 40px 20px 20px;
}

.footer-logo {
height: 40px;
}

.footer-content {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
}

.footer-links a {
display: block;
color: #9ca3af;
text-decoration: none;
margin-bottom: 5px;
}

.footer-links a:hover {
color: #D4AF37;
}

.footer-bottom {
text-align: center;
margin-top: 20px;
color: #6b7280;
}

/* ================= WHATSAPP ================= */
.whatsapp-btn {
position: fixed;
bottom: 15px;
right: 15px;
background: #25D366;
color: white;
font-size: 24px;
width: 50px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

/* ---- SCROLL SNAP SETUP ---- */
html, body {
  height: 100%;
  overflow: hidden; /* lock outer scroll */
}

body {
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Sticky nav stays outside snap flow */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
}

/* Every section snaps and fills exactly one screen */
#hero,
#projects,
#services,
#contact,
footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100dvh;           /* full viewport height */
  padding-top: 60px;        /* offset for fixed nav */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

/* ---- HAMBURGER ---- */
.menu-toggle {
  display: block;
}

nav ul {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: #111827;
  flex-direction: column;
  align-items: center;
  display: none;
  padding: 15px 0;
  z-index: 999;
}

nav ul.active {
  display: flex;
}

/* ---- HERO ---- */
#hero {
  padding: 60px 20px 20px;
}

#hero h1 {
  font-size: 1.45rem;
  line-height: 1.3;
  max-width: 320px;
}

#hero p {
  font-size: 0.82rem;
  margin-top: 10px;
  max-width: 300px;
  color: #d1d5db;
}

.cta-btn {
  margin-top: 18px;
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* ---- PROJECTS ---- */
#projects {
  padding: 60px 10px 10px;
  justify-content: flex-start;
}

#projects h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  margin-top: 5px;
}

/* Horizontal swipe carousel - one card visible */
.project-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 0 10px 10px;
  scroll-padding-left: 10px;
}

.project-container::-webkit-scrollbar {
  display: none;
}

.project-card {
  min-width: 80vw;
  flex-shrink: 0;
  scroll-snap-align: start; /* 👈 important */
}

.project-card img {
  height: 110px;
}

.project-card h3 {
  font-size: 0.88rem;
  margin-top: 7px;
}

.project-card p {
  font-size: 0.75rem;
  padding: 0 8px;
}

.project-card a {
  margin: 10px;
  padding: 7px 14px;
  font-size: 0.8rem;
}

/* swipe hint text */
#projects::after {
  content: "← swipe cards →";
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 6px;
  display: block;
}

/* ---- SERVICES ---- */
#services {
  padding: 60px 25px 20px;
}

#services h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

#services ul {
  list-style: none;
  margin-bottom: 12px;
}

#services li {
  font-size: 0.88rem;
  margin: 7px 0;
}

#services p {
  font-size: 0.8rem;
  max-width: 300px;
}

/* ---- CONTACT ---- */
#contact {
  padding: 60px 15px 15px;
}

#contact h2 {
  font-size: 1.1rem;
}

#contact > p {
  font-size: 0.82rem;
  margin-bottom: 5px;
}

#contactForm {
  width: 100%;
  max-width: 340px;
  gap: 8px;
  margin: 10px auto;
}

#contactForm input,
#contactForm textarea {
  padding: 9px 12px;
  font-size: 0.82rem;
}

#contactForm textarea {
  height: 65px;
  resize: none;
}

#contactForm button {
  padding: 10px;
  font-size: 0.88rem;
}

#contact > p:last-child {
  font-size: 0.75rem;
  margin-top: 6px;
  color: #9ca3af;
}

/* ---- FOOTER ---- */
footer {
  padding: 60px 20px 20px;
  height: auto;
  min-height: 100dvh;
}

.footer-content {
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-brand span {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  display: inline;
  font-size: 0.82rem;
}

.footer-social {
  font-size: 1.1rem;
  display: flex;
  gap: 15px;
}

.footer-bottom {
  font-size: 0.72rem;
  margin-top: 15px;
}

}

/* ---- DESKTOP: always show nav links ---- */
@media (min-width: 769px) {
nav ul {
  display: flex !important;
}
}