/* 
   Talkalisker.com Design System 
   Premium Dark Mode Aesthetic
*/

:root {
  /* Core Palette */
  --bg-core: #050505;
  --bg-surface: #121212;
  --bg-surface-frosted: rgba(18, 18, 18, 0.8);

  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #525252;

  /* Persona Accents */
  --accent-developer: #00f2ea;
  /* Cyan for tech */
  --accent-writer: #d4af37;
  /* Gold for elegance */
  --accent-copywriter: #ff0055;
  /* Magenta for creative/gaming */

  /* Gradients */
  --gradient-dev: linear-gradient(135deg, rgba(0, 242, 234, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  --gradient-writer: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  --gradient-copy: linear-gradient(135deg, rgba(255, 0, 85, 0.1) 0%, rgba(0, 0, 0, 0) 100%);

  /* Spacing System */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 2rem;
  /* 32px */
  --space-lg: 4rem;
  /* 64px */
  --space-xl: 8rem;
  /* 128px */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', serif;
  /* For Writer */
  --font-mono: 'JetBrains Mono', monospace;
  /* For Developer */

  /* Animations */
  --ease-custom: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s var(--ease-custom);
  --transition-slow: 0.5s var(--ease-custom);

  /* Borders & Glass */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);
}

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

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

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

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

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

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

section {
  padding: var(--space-lg) 0;
  /* Reduced from XL (8rem) to LG (4rem) for tighter feel */
  min-height: auto;
  /* Remove forced full height to reduce scrolling */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-xs) 0;
  /* Reduced padding */
  z-index: 1000;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-subtle);
}

/* ... existing code ... */

/* Project Card Compact Styles */
.project-card {
  background: var(--bg-surface);
  padding: 1.5rem;
  /* Reduced from 2rem */
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast);
}

.project-card h3 {
  font-size: 1.25rem;
  /* Reduced from default */
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
}


/* ... existing code ... */

/* Contact Section Styles */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  /* Tech feel */
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-link:hover {
  color: #fff;
  border-color: var(--accent-developer);
  background: rgba(0, 242, 234, 0.05);
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.1);
  transform: translateY(-2px);
}

.contact-link.linkedin:hover {
  border-color: #0077b5;
  background: rgba(0, 119, 181, 0.1);
  box-shadow: 0 0 15px rgba(0, 119, 181, 0.1);
}

.contact-link.instagram:hover {
  border-color: #E1306C;
  background: rgba(225, 48, 108, 0.1);
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.1);
}

/* Nav Inner for Gallery fixed */
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.nav-link:hover {
  opacity: 1;
}

/* Developer Section Specifics */
.section-dev h2 {
  font-family: var(--font-mono);
  color: var(--accent-developer);
}

.section-dev {
  background: var(--gradient-dev);
}

/* Writer Section Specifics */
.section-writer h2 {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-writer);
}

.section-writer {
  background: var(--gradient-writer);
}

/* Copywriter Section Specifics */
.section-copy h2 {
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent-copywriter);
}

.section-copy {
  background: var(--gradient-copy);
}

/* Button Component */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn:hover {
  background: var(--text-primary);
  color: var(--bg-core);
  transform: translateY(-2px);
}

/* Glitch Effect for Title (Optional Premium Touch) */
.glitch-wrapper {
  position: relative;
}

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

  .nav-links {
    display: none;
    /* Mobile menu todo */
  }

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

/* Gallery / Slider Styles */
.gallery-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  /* Enforce consistent container sizing */
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid var(--border-subtle);
  background: #050505;
  /* Deep black background for letterboxing */
}

/* Gallery Navigation Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  padding-bottom: 3px;
  /* visual alignment of arrow */
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

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

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

.gallery-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  height: 100%;
  /* Ensure scroll container fills parent */
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.gallery-item {
  min-width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  /* Center the image */
  align-items: center;
  /* Vertically center */
  justify-content: center;
  /* Horizontally center */
}

.gallery-item img {
  max-width: 85%;
  /* Scale down image to be smaller within the container */
  max-height: 85%;
  /* Scale down image to be smaller within the container */
  width: auto;
  height: auto;
  object-fit: contain;
  /* Ensure image scales without cropping/stretching */
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  /* Add subtle depth */
}

/* Project Data Grid */
.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item h5 {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.meta-item p {
  font-size: 0.9rem;
  color: var(--text-primary);
}