/* -------------------------------------------------
   BASIC RESET & TYPOGRAPHY
   ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family, 'Inter', sans-serif);
  line-height: 1.6;
  color: #222;
  background: var(--bg-color, #fff);
}

/* -------------------------------------------------
   CSS VARIABLES (easy colour / font changes)
   ------------------------------------------------- */
:root {
  --primary: #0066ff;        /* main brand colour */
  --secondary: #f2f2f2;      /* section backgrounds */
  --accent: #ff6600;        /* call‑to‑action, highlights */
  --bg-color: #fff;
  --text-color: #222;
  --font-family: 'Inter', sans-serif;
}

/* -------------------------------------------------
   LAYOUT CONTAINERS
   ------------------------------------------------- */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
  padding: 2rem 0;
}
.section { padding: 4rem 0; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

/* -------------------------------------------------
   HEADER & NAVIGATION
   ------------------------------------------------- */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 60px;
  width: 225px;
}
.nav-list {
  display: flex;
  gap: 1.5rem;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .5rem;
}
.nav-link:hover,
.nav-link.active { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* -------------------------------------------------
   HERO SECTION
   ------------------------------------------------- */
.hero {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8rem 0 6rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.highlight { color: var(--accent); }
.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: .4rem;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s;
}
.btn-primary:hover { background: darken(var(--accent), 10%); }

/* -------------------------------------------------
   ABOUT SECTION
   ------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}
.about-photo {
  width: 100%;
  max-width: 300px;
  border-radius: .5rem;
}

/* -------------------------------------------------
   PORTFOLIO GRID
   ------------------------------------------------- */
.portfolio-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.project-card {
  background: var(--secondary);
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .3s, box-shadow .3s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,.15);
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project-card h3 {
  margin: .75rem 1rem 0;
  font-size: 1.2rem;
}
.project-card p {
  margin: .5rem 1rem 1rem;
  color: #555;
}

/* -------------------------------------------------
   CONTACT FORM
   ------------------------------------------------- */
form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
}
input,
textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid #ccc;
  border-radius: .3rem;
  font-family: inherit;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* -------------------------------------------------
   FOOTER
   ------------------------------------------------- */
.site-footer {
  background: #111;
  color: #bbb;
  padding: 2rem 0;
  font-size: .9rem;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.footer-nav a {
  color: #bbb;
  margin: 0 .5rem;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }

/* -------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------------------------------- */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-out;
  }
  .nav-list.open { max-height: 500px; }
  .nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
}

/* -------------------------------------------------
   DARK MODE (optional – just add class "dark" to <body>)
   ------------------------------------------------- */
body.dark {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --primary: #0a84ff;
  --secondary: #1e1e1e;
}
body.dark .site-header,
body.dark .hero { background: var(--primary); }
body.dark .project-card { background: var(--secondary); }
body.dark .site-footer { background: #000; }
