:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;


  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --svg-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --svg-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-light: var(--svg-caret-light);
  --select-caret-dark: var(--svg-caret-dark);

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: #fff ;
  background: linear-gradient(135deg, var(--color-slate-900) 0, var(--color-charcoal-800) 100%);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}


.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Base Reset and Setup */
/* Removed universal selector reset to avoid box-sizing conflict */

body {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-slate-900) 0, var(--color-charcoal-800) 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(45deg, rgba(255, 115, 0, 0.1) 0%, rgba(255, 149, 0, 0.05) 25%, transparent 50%, rgba(255, 115, 0, 0.05) 75%, rgba(255, 115, 0, 0.1) 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
.header, .about, .skills, .projects, .section, .container, section {
  background: none !important;
  position: relative;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-charcoal-800) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
}

.loading-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 2rem;
  animation: logoSpin 2s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255, 115, 0, 0.6));
}

@keyframes logoSpin {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

.loading-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff7300, #ff9500, #ff7300);
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.3s ease;
  animation: shimmerLoading 1.5s ease-in-out infinite;
  position: relative;
}

.loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: slideShimmer 1s ease-in-out infinite;
}

@keyframes shimmerLoading {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes slideShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

.loading-text {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: #ff7300;
  margin: 1rem 0 0.5rem;
}

.loading-tagline {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  font-style: italic;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Particle Container */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: #ff7300; /* Your accent color */
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
  will-change: transform, opacity;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-20px) rotate(180deg); 
  }
}

/* Matrix Rain Effect (Easter Egg) */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 1s ease;
}

#matrix-canvas.active {
  opacity: 0.8;
}

/* Header Styles */
header {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-charcoal-800) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 115, 0, 0.1) 0%,
    rgba(255, 149, 0, 0.05) 25%,
    transparent 50%,
    rgba(255, 115, 0, 0.05) 75%,
    rgba(255, 115, 0, 0.1) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--space-20);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-16) var(--space-32);
  background: rgba(19, 52, 59, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 115, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(19, 52, 59, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  opacity: 0;
  animation: logoEntrance 1.5s ease-out 0.5s forwards;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    filter: drop-shadow(0 0 0px #ff7300);
  }
  60% {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 30px #ff7300);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 10px #ff7300);
  }
}

.logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px #ff7300);
}

.logo.pulse {
  animation: logoPulse 0.6s ease-in-out;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(10deg); }
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-32);
}

nav ul li a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  position: relative;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ff7300;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 80%;
}

nav ul li a.active {
  color: #ff7300;
  background: rgba(255, 115, 0, 0.1);
}

/* Hero Text */
.header-text {
  margin-top: 120px;
}

.header-text h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: var(--font-weight-bold);
  margin: var(--space-16) 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.name-highlight {
  color: #ff7300;
  text-shadow: 0 0 30px rgba(255, 115, 0, 0.5);
  display: inline-block;
  transition: all 0.3s ease;
}

.name-highlight:hover {
  transform: scale(1.05);
  text-shadow: 0 0 40px rgba(255, 115, 0, 0.8);
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* Typing Animation */
.typing {
  font-size: var(--font-size-2xl);
  color: #ff7300;
  border-right: 3px solid #ff7300;
  white-space: nowrap;
  display: inline-block;
  padding-right: 4px;
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
.section {
  padding: var(--space-32) 0;
  position: relative;
  background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-orange-500) 60%, var(--color-black) 100%);
  transition: background 0.6s ease;
}

.section h2 {
  font-size: var(--font-size-4xl);
  text-align: center;
  margin-bottom: var(--space-32);
  color: #ff7300;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff7300, transparent);
  transform: translateX(-50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-20);
}

/* About Section */


.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: center;
}

/* Stats Counter Section */
.stats {
  background: linear-gradient(135deg, rgba(255, 115, 0, 0.05) 0%, rgba(255, 149, 0, 0.02) 100%);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 115, 0, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 115, 0, 0.15), transparent);
  transition: left 0.6s ease;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 115, 0, 0.4), rgba(255, 149, 0, 0.4), rgba(255, 183, 0, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 115, 0, 0.4);
  box-shadow: 0 20px 60px rgba(255, 115, 0, 0.3),
              0 0 40px rgba(255, 115, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: #ff7300;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.stat-suffix {
  font-size: 2rem;
  color: #ff7300;
  font-weight: var(--font-weight-bold);
  display: inline-block;
  margin-left: 0.2rem;
}

.stat-label {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.floating-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 115, 0, 0.3);
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s ease;
  max-width: 450px; /* Only for desktop, override on mobile! */
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 30px rgba(255, 115, 0, 0.3);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 115, 0, 0.5);
  }
}

.about-col-2 p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  margin-bottom: var(--space-20);
  color: var(--color-text-secondary);
  text-align: left;
}

/* Button Styles with Ripple Effect */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  will-change: transform;
}
.btn-container {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ff7300, #ff9500);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 115, 0, 0.4);
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 115, 0, 0.6);
}

/* Ripple Effect */
.ripple-btn {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Download CV Button Animation */
#download-cv {
  animation: bounceGlow 3s ease-in-out infinite;
}

@keyframes bounceGlow {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 115, 0, 0.4);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 115, 0, 0.7);
  }
}

/* Skills Section */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 115, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 115, 0, 0.12);
  border-color: rgba(255, 115, 0, 0.2);
}

.skill-group-title {
  font-size: 1.25rem;
  color: #ff7300;
  margin: 0 0 1rem 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #ff7300, #ff9500);
  border-radius: 2px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 115, 0, 0.08);
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 115, 0, 0.12);
  transition: all 0.2s ease;
  cursor: default;
  position: relative;
}

.skill-tag.has-tooltip {
  cursor: pointer;
}

.skill-tag:hover {
  background: rgba(255, 115, 0, 0.15);
  border-color: rgba(255, 115, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 115, 0, 0.15);
}

/* Skill Tag Tooltip */
.skill-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff7300 0%, #ff9500 100%);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(255, 115, 0, 0.4);
}

.skill-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ff9500;
}

.skill-tag:hover .skill-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.skill-progress.animate {
  transform: scaleX(1);
}

/* Projects Section */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-32);
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  will-change: transform;
  border: 1px solid rgba(255, 115, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255, 115, 0, 0.4),
              0 0 40px rgba(255, 115, 0, 0.3),
              inset 0 0 20px rgba(255, 115, 0, 0.1);
  border-color: rgba(255, 115, 0, 0.5);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 115, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 115, 0, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover::after {
  opacity: 1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-project-btn {
  background: #ff7300;
  color: white;
  border: none;
  padding: var(--space-10) var(--space-20);
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.project-card:hover .view-project-btn {
  transform: translateY(0);
}

.view-project-btn:hover {
  background: #ff9500;
  transform: scale(1.05);
}

.project-content {
  padding: var(--space-20);
}

.project-content h3 {
  font-size: var(--font-size-xl);
  color: #ff7300;
  margin-bottom: var(--space-12);
}

.project-content p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

.tech-icons {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 115, 0, 0.15);
  border-radius: var(--radius-md);
  font-size: 22px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 2px solid rgba(255, 115, 0, 0.2);
  box-shadow: 0 2px 8px rgba(255, 115, 0, 0.1);
}

.tech-icon::before {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(255, 115, 0, 0.95);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-base);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: var(--font-family-base);
  z-index: 10;
}

.tech-icon::after {
  content: '';
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  border: 6px solid transparent;
  border-top-color: rgba(255, 115, 0, 0.95);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.tech-icon:hover::before,
.tech-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.tech-icon:hover {
  transform: scale(1.25) rotate(5deg);
  background: linear-gradient(135deg, #ff7300, #ff9500);
  border-color: #ff9500;
  box-shadow: 0 6px 20px rgba(255, 115, 0, 0.5),
              0 0 15px rgba(255, 115, 0, 0.3);
}

/* Contact Section */
.contact {
  background: linear-gradient(120deg, var(--color-background) 0%, var(--color-charcoal-800) 100%);
  text-align: center;
  position: relative;
}

.contact p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-32);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.contact-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
}
.btn-contact {
  background: linear-gradient(135deg, var(--color-orange-500), var(--color-orange-400));
  color: white;
}
.btn-linkedin {
  background: linear-gradient(135deg, #0077b5, #004182);
  color: white;
}
.btn-github {
  background: linear-gradient(135deg, #24292e, #3d444d);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-github:hover {
  background: linear-gradient(135deg, #3d444d, #4a5259);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-github:disabled {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-github:disabled:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #6b7280, #4b5563);
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-live-demo {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}
.btn-live-demo:hover {
  background: linear-gradient(135deg, #059669, #047857);
}
.btn-live-demo:disabled {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-live-demo:disabled:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.modal-github-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.btn {
  border: none;
  border-radius: var(--radius-full);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.btn:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}


/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 900px;
  max-height: 80vh;
  width: 90%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text);
  cursor: pointer;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 115, 0, 0.2);
  color: #ff7300;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  padding: var(--space-24);
  overflow-y: auto;
  max-height: 80vh;
}

.modal-image img {
  width: 100%;
  border-radius: var(--radius-base);
}

.modal-info h3 {
  font-size: var(--font-size-3xl);
  color: #ff7300;
  margin-bottom: var(--space-16);
}

.modal-info p {
  line-height: 1.7;
  margin-bottom: var(--space-20);
  color: var(--color-text-secondary);
}

.project-details {
  margin-bottom: var(--space-20);
}

.detail-item {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  align-items: center;
}

.detail-item strong {
  color: var(--color-text);
  min-width: 80px;
}

.detail-item span {
  color: var(--color-text-secondary);
}

.modal-tech-stack h4,
.modal-features h4 {
  color: #ff7300;
  margin-bottom: var(--space-12);
  font-size: var(--font-size-lg);
}

#modal-tech-icons {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-20);
}

#modal-features-list {
  list-style: none;
  margin-bottom: var(--space-20);
}

#modal-features-list li {
  padding: var(--space-6) 0;
  color: var(--color-text-secondary);
  position: relative;
  padding-left: var(--space-20);
}

#modal-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ff7300;
  font-weight: bold;
}

.modal-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.modal-actions .btn {
  min-width: 140px;
}

.demo-status-message {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-top: var(--space-8);
  text-align: center;
  padding: var(--space-8);
  background: rgba(255, 115, 0, 0.05);
  border-radius: var(--radius-base);
  border: 1px dashed rgba(255, 115, 0, 0.2);
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: var(--space-24);
  right: var(--space-24);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff7300, #ff9500);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 115, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#scrollTopBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 115, 0, 0.6);
}

/* Footer */
footer {
  background: var(--color-charcoal-800);
  text-align: center;
  padding: var(--space-24) 0;
  border-top: 1px solid rgba(255, 115, 0, 0.2);
}

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

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in.animate {
  opacity: 1;
}

/* Rainbow Mode (Easter Egg) */
.rainbow-mode {
  animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Party Mode (Easter Egg) */
.party-mode {
  animation: party 0.5s ease-in-out infinite alternate;
}

@keyframes party {
  0% { transform: rotate(-2deg) scale(0.98); }
  100% { transform: rotate(2deg) scale(1.02); }
}

/* Skeleton Loading Screens */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Skeleton for project cards */
.project-card.skeleton {
  pointer-events: none;
}

.project-card.skeleton .project-image {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  height: 200px;
}

.project-card.skeleton .project-image img {
  display: none;
}

.project-card.skeleton .project-content h3,
.project-card.skeleton .project-content p,
.project-card.skeleton .tech-icons {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  color: transparent;
  border-radius: 4px;
}

.project-card.skeleton .project-content h3 {
  height: 24px;
  margin-bottom: 12px;
}

.project-card.skeleton .project-content p {
  height: 60px;
  margin-bottom: 16px;
}

.project-card.skeleton .tech-icons {
  height: 44px;
}

/* Skeleton for modal content */
.modal-body.skeleton .modal-image,
.modal-body.skeleton .modal-info h3,
.modal-body.skeleton .modal-info p,
.modal-body.skeleton .project-details,
.modal-body.skeleton .modal-tech-stack,
.modal-body.skeleton .modal-features {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  border-radius: 8px;
  color: transparent;
}

.modal-body.skeleton .modal-image {
  height: 300px;
}

.modal-body.skeleton .modal-info h3 {
  height: 32px;
  margin-bottom: 16px;
}

.modal-body.skeleton .modal-info p {
  height: 80px;
  margin-bottom: 16px;
}

.modal-body.skeleton .project-details {
  height: 60px;
  margin-bottom: 16px;
}

.modal-body.skeleton .modal-tech-stack {
  height: 80px;
  margin-bottom: 16px;
}

.modal-body.skeleton .modal-features {
  height: 120px;
}

/* Skeleton for skill bars */
.skill-item.skeleton .skill-info,
.skill-item.skeleton .skill-bar {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skill-item.skeleton .skill-info {
  height: 20px;
  margin-bottom: 8px;
}

.skill-item.skeleton .skill-bar {
  height: 8px;
}

/* Skeleton text variations */
.skeleton-text {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  border-radius: 4px;
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-text.skeleton-title {
  height: 2em;
  width: 60%;
}

.skeleton-text.skeleton-paragraph {
  height: 1em;
}

.skeleton-text.skeleton-paragraph:last-child {
  width: 80%;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-text h1 {
    font-size: clamp(2rem, 6vw, 4rem);
  }
  .row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-16);
  }
  .floating-photo {
    max-width: 80vw;
    margin: 0 auto 18px auto;
  }
  .floating-photo img {
    max-width: 80vw;
  }
  .typing {
    font-size: var(--font-size-lg);
  }
  nav ul,
  nav li,
  nav .nav-link,
  nav .header-tex, /* If there are any other navbar elements */
  nav .container { 
    display: none !important;
  }
  nav {
    justify-content: center !important;
    padding: 18px 0 !important;
  }
  .logo {
    margin: 0 auto !important;
    display: block !important;
    position: relative !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
    padding: var(--space-16);
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .section {
    padding: var(--space-24) 0;
  }
  
  .container {
    padding: 0 var(--space-16);
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 var(--space-16);
  }
  
  .section h2 {
    font-size: var(--font-size-3xl);
  }
  
  nav ul {
    font-size: var(--font-size-sm);
  }
  
  .btn {
    padding: var(--space-10) var(--space-16);
    font-size: var(--font-size-base);
  }
  .floating-photo {
    max-width: 95vw;
    margin: 0 auto 12px auto;
  }
  .floating-photo {
    max-width: 95vw;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .project-card::before {
    opacity: 0;
  }
  
  .btn-primary {
    border: 2px solid #ff7300;
  }
  
  .skill-progress {
    background: #ff7300;
  }
}
/* Print styles */
@media print {
  #particles-container,
  #matrix-canvas,
  .easter-egg-corner,
  #scrollTopBtn,
  .developer-panel,
  .modal {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .section {
    break-inside: avoid;
  }
}