/* Basic resets */
* {
  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.6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Header & navigation */
.site-header {
  background-color: #0d1b2a; /* dark blue/black */
  color: #e0e1dd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s, color 0.3s;
}

.nav a:hover,
.nav a:focus {
  background-color: #1b263b;
  color: #fff;
  border-radius: 4px;
}

/* Mobile nav toggle */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #e0e1dd;
  cursor: pointer;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center center;
}

.hero-inner {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background-color: #e63946; /* red accent */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn:hover,
.btn:focus {
  background-color: #d62839;
}

/* Featured / Cards */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.card {
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
  flex-grow: 1;
}

.card-content h3 {
  margin-bottom: 0.5rem;
}

.card-content p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* About / Skills / Section titles */
section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #0d1b2a;
}

.skills-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.skill-box {
  background-color: #e0e1dd;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  margin-top: 1.5rem;
  background-color: #0d1b2a;
  color: #e0e1dd;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus {
  background-color: #1b263b;
}

/* Footer */
.site-footer {
  background-color: #0d1b2a;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

/* Responsive / Media queries */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0d1b2a;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
  }
  .nav.open {
    max-height: 300px; /* enough to show links */
  }
  #nav-toggle {
    display: block;
  }
}
