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

:root {
  --primary: #AE6647;
  --secondary: #B0B79E;
  --dark: #221523;
  --accent: #F7CB97;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'EB Garamond', serif;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
  padding: 2rem;
  min-height: 100vh;
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
}

nav {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--secondary);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  nav {
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
  border-radius: 8px;
}

button, .btn {
  background-color: var(--primary);
  color: #fafaf8;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

button:hover, .btn:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(174, 102, 71, 0.2);
}

button:active, .btn:active {
  transform: translateY(0);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

code {
  background-color: #1a1a1a;
  color: #F7CB97;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(174, 102, 71, 0.12);
}

.highlight {
  background-color: var(--accent);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.section-divider {
  height: 1px;
  background-color: var(--secondary);
  margin: 3rem 0;
  opacity: 0.3;
}

/* Portfolio Page Styles */
.banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 3rem;
  display: block;
}

@media (max-width: 768px) {
  .banner {
    height: 250px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 180px;
    margin-bottom: 1.5rem;
  }
}

.portfolio-header {
  text-align: center;
  margin-bottom: 2rem;
}

.portfolio-header h1 {
  margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(174, 102, 71, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin: 0;
  display: block;
}

@media (max-width: 768px) {
  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .gallery-item img {
    height: 150px;
  }
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  animation: slideIn 0.3s ease;
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    max-height: 85vh;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 0;
  width: auto;
  height: auto;
  line-height: 1;
}

@media (max-width: 768px) {
  .modal-close {
    font-size: 2rem;
    top: 0.75rem;
    right: 0.75rem;
  }
}

.modal-close:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* Tabs Styles */
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--secondary);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .tabs {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #e0e0e0;
  transition: all 0.3s ease;
  margin-bottom: -2px;
  opacity: 0.7;
}

.tab-button:hover {
  opacity: 1;
  color: var(--primary);
}

.tab-button.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
  opacity: 1;
}

.tab-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.tab-link:hover {
  opacity: 1;
  color: var(--primary);
}

@media (max-width: 768px) {
  .tab-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Footer Styles */
footer.footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--secondary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-content p {
  color: #a0a0a0;
  font-size: 0.9rem;
  margin: 0;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.instagram-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.instagram-icon {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  footer.footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
  }

  .footer-content {
    gap: 0.75rem;
  }

  .footer-content p {
    font-size: 0.85rem;
  }

  .instagram-link {
    font-size: 0.9rem;
  }
}
  