/* 
 * Patac Design + Build - Main Stylesheet
 * Minimalist Architectural Aesthetic
 */

:root {
  /* Colors */
  --color-bg-black: #111111;
  --color-bg-surface: #1a1a1a;
  --color-copper: #A16D5D; /* Reverted to Brand Brown */
  --color-accent-brown: #A16D5D; 
  --color-text-white: #ffffff;
  --color-text-gray: #a0a0a0;
  --color-text-muted: #666666;
  --color-border: #333333;

  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  /* Spacing */
  --space-xxs: 0.5rem;
  --space-xs: 1rem;
  --space-sm: 2rem;
  --space-md: 4rem;
  --space-lg: 8rem;
  --space-xl: 12rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg-black);
  color: var(--color-text-white);
  font-family: var(--font-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section-padding {
  padding: var(--space-lg) 0;
}

/* Typography Helpers */
.text-accent { color: var(--color-accent-brown); }
.text-gray { color: var(--color-text-gray); }
.text-center { text-align: center; }

/* Grid Background Pattern */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Components */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-copper);
  color: #fff;
}

.btn-primary:hover {
  background-color: #8D5B4C; 
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--color-text-white);
  background: transparent;
  color: var(--color-text-white);
}

.btn-outline:hover {
  background-color: var(--color-text-white);
  color: var(--color-bg-black);
}

/* Brand Identity */
.brand-text {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-white);
  line-height: 1;
}

.brand-accent {
  color: var(--color-copper);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-fast);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.navbar-logo {
  height: 56px; /* Enlarged navbar logo area */
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  gap: var(--space-sm);
}

.navbar-links a {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-gray);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-text-white);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: var(--space-xs);
  line-height: 1.1;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-gray);
  max-width: 500px;
  margin-bottom: var(--space-sm);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.service-card {
  padding: var(--space-sm);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.service-card:hover {
  border-color: var(--color-copper);
  transform: translateY(-5px);
}

.service-icon {
  margin-bottom: var(--space-xs);
  color: var(--color-copper);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.service-card p {
  color: var(--color-text-gray);
  font-size: 0.875rem;
}

/* Process Section */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-md);
  position: relative;
}

@media (min-width: 769px) {
  .process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: var(--color-border);
    z-index: 0;
  }
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: var(--color-copper);
  margin-bottom: 0.5rem;
  display: block;
}

.step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-white);
  transition: var(--transition-fast);
}

.process-step:hover .step-icon {
  border-color: var(--color-copper);
  color: var(--color-copper);
}

.process-step h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.75rem;
  color: var(--color-text-gray);
}

/* About Section */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.about-text p {
  color: var(--color-text-gray);
  margin-bottom: var(--space-sm);
}

/* CTA Section */
.cta-section {
  background-color: var(--color-bg-surface);
  text-align: center;
  padding: var(--space-xl) 0;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

/* Footer */
.footer {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-brand h4 {
  color: var(--color-text-white);
  margin-bottom: 0.5rem;
}

.footer-contact p {
  margin-bottom: 0.25rem;
}

/* Portfolio Slider Section */
.portfolio-slider-container {
  position: relative;
  width: 100%;
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
}

.portfolio-track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.portfolio-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.portfolio-item {
  flex: 0 0 400px; /* Width of each slide */
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  transition: var(--transition-fast);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.portfolio-overlay span {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

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

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background-color: var(--color-copper);
  border-color: var(--color-copper);
}

.slider-btn.prev { left: -60px; }
.slider-btn.next { right: -60px; }

/* Mobile Slider Adjustments */
@media (max-width: 1400px) {
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
}

@media (max-width: 768px) {
  .portfolio-item { flex: 0 0 100%; } /* Single item on mobile */
  .slider-btn { display: none; } /* Use touch scroll on mobile */
}

/* Animations... */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
}

@media (max-width: 768px) {
  .section-padding { padding: var(--space-md) 0; }
  .about-split { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; text-align: left; }
  .process-step { display: flex; gap: 1rem; text-align: left; align-items: flex-start; }
  .step-icon { margin: 0; flex-shrink: 0; }
  .hero h1 { font-size: 3rem; }
  .footer-content { flex-direction: column; }
  .navbar-logo { height: 40px; }
  .brand-text { font-size: 0.875rem; }
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-copper);
  color: white;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 4px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-cta:hover {
  background-color: #8D5B4C;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .floating-cta {
    bottom: 20px;
    right: 20px;
    padding: 0.75rem 1.5rem;
    font-size: 0.65rem;
  }
}

/* Custom Cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--color-copper);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-copper);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Expansion effect on hover */
.cursor-hover .custom-cursor {
  width: 4px;
  height: 4px;
  background-color: white;
}

.cursor-hover .cursor-follower {
  width: 60px;
  height: 60px;
  background-color: rgba(184, 115, 51, 0.1);
  border-color: white;
  border-width: 1px;
}

@media (max-width: 1024px) {
  .custom-cursor, .cursor-follower {
    display: none;
  }
}
