/* ============================================================================
  ROOT VARIABLES & DESIGN TOKENS
  ============================================================================
  Define all colors, fonts, spacing, and other design tokens used throughout
  the site. This makes it easy to maintain a consistent design system.
  ========================================================================== */
:root {
  /* Color palette - accent colors */
  --accent: #7c3aed;
  --accent-glow: #8b5cf6;
  --accent-blue: #2563eb;

  /* Background colors for light/dark modes */
  --bg-light: #ffffff;
  --bg-dark: #0b0b10;
  --bg-elevated-dark: rgba(255, 255, 255, 0.03);

  /* Text colors for different hierarchy levels */
  --text-dark: #111827;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;

  /* Border colors */
  --border-subtle-dark: rgba(255, 255, 255, 0.08);
  --border-subtle-light: rgba(0, 0, 0, 0.05);

  /* Special effects and animations */
  --selection: #a78bfa33;
  --matrix-dark: #7c3aed;
  --matrix-light: #4c1d95;
  --matrix-trail: rgba(0, 0, 0, 0.08);

  /* Reusable shadow with glow effect for depth */
  --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.35),
   0 30px 80px -20px rgba(124, 58, 237, 0.35);

  /* Typography - font family stack */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Line height values for readability */
  --lh-body: 1.5;
  --lh-tight: 1.15;

  /* Letter spacing for headings */
  --tracking-tight: -0.015em;
}

/* ============================================================================
  GLOBAL STYLES
  ============================================================================ */

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

/* Apply box-sizing to all elements for predictable layouts */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Body styling - dark theme with gradient background */
body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #181328 0%, #000000 55%);
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================================================
  LAYOUT & SECTIONS
  ============================================================================ */

/* Standard padding for all sections */
.section {
  padding: 2rem min(8vw, 5rem);
}

/* ============================================================================
  NAVIGATION BAR
  ============================================================================ */

/* Fixed header with glassmorphism effect */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  padding: 1rem min(8vw, 5rem);
  backdrop-filter: blur(5px);
  background-color: var(--bg-elevated-dark);
  border: var(--border-subtle-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  z-index: 1000;
}

/* Logo container with flex layout */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* Logo text with glow effect */
#nav-logo-txt {
  font-size: clamp(0.8rem, 1.2vw, 1.9rem);
  font-weight: 700;
  color: var(--accent-glow-rgb);
  text-shadow: 0 0 10px var(--accent-glow);
  text-decoration: none;
  padding: 0;
  font-family: var(--font-heading);
}

/* Logo image - circular with proper sizing */
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  align-self: center;
  object-fit: cover;
}

/* Hover effect for logo */
#nav-logo-txt:hover {
  color: var(--accent);
}

/* Horizontal navigation links */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Style for nav link anchors */
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}

/* Interactive hover state for nav links */
.nav-links a:hover {
  color: var(--accent-glow);
  border-bottom: var(--bg-elevated-dark) 5px solid;
}

/* Mobile menu toggle button */
#mobileMenuBtn {
  background: transparent;
  border: 1px solid var(--border-subtle-dark);
  color: var(--text-light);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

/* Mobile menu button hover and focus states */
#mobileMenuBtn:hover,
#mobileMenuBtn:focus {
  background-color: var(--bg-elevated-dark);
  border-color: var(--accent-glow);
  box-shadow: 0 0 10px rgba(var(--accent-glow-rgb), 0.3);
}

/* Mobile menu dropdown - initially hidden */
#mobileMenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;

  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu active state - animate in */
#mobileMenu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile menu link styles */
#mobileMenu a {
  display: block;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

/* Mobile menu link hover - highlight with accent color */
#mobileMenu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--accent-glow);
  border-left-color: var(--accent-glow);
  padding-left: 1.2rem;
}

/* Responsive: Hide desktop nav on mobile, show mobile menu button */
@media (max-width: 768px) {
  .nav-links {
   display: none;
  }

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

/* ============================================================================
  HERO SECTION
  ============================================================================ */

/* Hero section container */
#hero {
  display: flex;
  flex-direction: column;
  padding: 4rem min(8vw, 5rem);
}

/* Hero content wrapper with left alignment */
.hero-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-left: 10%;
  margin-top: 8%;
  margin-left: 1vw;
  border-bottom: var(--border-subtle-dark) 2px solid;
}

/* Hero main heading - large, prominent typography */
#hero h2 {
  margin-bottom: 1rem;
  margin-top: 1rem;
  color: var(--text-light);
  font-size: clamp(3.1rem, 4.5vw, 4rem);
  font-weight: 800;
  max-width: 500px;
  font-family: var(--font-sans);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

/* Accent color highlight within heading */
#hero h2 span {
  color: var(--accent-glow);
}

/* Hero description text - secondary content */
#hero p {
  color: var(--text-muted);
  font-size: clamp(0.8rem, 2vw, 1rem);
  max-width: 600px;
}

/* Base button styling for hero section */
#hero a {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.75rem 1.2rem;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin: 8px;
  margin-bottom: 1.5rem;
}

/* Primary button - solid background with glow */
#hero .hero-content .btn-primary {
  background: var(--accent-glow);
  box-shadow: var(--shadow-glow);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Primary button hover - darker accent with enhanced glow */
#hero .hero-content .btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Secondary button - transparent with border */
#hero .hero-content .btn-secondary {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-light);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Secondary button hover - accent border and text color */
#hero .hero-content .btn-secondary:hover {
  border-color: var(--accent-glow);
  color: #fff;
}

/* ============================================================================
  SECTION HEADINGS
  ============================================================================ */

/* Main section title styling */
.section-title {
  color: var(--text-light);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0;
}

/* Secondary heading - smaller than main title */
.section-sub-heading {
  color: var(--text-soft);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* ============================================================================
  PROJECTS SECTION
  ============================================================================ */

/* Responsive grid for project cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Individual project card styling */
.project {
  background-color: var(--bg-elevated-dark);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-subtle-dark);
}

/* Project card hover effect - lift up with glow */
.project:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* Project title styling */
.project .title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  display: inline;
  color: var(--text-light);
}

/* Project status badge - positioned on the right */
.state {
  display: inline-flex;
  float: right;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4px;
}

/* Status color variations */
.state-active {
  color: #00ff9983;
}

.state-paused {
  color: #ffb700ad;
}

.state-archived {
  color: #ff555592;
}

.state-planned {
  color: #0096ff9f;
}

.state-unknown {
  color: #a0a0a09f;
}

/* Project description separator */
.project .description {
  border-bottom: var(--border-subtle-dark) 1px solid;
  margin-bottom: 0.5rem;
}

/* Project description text */
.project .desc-text {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Technology stack tags */
.project-stack {
  display: inline;
  background-color: var(--bg-dark);
  color: var(--text-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.775rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  margin-right: 0.5rem;
}

/* Project link - positioned on the right */
.project-link a {
  text-decoration: none;
  color: var(--accent-glow);
  font-weight: 500;
  transition: color 0.3s ease;
  float: right;
}

/* ============================================================================
  Identity
  ============================================================================ */


.identity-card{
  background-color: var(--bg-elevated-dark);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--border-subtle-dark);
  padding: 40px;
  align-self: center;
  justify-self: center;
  max-width: 900px;
}


.profile-img{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline;
  border: #4c1d95 solid 1px;
}


.identity-profile h3{
margin-bottom: 0.2rem;
  margin-top: 0;
  color: var(--text-light);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);  
}

.identity-profile span{
  color: var(--text-soft);
  font-size: clamp(0.3rem , 2vw, 1rem);
  color: var(--accent-glow) ;
  font-family: var(--font-mono);
}


.identity-profile p{
  color: var(--text-soft);
  margin: 0;
  font-size: clamp(0.2rem, 2vh, 0.9rem);
}

.profile-info{
  /* margin-left: 20px; */
  display: flex;
  gap: 20px;
  flex-direction: row;
  justify-content: left;
  padding: 20px;
  box-shadow: rgb(94, 43, 141) 0px 0px 15px -5px;
  border-radius: 20px;
}

.profile-about{
  margin-top: 20px;
  border-bottom: 1px solid var(--border-subtle-dark);
}

.profile-about p{
  margin-top: 10px;
  line-height: var(--lh-body);
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.specs-grid{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2em;
  font-family: var(--font-mono);
  margin-top: 1rem;
  font-size: clamp(0.3rem, 2vw, 0.9rem);
}

.spec-label{
  color: var(--text-soft);   
  text-transform: uppercase;
  font-size: clamp(0.7rem, 2vw, 0.75rem);
  font-weight: 500;
} 

.spec-val{
  font-size: clamp(0.9rem, 2vw, 1rem);
}


/* ============================================================================
  FOOTER
  ============================================================================ */

/* Footer layout and styling */
footer {
  text-align: center;
  padding: 1rem min(8vw, 5rem);
  font-size: 0.875rem;
  color: var(--text-soft);
}

/* Footer logo image styling */
.logo-img-footer {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  vertical-align: middle;
}


/* ============================================================================
  MEDIA QUERIES
  ============================================================================ */

@media (max-width: 600px) {
  .profile-img{
    width: 40px;
    height: 40px;
  }
  .identity-card{
    padding: 20px;
  }
}