@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&family=Sora:wght@400;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-color: #050505;
  --text-color: #ffffff;
  --text-muted: #d4d4d8;
  /* Brighter body text */
  --accent-gold: #d4af37;
  /* Premium gold accent */
  --accent-gold-hover: #c5a028;
  --border-color: #27272a;
  --card-bg: #111111;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Sora', sans-serif;

  /* Layout */
  --container-max-width: 1280px;
  --nav-height: 116px;
  --nav-height-mobile: 88px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Z-Index */
  --z-sticky-nav: 50;
  --z-sticky-bottom: 40;
  --z-modal: 100;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
}

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

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0;
  /* Sharp edges for high-end look */
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-color);
  padding: 0.6rem 1.25rem;
}

.btn-outline:hover {
  border-color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-color);
  padding: 1rem 2rem;
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transform: scale(1.05);
}

/* Sections */
section {
  padding: 6rem 0;
}

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

.section-title {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: var(--z-sticky-nav);
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Subtle premium bottom line */
  transition: all var(--transition-normal);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 86px;
  width: auto;
  transition: all var(--transition-normal);
}

.nav-links {
  display: flex;
  gap: 3rem;
  /* Expanded gap for breathing room */
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--text-color);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  /* Subtle clean glow instead of gold */
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: calc(var(--z-sticky-nav) + 2);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: calc(var(--z-sticky-nav) + 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.mobile-close-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.mobile-nav-links .nav-link {
  font-size: 1.5rem;
  font-family: var(--font-display);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  background:
    linear-gradient(to right, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.70) 50%, rgba(5, 5, 5, 0.4) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(5, 5, 5, 0.8) 100%),
    url('https://images.unsplash.com/photo-1622286342621-4bd786c2447c?auto=format&fit=crop&w=1920&q=80') center right/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 750px;
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.hero-content h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 550px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card-bg);
  padding: 3rem 2rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.service-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-desc {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-link {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  margin-top: auto;
}

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

/* Styles Preview */
.styles-section {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.styles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.style-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
}

.style-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(100%);
}

.style-item:hover .style-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.style-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.style-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
}

/* Meet Patrick Section */
.meet-patrick-section {
  background-color: #080808;
  border-top: 1px solid var(--border-color);
  padding: 6rem 0;
}

.meet-patrick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.meet-patrick-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform var(--transition-normal);
}

.meet-patrick-image-wrapper:hover {
  transform: translateY(-5px);
}

.meet-patrick-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  pointer-events: none;
}

.meet-patrick-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.meet-patrick-content {
  animation: fadeUp 1s ease forwards;
}

.barber-divider {
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
  margin-bottom: 2rem;
  border-radius: 2px;
}

.meet-patrick-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-color);
  opacity: 0.9;
}

/* Gallery Page Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: var(--border-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
  display: block;
}

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

/* Book Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--bg-color);
  width: 90%;
  max-width: 600px;
  height: 85vh;
  max-height: 800px;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.modal-header {
  position: absolute;
  top: -24px;
  right: -24px;
  z-index: 20;
}

.modal-title {
  display: none;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
  background: var(--accent-gold);
  color: black;
  border-color: var(--accent-gold);
}

.modal-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Footer */
footer {
  background-color: var(--bg-color);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-col p {
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.footer-divider {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.design-credit {
  display: inline-block;
}

.design-credit a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.design-credit a:hover {
  filter: brightness(1.2);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}



/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-logo img {
    height: 72px;
  }
}

@media (max-width: 900px) {
  .styles-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .meet-patrick-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    height: var(--nav-height-mobile);
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-logo img {
    height: 60px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .styles-container {
    grid-template-columns: 1fr;
  }

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

  .meet-patrick-section {
    padding: 4rem 0;
  }

  /* Nullify Heavy 3D and Filter effects on Mobile for smooth scrolling */
  .hero {
    min-height: 100dvh;
    background-attachment: scroll;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    animation: none;
    transform: none;
  }

  .btn:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }

  .service-card:hover::before {
    transform: scaleX(0);
  }

  .hero-content h1,
  .hero-content p {
    text-shadow: none;
  }

  .modal-content {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .modal-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
  }

  .modal-close {
    width: 44px;
    height: 44px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
  }

  .modal-iframe {
    border-radius: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }



  .footer-divider {
    display: none;
  }

  .design-credit {
    display: block;
    margin-top: 0.25rem;
  }
}