/* CSS variables for consistent theming */
:root {
  --bg-color: #0d0d0d;
  --surface-color: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --accent-color: #d4af37; /* Gold accent */
  --accent-hover: #b8972e;
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-smooth);
}

/* Typography Utilities */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-smooth);
}

.section-title.center {
  text-align: center;
}
.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

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

nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #000;
  border: 1px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 4rem 2rem;
  overflow: hidden;
  background: radial-gradient(circle at center right, rgba(212, 175, 55, 0.05) 0%, var(--bg-color) 60%);
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-text p {
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.hero-image-front {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-image-front img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

/* About Section */
.about {
  padding: 8rem 4rem;
  background-color: var(--bg-color);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-color);
  border-radius: 12px;
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

.link-arrow span {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.link-arrow:hover span {
  transform: translateX(5px);
}

/* Portfolio Section */
.portfolio {
  padding: 6rem 4rem 10rem;
  background-color: var(--surface-color);
}

.portfolio .section-title {
  margin-bottom: 4rem;
  display: block;
  text-align: center;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.gallery-item img, .placeholder-box {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.item-overlay span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 1px;
}

.gallery-item:hover img, .gallery-item:hover .placeholder-box {
  transform: scale(1.08); /* Zoom effect */
}

.gallery-item:hover .item-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: #050505;
  padding: 6rem 4rem 3rem;
  text-align: center;
}

.footer-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.footer-content p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.social-icon:hover {
  background-color: var(--accent-color);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.copyright {
  font-size: 0.9rem !important;
  color: #666 !important;
  margin-bottom: 0 !important;
}

/* Animations Classes setup */
.hidden-element {
  opacity: 0;
  visibility: hidden;
}

/* Initially hidden states for JS classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease;
}

.zoom-in {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s ease;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

.is-visible {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
  visibility: visible !important;
}

@keyframes bgPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-image-front {
    justify-content: center;
  }
  .hero-text h1 {
    font-size: 3.5rem;
  }
  .about-container {
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 2rem;
    flex-direction: column;
    gap: 1rem;
    background: rgba(13, 13, 13, 0.9);
  }
  
  nav ul {
    gap: 1.5rem;
  }
  
  .hero {
    padding: 6rem 2rem 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero-text p {
    font-size: 1rem;
    letter-spacing: 2px;
  }
  
  .about {
    padding: 5rem 2rem;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .portfolio {
    padding: 4rem 2rem 8rem;
  }
  
  footer {
    padding: 4rem 2rem 2rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
}
