/* ===== General Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}

/* ===== Navbar ===== */
header {
    background: #111;
    color: #fff;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #00bcd4;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../images/web-dev.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    background: #00bcd4;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0097a7;
}

/* ===== Services Section ===== */
.services {
    padding: 60px 30px;
    text-align: center;
    background: #fff;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    margin: 15px 0 10px;
}

.card p {
    padding: 0 15px 20px;
    font-size: 0.9rem;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ===== About Section ===== */
.about {
    padding: 60px 30px;
    text-align: center;
    background: #eaf6f6;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 60px 30px;
    text-align: center;
    background: #fff;
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.testimonial {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    width: 280px;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: scale(1.05);
}

/* ===== Contact Section ===== */
.contact {
    padding: 60px 30px;
    background: #eaf6f6;
    text-align: center;
}

.contact form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.contact button {
    background: #00bcd4;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact button:hover {
    background: #0097a7;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #fff;
    font-size: 0.9rem;
}

.nav-btn {
  background: #007BFF;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.nav-btn:hover {
  background: #0056b3;
}

/* Lightbox Styles */
#lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

#lightbox span {
  position: absolute;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

#lightbox span:hover {
  color: #007BFF;
}

#lightbox span:nth-child(2) { /* Close */
  top: 20px;
  right: 30px;
}

#lightbox span:nth-child(3) { /* Next */
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
}

#lightbox span:nth-child(4) { /* Prev */
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
