/* =========================
   ROOT VARIABLES
========================= */
:root {
  --primary: #0D8F57;
  --dark: #1F2933;
  --accent: #C9A227;
  --bg: #FAFAFA;
  --white: #ffffff;
  --section-bg: #F4F9F7;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

/* =========================
   CONTAINERS
========================= */
.container {
  max-width: 1150px;
  margin: auto;
  padding: 1.5rem;
}

.container.narrow {
  max-width: 820px;
}

/* =========================
   HEADER & NAV
========================= */
.header {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   HERO (FULL-WIDTH IMAGE)
========================= */
.hero-full {
  background-image: url("../img/profile.jpg");
  background-size: cover;
  background-position: 50% 20%;
  background-repeat: no-repeat;
  min-height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  color: var(--white);
  max-width: 720px;
  padding: 3rem 0;
}

.hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

/* =========================
   CTA BUTTONS
========================= */
.cta {
  margin-top: 1.5rem;
}

.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.5rem;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
}

.btn.secondary {
  border: 1px solid var(--white);
  color: var(--white);
}

/* =========================
   SERVICES / CARDS
========================= */
.services {
  padding: 3rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* =========================
   PAGE INTRO
========================= */
.page-intro {
  background: var(--white);
  padding: 3rem 0 2rem;
}

.page-intro h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.intro-text {
  max-width: 700px;
  font-size: 1.05rem;
  color: #4b5563;
}

/* =========================
   PORTFOLIO
========================= */
.portfolio {
  padding: 3rem 0;
}

.portfolio-item {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.portfolio-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.portfolio-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.portfolio-item p {
  margin-bottom: 0.75rem;
}

/* =========================
   CONTACT
========================= */
.contact-section {
  padding: 3rem 0;
}

.contact-details p {
  margin-bottom: 0.75rem;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* =========================
   SCROLL ANIMATIONS
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE: TABLET
========================= */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }
}

/* =========================
   RESPONSIVE: MOBILE
========================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 64px;
    right: 0;
    width: 220px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    margin: 0.5rem 0;
  }

  .hero-full {
    min-height: 75vh;
  }

  .hero-content {
    padding: 2.5rem 0;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }
}

/* =========================
   RESPONSIVE: SMALL MOBILE
========================= */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .btn {
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}

/* =========================
   WORK PAGE BANNER
========================= */

.work-banner {
  padding: 2rem 0;
}

.work-banner img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
