/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #181818;
  --text: #cecdcd;
  --accent: #ff1100;
  --accent2: #e8564b;
  --white: #ffffff;
  --dark-slate: #334155;
  --light-bg: #F0F5FA;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

.accent { color: var(--accent); }

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Navigation === */
.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 40px;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover { color: var(--accent); }

.lang-switcher {
  display: flex;
  gap: 12px;
}

.lang-switcher a {
  color: var(--text);
  font-size: 13px;
  opacity: 0.6;
  text-transform: uppercase;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  opacity: 1;
  color: var(--accent);
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 20px 20px 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.hero p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  max-width: none;
  margin: 0 auto 16px;
}

.hero p a { color: var(--accent2); }

/* === Projects Grid === */
.section-title {
  text-align: center;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  margin: 20px 0 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.project-card:hover {
  color: var(--text);
  opacity: 0.85;
}

.project-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.project-info {
  flex: 1;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2px;
}

.project-info p {
  font-size: 13px;
  color: var(--text);
  opacity: 0.7;
}

.btn-view {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-view:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* === Bottom Quote === */
.bottom-quote {
  text-align: center;
  padding: 80px 20px;
  font-size: 16px;
  color: var(--text);
  opacity: 0.7;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 12px 20px;
  border-top: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  font-size: 14px;
  opacity: 0.7;
}

.footer-links a:hover { opacity: 1; color: var(--accent); }

/* === Projects Page === */
.projects-page {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-body);
}

.projects-item {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.projects-back {
  margin: 30px 0;
  text-align: center;
}

.projects-back a {
  color: var(--text);
  font-size: 24px;
  transition: color 0.2s;
}

.projects-back a:hover {
  color: var(--accent);
}

.projects-image {
  margin-top: 20px;
  text-align: center;
}

.projects-image img {
  max-width: 150px;
  margin: 0 auto;
}

/* === Now Page === */
.now-page {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-body);
}

.now-item {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.accent-link {
  color: var(--accent2);
}

.accent-link:hover {
  color: var(--accent);
}

.now-date {
  font-size: 14px;
  color: var(--text);
  opacity: 0.5;
  margin: 30px 0;
}

.now-image {
  margin: 30px auto;
  max-width: 400px;
}

.now-image img {
  border-radius: 8px;
}

/* === Portfolio Page === */
.portfolio-page {
  padding: 60px 20px;
}

.portfolio-page h1 {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 50px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio-cat {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
}

.portfolio-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-cat:hover img { transform: scale(1.05); }

.portfolio-cat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.portfolio-cat:hover .portfolio-cat-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.portfolio-cat-overlay h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
}

/* === Gallery Page === */
.gallery-page {
  padding: 60px 20px;
}

.gallery-page h1 {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.gallery-back {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-grid img:hover { opacity: 0.85; }

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }

  .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }

  .projects-grid { grid-template-columns: 1fr; }

  .hero { padding: 40px 20px 20px; }
  .hero p { font-size: 16px; }

  .portfolio-grid { grid-template-columns: 1fr 1fr; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
