/* 
  Theme: Dark Premium
  Fonts: Outfit (Headings), Inter (Body)
*/

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

:root {
  /* Colors */
  --bg-body: #050505;
  --bg-card: #101010;
  --bg-overlay: rgba(0, 0, 0, 0.85);

  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --text-accent: #d4af37;
  /* Gold/Bronze */

  --accent-primary: #FFD700;
  /* Striking Yellow / Gold for interactive elements */
  --accent-glow: rgba(255, 215, 0, 0.5);

  --border-light: rgba(255, 255, 255, 0.1);

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  /* Animation */
  transform: translateY(-100%);
  opacity: 0;
  animation: slideDown 0.8s var(--ease-out) forwards;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: 'Outfit', sans-serif;
  /* Ensure font matches headings */
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #a0a0a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.2s ease;
  display: block;
  /* Ensure correct spacing/layout as an anchor */
  text-decoration: none;
}

.logo:hover {
  /* Increased spotlight size (120px) and added drop-shadow glow */
  background-image: radial-gradient(circle 120px at var(--x, 50%) var(--y, 50%), #FFD700 0%, transparent 100%),
    linear-gradient(to right, #fff, #a0a0a0);
  transform: scale(1.02);
  /* Slight scale for "exaggerated" feel */
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-main);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3), var(--bg-body));
  z-index: 1;
}

.hero-slider {
  width: 100%;
  height: 100%;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1.05);
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #fff 20%, #777);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  /* Prevent selection for triple-tap trigger */
  cursor: default;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--text-main);
  color: var(--bg-body);
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Portfolio Grid */
.portfolio-section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, border-color 0.3s ease;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.media-item {
  display: block;
  width: 100%;
  height: 100%;
}

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

.card:hover img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

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

.card-title {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.card-category {
  font-size: 0.85rem;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  text-align: center;
}

.contact-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

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

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.modal-content-wrapper {
  position: relative;
  z-index: 2001;
  max-width: 90vw;
  max-height: 90vh;
  outline: none;
}

.modal-media {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Footer */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  margin-top: auto;
}

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

.social-links a {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
}

.social-links a:hover {
  color: var(--bg-body);
  background: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Gallery Slider */
.gallery-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.5rem;
  z-index: 10;
}

.gallery-nav:hover {
  background: white;
  color: black;
}

.gallery-nav.prev {
  left: -70px;
}

.gallery-nav.next {
  right: -70px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-header .container {
    padding: 0 1.5rem;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .gallery-nav.prev {
    left: 10px;
  }

  .gallery-nav.next {
    right: 10px;
  }
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  pointer-events: none;
}