/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

/* Enable smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  background: #f5f5f5;
  color: #333;
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
}

/* ===================
   NAV / HAMBURGER MENU
   =================== */

/* Nav container */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #520A1A;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

nav .logo span {
  display: inline-block;
}

/* Hamburger icon (hidden on desktop, shown on mobile) */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
}

/* Hamburger and Close Icons */
.hamburger-icon,
.close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  transition: opacity 0.3s ease;
}

.close-icon {
  opacity: 0;
}

.hamburger.active .hamburger-icon {
  opacity: 0;
}

.hamburger.active .close-icon {
  opacity: 1;
}

/* The nav-links (UL) in desktop view */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #eee;
  font-weight: 300;
}

.nav-links a:hover {
  color: #ffc107;
}



/* ===================
   HERO SECTION
   =================== */
.hero-section {
  text-align: center;
  padding: 5rem 2rem 6rem;
  /*background: linear-gradient(135deg, #520A1A, #2A0A12);*/
  background-image: url('img/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #F5EDEE;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-button {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
}

.cta-button.primary {
  background-color: #ffc107;
  color: #520A1A; /* was #283149, now matches your maroon theme */
}

.cta-button.primary:hover {
  background-color: #e0a800;
}

.cta-button.secondary {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.cta-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* For full-width buttons in forms */
.cta-button.full-width {
  width: 100%;
  text-align: center;
}

/* ===================
   SHARED SECTION STYLES
   =================== */
section {
  padding: 3.5rem 2rem;
}

.section-intro {
  max-width: 650px;
  margin: 0.5rem auto 2rem;
  text-align: center;
  color: #555;
  font-size: 0.95rem;
}

h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.9rem;
  color: #520A1A; /* tie section headings into hero/nav color */
}

/* ===================
   ABOUT SECTION
   =================== */
.about-section {
  background-color: #ffffff;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p + p {
  margin-top: 0.75rem;
}

.about-highlights ul {
  list-style: none;
}

.about-highlights li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

/* Stack on small screens */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
}

/* ===================
   SERVICES (FEATURES) SECTION
   =================== */
.features-section {
  background-color: #fdfdfd;
}

.features-section > h2 {
  margin-bottom: 0;
}

.features-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 1rem;
}

.features-section .feature {
  flex: 1 1 260px;
  max-width: 340px;
  background: #ffffff;
  padding: 1.75rem 1.5rem;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #520A1A; /* subtle accent on icons */
}

.features-section .feature h3 {
  margin-bottom: 0.5rem;
}

.features-section .feature p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.feature-list {
  list-style: disc;
  margin-left: 1.2rem;
  font-size: 0.9rem;
  color: #555;
}

.feature-list li + li {
  margin-top: 0.25rem;
}

/* ===================
   PROCESS SECTION
   =================== */
.process-section {
  background-color: #f1f1f7;
}

.process-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.process-step {
  background-color: #ffffff;
  padding: 1.5rem 1.25rem;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: #555;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #ffc107;
  color: #520A1A; /* was #283149, now matches your brand color */
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ===================
   PORTFOLIO PAGE
   =================== */

.portfolio-hero {
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, #520A1A, #2A0A12);
  color: #F5EDEE;
  text-align: center;
}

.portfolio-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.portfolio-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.portfolio-hero p {
  font-size: 0.98rem;
  max-width: 620px;
  margin: 0 auto;
}

.portfolio-page-section {
  padding: 3rem 2rem 4rem;
  background-color: #ffffff;
}

.portfolio-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background-color: #FFF5F7;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(82, 10, 26, 0.08);
  border: 1px solid rgba(82, 10, 26, 0.12);
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portfolio-thumb {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center;
}

.portfolio-thumb img {
  max-width: 220px;
  width: 100%;
  border-radius: 16px;
  display: block;
}

.portfolio-meta h2 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: #520A1A;
}

.portfolio-tags {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.6rem;
}

/* Smaller CTA button inside cards */
.cta-button.small-cta {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

/* Stack process steps on smaller screens */
@media (max-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
	
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* ===================
   INLINE PORTFOLIO LINK ON HOME
   =================== */

.portfolio-link-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.cta-inline {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: #520A1A;
  border-bottom: 1px solid rgba(82, 10, 26, 0.25);
  padding-bottom: 0.1rem;
}

.cta-inline:hover {
  color: #e0a800; /* gold-ish hover to match buttons */
  border-color: #e0a800;
}

/* ===================
   PORTFOLIO / WORK SECTION
   =================== */
.screenshots-section {
  text-align: center;
  padding: 3.5rem 2rem;
  background-color: #ffffff;
}

.screenshots-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.project-card {
  flex: 1 1 260px;
  max-width: 320px;
  background-color: #FFF5F7; /* light, soft tint to match maroon theme */
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  text-align: left;
  box-shadow: 0 4px 10px rgba(82, 10, 26, 0.08); /* soft maroon-ish shadow */
  border: 1px solid rgba(82, 10, 26, 0.12);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: #520A1A; /* title ties into hero/nav color */
}

.project-card p {
  font-size: 0.9rem;
  color: #555;
}

/* ===================
   CONTACT SECTION
   =================== */
.contact-section {
  background-color: #f5f5f5;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-text p + p {
  margin-top: 0.75rem;
}

.contact-note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

.contact-form-wrapper {
  background-color: #ffffff;
  padding: 1.75rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(82, 10, 26, 0.12); /* light border accent */
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
}

/* Stack on small screens */
@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* ===================
   FOOTER SECTION
   =================== */
.footer-section {
  background-color: #520A1A;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.footer-section .subscription {
  margin-bottom: 2rem;
}

.footer-section form {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.footer-section input[type="email"] {
  padding: 0.5rem;
  border: none;
  border-radius: 4px 0 0 4px;
  width: 200px;
}

.footer-section button[type="submit"] {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #ffc107;
  color: #333;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
}

.footer-section button[type="submit"]:hover {
  background-color: #e0a800;
}

.credits p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ===================
   HAMBURGER TO X ICON (fallback)
   =================== */
.hamburger .close-icon {
  display: none;
}

.hamburger.active .hamburger-icon {
  display: none;
}

.hamburger.active .close-icon {
  display: inline;
}

/* ===================
   PORTFOLIO BUTTON — GOLD (Option A)
   =================== */

.cta-button.small-cta {
  background-color: #ffc107;
  color: #520A1A;
  border: 2px solid #ffc107;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  text-align: center;
  display: inline-block;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cta-button.small-cta:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #2A0A12;
}

/* ======= MEDIA QUERY (Mobile) ======= */
@media (max-width: 768px) {

  nav .logo {
    font-size: 1.2rem;   /* Smaller brand text on mobile */
  }

  .logo-img {
    height: 56px;        /* Logo height on mobile */
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    background-color: #520A1A;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }

  .nav-links li {
    margin: 1rem 0;
    text-align: center;
    margin-left: 0;
  }

  .hamburger {
    display: block;
  }

  .nav-links a:hover {
    color: #ffc107;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
  }

  .nav-links a:focus {
    outline: 2px solid #ffc107;
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .hero-section {
    background-image: url('img/banner-mobile.png');
    background-size: cover;
    background-position: top center;
  }
}