/* ==========================================================================
   PRANAVANATHAN M — FUTURISTIC PORTFOLIO DESIGN SYSTEM
   AI Enthusiast | Software Developer | Atlassian Tools Administrator
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  /* Dark Cosmic Foundations */
  --bg-primary: #05070E;
  --bg-secondary: #0A0F1F;
  --bg-card: rgba(13, 21, 38, 0.65);
  --bg-card-hover: rgba(18, 30, 56, 0.8);
  --bg-card-elevated: rgba(16, 26, 48, 0.85);
  --bg-glass: rgba(10, 16, 32, 0.6);
  --bg-overlay: rgba(5, 7, 14, 0.85);

  /* Luminous Accent Hierarchy */
  --accent-cyan: #00E5FF;
  --accent-cyan-dim: rgba(0, 229, 255, 0.15);
  --accent-blue: #0052CC; /* Atlassian Iconic Blue */
  --accent-blue-bright: #38BDF8;
  --accent-violet: #8B5CF6;
  --accent-violet-glow: rgba(139, 92, 246, 0.35);
  --accent-emerald: #10B981;
  --accent-emerald-dim: rgba(16, 185, 129, 0.15);
  --accent-amber: #F59E0B;

  /* Typography & Readability */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-highlight: #38BDF8;

  /* Glassmorphic Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-glow-cyan: rgba(0, 229, 255, 0.3);
  --border-glow-blue: rgba(0, 82, 204, 0.4);
  --border-glow-violet: rgba(139, 92, 246, 0.4);

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --shadow-glow-cyan: 0 0 25px rgba(0, 229, 255, 0.25);
  --shadow-glow-blue: 0 0 30px rgba(0, 82, 204, 0.3);
  --shadow-glow-violet: 0 0 30px rgba(139, 92, 246, 0.3);

  /* Font Families */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Interactive Canvas Background */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* Subtle Grid Matrix Overlay */
.grid-matrix-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, black 90%);
}

/* Ambient Radial Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.ambient-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 82, 204, 0.35), transparent 70%);
  top: -100px;
  right: -100px;
}

.ambient-glow-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  top: 40%;
  left: -200px;
}

.ambient-glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 70%);
  bottom: 5%;
  right: -100px;
}

/* Layout Utilities */
.site-content {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-sm {
  padding: 4rem 0;
}

/* Section Header Styling */
.section-header {
  margin-bottom: 3.5rem;
  position: relative;
}

.section-header.text-center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--accent-blue-bright) 60%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.075rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-top: 0.5rem;
}

.section-header.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Glassmorphism Card System */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.glass-card.interactive-glow:hover {
  border-color: var(--border-glow-cyan);
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 229, 255, 0.15);
}

/* Button & CTA System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0052CC 0%, #2563EB 50%, #38BDF8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 82, 204, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 82, 204, 0.6), 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(139, 92, 246, 0.4);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--accent-violet);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-icon-only:hover {
  color: #FFFFFF;
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

/* Badge Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-applying {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-experimenting {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-exploring {
  background: rgba(139, 92, 246, 0.12);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-learning {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-atlassian {
  background: rgba(0, 82, 204, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(0, 82, 204, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}

/* Selection */
::selection {
  background: rgba(0, 229, 255, 0.3);
  color: #FFFFFF;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
  .container {
    padding: 0 1.25rem;
  }
}
