/* ============================================
   NEETU — Premium Portfolio Design System
   ============================================ */

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Primary — Deep Amethyst */
  --primary: #6C3483;
  --primary-light: #A569BD;
  --primary-lighter: #D2B4DE;
  --primary-dark: #4A235A;
  --primary-darker: #2E1437;

  /* Accent — Warm Gold */
  --accent: #E8B84B;
  --accent-light: #F4D68C;
  --accent-dark: #C4952E;
  --accent-glow: rgba(232, 184, 75, 0.25);

  /* Backgrounds */
  --bg-dark: #1A1A2E;
  --bg-dark-2: #16213E;
  --bg-light: #FAF7F2;
  --bg-light-2: #F3EDE4;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FDFCFA;

  /* Text */
  --text-primary: #2D2D3F;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --text-on-dark: #F5F5F5;
  --text-on-dark-muted: #B8B8CC;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #2E1437 40%, #4A235A 70%, #6C3483 100%);
  --gradient-primary: linear-gradient(135deg, #6C3483 0%, #A569BD 100%);
  --gradient-accent: linear-gradient(135deg, #E8B84B 0%, #F4D68C 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #faf7f2 100%);
  --gradient-dark: linear-gradient(180deg, #1A1A2E 0%, #2E1437 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --glass-border-light: rgba(255, 255, 255, 0.5);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(108, 52, 131, 0.2);
  --shadow-gold: 0 0 20px rgba(232, 184, 75, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-wide: 1440px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent);
}

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

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section--dark {
  background: var(--gradient-dark);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-on-dark);
}

.section--dark p {
  color: var(--text-on-dark-muted);
}

.section--alt {
  background-color: var(--bg-light-2);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-header .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section--dark .section-header .subtitle {
  color: var(--text-on-dark-muted);
}

.section-header .decorative-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  margin: var(--space-lg) auto;
  border-radius: var(--radius-full);
}

/* Flex & Grid */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: var(--space-3xl) 0;
  }
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 480px) {
  .logo span:first-child { font-size: 1.6rem !important; }
  .logo span:last-child { font-size: 0.7rem !important; }
  .trust-strip p { font-size: 0.95rem !important; white-space: normal; line-height: 1.5; }
}

/* ---------- Animations ---------- */

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 52, 131, 0.4); }
  50% { box-shadow: 0 0 20px 8px rgba(108, 52, 131, 0.15); }
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Rotate */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Bounce subtle */
@keyframes bounceSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-30px);
}

.animate-on-scroll.from-left.is-visible {
  transform: translateX(0);
}

.animate-on-scroll.from-right {
  transform: translateX(30px);
}

.animate-on-scroll.from-right.is-visible {
  transform: translateX(0);
}

.animate-on-scroll.scale {
  transform: scale(0.9);
}

.animate-on-scroll.scale.is-visible {
  transform: scale(1);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .animate-on-scroll:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .animate-on-scroll:nth-child(8) { transition-delay: 0.7s; }

/* ---------- Selection ---------- */
::selection {
  background-color: var(--primary-light);
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-lighter);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ---------- Micro Animations ---------- */
@keyframes floatContinuous {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

.animate-float {
  animation: floatContinuous 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(14, 53, 101, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(14, 53, 101, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 53, 101, 0); }
}

.animate-pulse {
  animation: pulseGlow 2s infinite;
  border-radius: var(--radius-full);
}

/* Gallery Interactive Hover Overlay */
.gallery-overlay {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}
