/*
Theme Name: Bakkars Dark
Theme URI: https://bakkars.com
Description: A custom dark theme for Bakkars portfolio website
Version: 1.0
Author: Bakkars
Text Domain: bakkars-dark
*/

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-text: #ffffff;
  --color-text-muted: #888888;
  --color-accent: #333333;
  --color-border: #222222;
  --max-width: 1200px;
  --spacing: 2rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.7;
}

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

/* Header */
.site-header {
  padding: 1.5rem var(--spacing);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.site-title a {
  color: var(--color-text);
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--color-text);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* Main Content */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing);
  min-height: 60vh;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 0;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 3px;
}

.hero-section .tagline {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-bg-alt);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.portfolio-item h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Portfolio placeholder for pages without images */
.portfolio-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
}

.placeholder-content {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  text-align: center;
  padding: 2rem;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  text-align: center;
  color: var(--color-text);
  padding: 1rem;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--color-text);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--color-text-muted);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text);
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: background 0.3s;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Page Content */
.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.page-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  font-weight: 400;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.page-content img {
  border-radius: 4px;
  margin: 1.5rem 0;
  cursor: pointer;
  transition: opacity 0.3s;
}

.page-content img:hover {
  opacity: 0.9;
}

/* Contact Page */
.contact-info {
  margin-top: 2rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info strong {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem var(--spacing);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--color-border);
  }
  
  .main-navigation.toggled ul {
    display: flex;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .lightbox-nav {
    font-size: 20px;
    padding: 0.5rem;
  }
  
  .lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}
