/*
Theme Name: My Lovable Portfolio
Theme URI: https://example.com/my-lovable-portfolio
Author: Your Name
Author URI: https://example.com
Description: A custom WordPress theme converted from a Lovable (React + Tailwind) export, styled with Tailwind CSS via CDN.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-lovable-portfolio
Tags: portfolio, one-page, responsive, tailwind
*/

/* Google Fonts to match original design */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap");

/* Design tokens (from original Tailwind setup) */
:root {
  --background: 0 0% 4%;
  --foreground: 40 20% 92%;

  --card: 0 0% 7%;
  --card-foreground: 40 20% 92%;

  --popover: 0 0% 7%;
  --popover-foreground: 40 20% 92%;

  --primary: 38 80% 55%;
  --primary-foreground: 0 0% 4%;

  --secondary: 0 0% 12%;
  --secondary-foreground: 40 20% 85%;

  --muted: 0 0% 10%;
  --muted-foreground: 40 5% 50%;

  --accent: 38 80% 55%;
  --accent-foreground: 0 0% 4%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 0 0% 15%;
  --input: 0 0% 15%;
  --ring: 38 80% 55%;

  --radius: 0.25rem;

  --sidebar-background: 0 0% 6%;
  --sidebar-foreground: 40 20% 92%;
  --sidebar-primary: 38 80% 55%;
  --sidebar-primary-foreground: 0 0% 4%;
  --sidebar-accent: 0 0% 12%;
  --sidebar-accent-foreground: 40 20% 85%;
  --sidebar-border: 0 0% 15%;
  --sidebar-ring: 38 80% 55%;

  /* Custom cinematic tokens */
  --gold: 38 80% 55%;
  --gold-dim: 38 50% 35%;
  --warm-white: 40 20% 92%;
  --film-grain: 0 0% 8%;
}

/* Basic typography & background fallbacks */
body {
  margin: 0;
  padding: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}

/* Utilities matching original Tailwind layers */
.font-display {
  font-family: "Playfair Display", serif;
}

.font-body,
.font-sans {
  font-family: "Inter", sans-serif;
}

.text-gold {
  color: hsl(var(--gold));
}

.bg-film-grain {
  background-color: hsl(var(--film-grain));
}

.border-gold {
  border-color: hsl(var(--gold));
}

.text-gradient-gold {
  background: linear-gradient(135deg, hsl(38 80% 55%), hsl(45 90% 70%), hsl(38 80% 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cinematic letterbox bars for hero */
.letterbox::before,
.letterbox::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8%;
  background: hsl(0 0% 0%);
  z-index: 10;
}
.letterbox::before {
  top: 0;
}
.letterbox::after {
  bottom: 0;
}

/* Film grain overlay for sections */
.grain-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: hsl(0 0% 4%);
}
::-webkit-scrollbar-thumb {
  background: hsl(38 80% 55% / 0.3);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(38 80% 55% / 0.6);
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}