@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Raleway:wght@300;400;500;600&display=swap');

/*
 * Global styles for the personal film‑oriented website.
 * The design references dark‑theme best practices by avoiding pure black
 * backgrounds and using shades of grey with desaturated accent colors to
 * reduce eye strain and maintain proper contrast【703142648893873†L286-L307】.  
 * Navigation and buttons transition smoothly to enhance the cinematic feel.
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.6;
  padding-top: 70px; /* offset for fixed navbar */
}

a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #c74b50;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #111111;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  font-weight: 500;
}

/* Hero section */
.hero {
  height: 100vh;
  background-image: url('../images/c159f711-75ea-4a28-b04b-0cc7e60905eb.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(13,13,13,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #d1d1d1;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background-color: #c74b50;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 0.5rem;
}

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

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* About section */
.bio-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.bio-image {
  width: 300px;
  height: 300px;
  background-image: url('../images/dd5f65dd-f058-4e64-9daa-39df42ca02bf.png');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

.bio-content {
  max-width: 600px;
}

.bio-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.bio-content p {
  margin-bottom: 1rem;
  color: #d1d1d1;
}

/* Resume table */
.resume-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.resume-table th,
.resume-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #333;
}

.resume-table th {
  text-align: left;
  color: #ffffff;
  font-weight: 600;
  background-color: #1a1a1a;
}

.resume-table tr:nth-child(even) {
  background-color: #131313;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #1f1f1f;
  color: #ffffff;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background-color: #c74b50;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
  background-color: #a03c40;
  transform: translateY(-2px);
}

footer {
  background-color: #111111;
  color: #888888;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 4rem;
}

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

footer a:hover {
  color: #e0e0e0;
}
