/* ==========================================================================
   AQUIF AKIL JIGRU - PERSONAL PORTFOLIO & CV
   Design System & Core Styles
   Based on cvdaw Template Design System (Rajdhani + Rubik + Dark Luxury Obsidian)
   ========================================================================== */

:root {
  /* Fonts */
  --font-heading: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Obsidian Dark Theme Palette */
  --bg-dark: #08090C;
  --bg-primary: #0D0E14;
  --bg-surface: #13151F;
  --bg-elevated: #1A1C28;
  --bg-elevated-hover: #212433;
  --bg-input: #11131C;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.25);

  /* Text Hierarchy */
  --text-white: #FFFFFF;
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Template Theme Style 1: Crimson Flame (Default) */
  --accent-primary: #FF3344;
  --accent-hover: #FF5263;
  --accent-light: #FF8591;
  --accent-glow: rgba(255, 51, 68, 0.35);
  --accent-glow-subtle: rgba(255, 51, 68, 0.12);
  --accent-gradient: linear-gradient(135deg, #FF3344 0%, #FF6243 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(255, 51, 68, 0.15) 0%, rgba(255, 98, 67, 0.05) 100%);

  /* Spacing */
  --nav-height: 80px;
  --container-max: 1240px;
  --section-pad: clamp(60px, 9vw, 110px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 0 30px var(--accent-glow);

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Template Theme Style 2: Amber Gold */
[data-theme-style="amber"] {
  --accent-primary: #F5A623;
  --accent-hover: #FFBA42;
  --accent-light: #FFD27D;
  --accent-glow: rgba(245, 166, 35, 0.35);
  --accent-glow-subtle: rgba(245, 166, 35, 0.12);
  --accent-gradient: linear-gradient(135deg, #F5A623 0%, #FFC857 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(255, 200, 87, 0.05) 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 51, 68, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(255, 51, 68, 0.03) 0%, transparent 45%);
}

[data-theme-style="amber"] body {
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(245, 166, 35, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(245, 166, 35, 0.03) 0%, transparent 45%);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

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

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

ul, ol {
  list-style: none;
}

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

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: var(--accent-glow-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--accent-glow);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px var(--accent-glow);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.badge-accent {
  background: var(--accent-glow-subtle);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-primary);
}

/* Card Surface Common */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 32px);
  transition: all var(--trans-medium);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Accessibility - Focus visible */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
