@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fragment+Mono:ital@0;1&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg-color: #F7F7F2;       /* Cream - matches Tailwind bg-bg-main */
  --text-main: #1D3A36;      /* Dark teal - matches Tailwind text-text-main */
  --text-muted: #688782;
  --accent: #FFB833;         /* Yellow accent */
  --card-bg: #FFFFFF;
  --border-color: #DFE5E3;
}

/* Hide default cursor only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  body, a, button, .interactive, .magnetic {
    cursor: none !important;
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overscroll-behavior: none;
}

.font-mono {
  font-family: 'Fragment Mono', monospace;
}

.font-display {
  font-family: 'Syne', sans-serif;
}

/* Custom Text Outline Utility */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #555555;
}

/* Heading Bold Shadow Effect — disabled */
.heading-stroke {}

/* Custom Selection */
::selection {
  background: var(--accent);
  color: #000;
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: #FFB833;
  border: 2px solid #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cursor-dot.hovered {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  backdrop-filter: blur(2px);
}

/* Masking for Text Reveal */
.line-wrapper {
  overflow: hidden;
  display: block;
}

/* Image hover scaling */
.project-image-wrapper {
  overflow: hidden;
}

.project-image {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 20s linear infinite;
  display: inline-block;
  white-space: nowrap;
}

/* Interactive Folders */
.folder-container { perspective: 1000px; cursor: pointer; }
.folder { position: relative; width: 100%; aspect-ratio: 4/3; transform-style: preserve-3d; }
.folder-back { position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background-color: #D4961D; border-radius: 0 12px 12px 12px; }
.folder-tab { position: absolute; bottom: 99%; left: 0; width: 45%; height: 18%; background-color: #D4961D; border-radius: 12px 12px 0 0; transform: translateZ(-1px); }
.folder-paper { position: absolute; bottom: 10px; left: 15px; right: 15px; height: 90%; background-color: #fff; border-radius: 8px; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: bottom center; overflow: hidden; border: 2px solid #eee; transform: translateZ(1px); }
.folder-front { position: absolute; bottom: 0; left: 0; right: 0; height: 85%; background-color: var(--accent); border-radius: 0 12px 12px 12px; box-shadow: 0 -4px 12px rgba(0,0,0,0.1); transform-origin: bottom; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; transform: translateZ(10px); }
.folder-container:hover .folder-paper { transform: translateZ(1px) translateY(-50px) rotate(-4deg) scale(1.05); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.folder-container:hover .folder-front { transform: translateZ(10px) rotateX(-25deg); background-color: #ffc34d; }
.title-shadow { text-shadow: 5px 5px 0px var(--accent); }
.bg-grid { background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 40px 40px; background-position: center; }

/* Faint Grid Background Overlay */
.bg-grid-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(29, 58, 54, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 58, 54, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Authentic Film Grain / Noise Overlay */
.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9; /* Below navbar (z-50) but above base content */
  opacity: 0.06;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Section Specific Patterns */
.pattern-grid {
  background-image: 
    linear-gradient(to right, rgba(29, 58, 54, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 58, 54, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.pattern-dots {
  background-image: radial-gradient(rgba(29, 58, 54, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.pattern-diagonal {
  background-image: repeating-linear-gradient(45deg, rgba(29, 58, 54, 0.03) 0, rgba(29, 58, 54, 0.03) 1.5px, transparent 1.5px, transparent 12px);
}

/* Animated Typography Background */
@keyframes marquee-bg {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-bg-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.bg-marquee {
  animation: marquee-bg 90s linear infinite;
  display: flex;
  width: max-content;
}
.bg-marquee-reverse {
  animation: marquee-bg-reverse 110s linear infinite;
  display: flex;
  width: max-content;
}
.bg-text-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(29, 58, 54, 0.08); /* Faint teal stroke */
}



