/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #0e0e0e;
  color: #f4f4f4;
  line-height: 1.6;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  background-color: #111;
  padding: 2rem 0;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 135px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.25rem;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f4f4f4;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(to bottom right, #111, #1a1a1a);
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 4rem 1rem 2rem;
}

.hero-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtext {
  font-size: 1.6rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-heading,
.hero-subtext {
  max-width: 700px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Services Section */
.services-content {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.section-heading {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  font-weight: 700;
}

.service-group {
  margin-top: 2.5rem;
}

.service-subheading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #f4f4f4;
}

.services-list {
  font-size: 1.5rem;
  max-width: 800px;
  padding: 0 1rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.light-theme .service-subheading {
  color: #111;
}

/* Portfolio Section */
.portfolio-content {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.portfolio-subtext {
  font-size: 1.4rem;
  margin-top: 160px;
  margin-bottom: 2rem;
  color: #ccc;
  max-width: 800px;
  padding: 0 1rem;
}

.portfolio-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  padding: 0 1rem;
}

.portfolio-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.portfolio-item img:hover {
  transform: scale(1.015);
}

.portfolio-caption {
  font-size: 1.1rem;
  color: #aaa;
  margin-top: 0.75rem;
}

/* Testimonials Section */
.testimonials-content {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.testimonials-placeholder {
  font-size: 1.5rem;
  color: #ccc;
  max-width: 700px;
  margin-top: 160px;
}

/* Contact Section */
.contact-content {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin-top: 160px;
  padding: 0 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  width: 100%;
}

.contact-form button {
  background-color: #f4f4f4;
  color: #111;
  padding: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Shared Section Styling */
section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  max-width: 90%;
}

p {
  font-size: 1.5rem;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

ul li {
  font-size: 1.4rem;
  margin: 0.75rem 0;
}

.section {
  background-color: #0e0e0e;
}

.section.alt {
  background-color: #1a1a1a;
}

/* Footer */
.footer {
  height: 110px;
  background-color: #111;
  border-top: 1px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  margin: 0;
  width: 100%;
}

.footer p {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* Light Theme */
.light-theme {
  background-color: #f4f4f4;
  color: #111;
}

.light-theme .navbar,
.light-theme .footer {
  background-color: #fff;
  color: #111;
  border-color: #ccc;
}

.light-theme .section,
.light-theme .section.alt {
  background-color: #eee;
}

.light-theme .nav a,
.light-theme #theme-toggle {
  color: #111;
}

.light-theme .contact-form button {
  background-color: #111;
  color: #fff;
}

.light-theme .hero {
  background: linear-gradient(to bottom right, #f4f4f4, #e0e0e0);
  color: #111;
}

.light-theme .hero-heading,
.light-theme .hero-subtext {
  color: #111;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .navbar-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    flex-direction: column;
    font-size: 1rem;
  }

  .logo-img {
    height: 90px;
  }

  h2 {
    font-size: 2.2rem;
  }

  p,
  ul li {
    font-size: 1.1rem;
  }

  .hero-heading {
    font-size: 2rem;
    margin-top: 4rem;
  }

  .hero-subtext {
    font-size: 1.2rem;
    padding: 0 1rem;
    margin-top: 1rem;
  }

  .portfolio-item img,
  .testimonials-content img {
    max-width: 100%;
    height: auto;
  }

  .portfolio-subtext,
  .services-list,
  .testimonials-placeholder {
    font-size: 1.2rem;
  }

  .contact-form {
    margin-top: 120px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 1rem;
  }

  section {
    padding: 4rem 1.5rem;
  }
}

/* Tabs for Services Page */
.tabs {
  display: flex;
  gap: 1.5rem;
  margin-top: 140px;
  margin-bottom: 2rem;
  justify-content: center;
}

.tab-button {
  background: none;
  color: #f4f4f4;
  border: 2px solid #444;
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button:hover {
  background-color: #222;
}

.tab-button.active {
  background-color: #444;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.light-theme .tab-button {
  color: #111;
  border-color: #ccc;
}

.light-theme .tab-button.active {
  background-color: #ddd;
}
@media (max-width: 768px) {
  .portfolio-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }

  .portfolio-item {
    width: 100%;
    max-width: 90%;
  }

  .portfolio-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
  .portfolio-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .portfolio-item {
    width: 100%;
  }

  .portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
  }
}
.portfolio-button {
  background-color: #f4f4f4;
  color: #111;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.2s ease;
}

.portfolio-button:hover {
  background-color: #ddd;
}
