/* ===============================
   Portfolio2 Shared Stylesheet
   Masculine Theme: Navy, Grey, Orange
   SEO • Mobile-first • Responsive
   =============================== */


/* ===============================
   RESET & BASE
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  background-color: #f5f6fa;
  color: #333;
  overflow-x: hidden;
}


/* ===============================
   LOGO (UNCHANGED)
   =============================== */
header .logo {
  font-size: 22px;
  font-weight: bold;
  color: #0ABAB5;
}

header .logo span {
  color: #8A2BE2;
}


/* ===============================
   NAVIGATION (UNCHANGED)
   =============================== */
nav {
  background-color: #0a2342;
  color: #ffffff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #f7931e;
}


/* ===============================
   HEADER / HERO (UNCHANGED)
   =============================== */
header {
  background: linear-gradient(to right, #0a2342, #1d3a66);
  color: #ffffff;
  padding: 6rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.2rem;
  color: #cccccc;
}


/* ===============================
   SECTION BASE
   =============================== */
section {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0a2342;
}

section p {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
  color: #555555;
  font-size: 1rem;
}


/* ===============================
   FEATURES / CARDS
   =============================== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background-color: #ffffff;
  padding: 2.2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin-bottom: 1rem;
  color: #f7931e;
  font-size: 1.3rem;
}

.card p {
  text-align: left;
}


/* ===============================
   PROJECTS
   =============================== */
.projects-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  margin-bottom: 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

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

.project-info {
  padding: 1.8rem;
}

.project-info h3 {
  color: #f7931e;
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
}

.project-info p {
  color: #444444;
  font-size: 1rem;
  text-align: left;
}


/* ===============================
   GALLERY
   =============================== */
.gallery {
  background-color: #eaeaea;
  padding: 4rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.gallery-item img:hover {
  transform: scale(1.08);
}


/* ===============================
   BUTTONS (TOUCH FRIENDLY)
   =============================== */
.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  background-color: #0a2342;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-height: 48px;
}

.btn:hover {
  background-color: #f7931e;
  transform: translateY(-2px);
}


/* ===============================
   CTA SECTION
   =============================== */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #0a2342;
  color: #ffffff;
}

.cta-section h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.cta-btn {
  display: inline-block;
  margin-top: 1.2rem;
  background-color: #f7931e;
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  min-height: 48px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background-color: #e96e0c;
  transform: translateY(-2px);
}


/* ===============================
   FOOTER
   =============================== */
footer {
  background-color: #1d1d1d;
  color: #bbbbbb;
  padding: 2.5rem 2rem;
  text-align: center;
}

footer a {
  color: #f7931e;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}


/* ===============================
   RESPONSIVE — TABLET
   =============================== */
@media (min-width: 768px) {

  section h2 {
    font-size: 2.3rem;
  }

  section p {
    font-size: 1.05rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    flex-direction: row;
  }

  .project-card img {
    width: 50%;
  }

  .project-info {
    width: 50%;
  }
}


/* ===============================
   RESPONSIVE — DESKTOP
   =============================== */
@media (min-width: 1200px) {

  section {
    padding: 5rem 2rem;
  }

  section h2 {
    font-size: 2.6rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ===============================
   RESPONSIVE — SMALL PHONES
   =============================== */
@media (max-width: 480px) {

  nav ul {
    gap: 1rem;
  }

  .btn,
  .cta-btn {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 3rem 1.5rem;
  }
}
