: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;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08);
  /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08);
  /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08);
  /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08);
  /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08);
  /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08);
  /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08);
  /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08);
  /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* 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;
  --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 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);
    --navbar-gradient: linear-gradient(90deg, #0a1931 0%, #185ADB 100%);
    /* Navy to bright blue */
    --navbar-bg: #0a1931;
    /* Fallback solid navy */
    --navbar-shadow: 0 2px 16px rgba(20, 40, 80, 0.11);
    --color-surface: 10, 25, 49;
    /* For rgba fallback */
    --color-border: #243355;
    --color-text: #ffffff;
    --color-text-secondary: #d0e2ff;
    --color-primary: #13e5b1;
  }
}

/* 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.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);
  --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-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Enhanced Mobile Overflow Control */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

*:not(html):not(body) {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

@media screen and (max-device-width: 768px) {
  .container {
    max-width: 100vw !important;
    margin: 0 auto;
    padding: 0 12px;
  }

  .hero,
  .about,
  .skills,
  .projects,
  .contact {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* 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;
}

*,
*::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;
}

.resume {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  /* Space between text and button */
  /* Space below container if needed */
}

.resume-t {
  color: #e63946;
  /* Vivid red */
  font-size: 0.75rem;
  /* Smaller font size */
  font-weight: 600;

  letter-spacing: 0.05em;
}

.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;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* 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);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.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 */
/* Additional custom styles for the portfolio */

/* Navigation Styles */


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Permanent navy blue gradient */
  background: linear-gradient(90deg, #12284d 0%, #185adb 100%);
  border-bottom: 1px solid #185adb;
  box-shadow: 0 2px 18px rgba(18, 40, 77, 0.09);
  z-index: 1000;
  transition: none;
  backdrop-filter: none;
}


.nav-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo a {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(20, 30, 60, 0.12);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-32);
}

.nav-link {
  color: #d0eaff;
  /* or your chosen secondary color */
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 1.07rem;
  position: relative;
  padding: var(--space-8) 0;
  letter-spacing: 0.01em;
}


.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: var(--space-4);
}

.bar {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: var(--radius-full);
}



/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px var(--space-16) var(--space-32);
  background-image: url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><circle cx="30" cy="30" r="2"/></g></svg>');
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-xl);
  width: 100%;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hero-title {
  font-family: 'Geist', 'Inter', 'FKGroteskNeue', Arial, sans-serif;
  /* Modern, clean font stack */
  font-size: clamp(3rem, 7vw, 5rem);
  /* Larger, more impactful */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-16);
  color: var(--color-white);
  /* Brighter foreground */
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.hero-title .highlight {
  background: linear-gradient(90deg, rgb(0, 0, 0));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 0.01em;
}


.hero-subtitle {
  font-family: 'Geist', 'Inter', Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #102118;
  font-weight: 600;
  margin-bottom: var(--space-24);
  height: auto;
  text-shadow: 0 2px 12px rgb(203, 35, 35);
}

.hero-description {
  /* Typography */
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.375rem;
  /* Slightly larger for readability */
  font-weight: 500;
  /* Medium weight for better legibility */
  letter-spacing: 0.5px;
  /* Slight tracking for clarity */
  line-height: 1.8;

  /* Color & Contrast */
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.20),
    /* Stronger base shadow */
    0 2px 8px rgba(0, 0, 0, 0.15);

  /* Background overlay for improved contrast */
  position: relative;
  padding: 1rem;
  max-width: 640px;
  margin-bottom: var(--space-32);
}

.hero-description::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  /* Dark overlay behind text */
  border-radius: 8px;
  z-index: -1;
}

/* Subtle entrance animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.hero-description {
  animation: fadeInUp 0.8s ease-out both;
}

/* Optional: Highlight effect on key words */
.hero-description strong {
  color: #FFD54F;
  /* Warm accent color */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Optional responsive adjustments */
@media (max-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
    padding: 0.75rem;
    max-width: 90%;
  }
}


.hero-buttons {
  display: flex;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.hero-buttons .btn--primary {
  background: linear-gradient(90deg, #32b8c6 0%, #21808d 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(50, 184, 198, 0.12);
  border: none;
}

.hero-buttons .btn--primary:hover {
  background: linear-gradient(90deg, #21808d 0%, #32b8c6 100%);
  box-shadow: 0 4px 24px rgba(50, 184, 198, 0.18);
}

.hero-buttons .btn--outline {
  border: 2px solid #32b8c6;
  color: #000000;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

.hero-buttons .btn--outline:hover {
  background: #32b8c6;
  color: #fff;
}

.social-links {
  display: flex;
  gap: var(--space-16);
}

.social-link-git {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #000000;
  /* Solid black background */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all var(--duration-normal) var(--ease-standard);
}

.social-link-linkedin {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #0077b5;
  /* LinkedIn brand blue */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all var(--duration-normal) var(--ease-standard);
}


.social-link-email {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #D44638;
  /* Gmail red */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all var(--duration-normal) var(--ease-standard);
}

.social-link:hover {
  background: #32b8c6;
  color: #fff;
  transform: scale(1.08) translateY(-2px);
}

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

.hero-avatar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center children (avatar & technology) horizontally */
  justify-content: center;
  /* (optional) center vertically if parent has height */
  width: 100%;
}

.avatar-placeholder,
.avatar-placeholder img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.technology {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  /* Space below avatar */
  gap: 18px;
  /* Space between quick-stats and tech-stack */
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 18px;
  /* horizontal and vertical gap */
  margin-bottom: 6px;
}

.stat {
  background: linear-gradient(90deg, #21f1e1 0%, #13b6fd 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 26px;
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  /* Stack text vertically */
  align-items: center;
  /* Center the texts horizontally */
  box-shadow:
    0 0 18px 3px #13b6fd80,
    0 2px 16px 0 rgba(33, 241, 225, 0.15);
  margin-bottom: 0;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.stat .full-form {
  font-weight: 400;
  /* lighter font weight */
  font-size: 0.65rem;
  /* smaller font size */
  margin-top: 4px;
  /* space above full form */
  color: rgb(0, 0, 0);
  /* slightly transparent white */
  white-space: nowrap;
  /* keep full form in single line */
}

/* Achievement Cards */
.achievement-card{
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:1px solid rgba(255,255,255,.4);
    border-radius:28px;
    padding: 28px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.12),
        inset 0 1px rgba(255,255,255,.7);

    transition:.35s ease;
}

.achievement-card::before{
    content:"";
    position:absolute;
    inset:0;
    padding:1px;
    border-radius:inherit;

    background:linear-gradient(
        135deg,
        #00F5A0,
        #00D9F5,
        #6C63FF
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite:xor;
    mask-composite:exclude;

    opacity:.4;
}

.achievement-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.achievement-icon{

    width:70px;
    height:70px;

    border-radius:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:32px;

    background:
    linear-gradient(135deg,#00F5A0,#00B8FF);

    color:white;

    box-shadow:
    0 12px 30px rgba(0,212,255,.3);

    margin:auto;
    margin-bottom:18px;
}

.achievement-title{

    font-size:1.4rem;

    font-weight:700;

    margin-bottom:20px;

    text-align:center;

    color:#1F2937;

    position:relative;
}

.achievement-title::after{

    content:"";

    width:45px;
    height:4px;

    background:linear-gradient(
    90deg,
    #00F5A0,
    #00D9F5);

    border-radius:20px;

    display:block;

    margin:12px auto 0;
}

.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.achievement-cards{

    display:grid;

    grid-template-columns:
    repeat(2,minmax(280px,1fr));

    gap:24px;

    max-width:860px;
}
.achievement-list li {
  font-size: 0.88rem;
  color: #2d3436;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(50, 184, 198, 0.08), rgba(19, 229, 177, 0.08));
  border-radius: 10px;
  border-left: 3px solid #13e5b1;
  font-weight: 500;
  line-height: 1.5;
}

/* Download Apps Section */
.download-apps {
  width: 100%;
  margin-top: 16px;
}

.download-apps-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

.download-app-card-single {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
}

.download-app-card-single::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #13e5b1, #18a2ff, #13e5b1);
}

.download-app-card-single:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 18px 48px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.download-app-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-app-divider {
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(26, 128, 141, 0.3), transparent);
}

.download-app-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

.download-app-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.download-app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.download-app-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

.download-app-desc {
  font-size: 0.95rem;
  color: #4a5568;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.download-app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.download-app-tag {
  background: linear-gradient(90deg, #13e5b1 0%, #18a2ff 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(19, 229, 177, 0.15);
  transition: background 0.18s, transform 0.18s;
}

.download-app-tag:hover {
  background: linear-gradient(90deg, #18a2ff 0%, #13e5b1 100%);
  transform: scale(1.05);
}

.download-app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-app-features li {
  font-size: 0.75rem;
  color: #2d3748;
  padding: 7px 12px;
  background: linear-gradient(135deg, rgba(19, 229, 177, 0.1), rgba(24, 162, 255, 0.1));
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.download-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 18px;
  background: linear-gradient(135deg, #13e5b1 0%, #18a2ff 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(19, 229, 177, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.download-app-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(19, 229, 177, 0.5);
  background: linear-gradient(135deg, #18a2ff 0%, #13e5b1 100%);
}

/* Responsive for Mobile */
@media screen and (max-device-width: 820px) {
  .download-app-card-single {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .download-app-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(26, 128, 141, 0.3), transparent);
  }

  .download-app-icon-img {
    width: 40px;
    height: 40px;
  }
}

.tech-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
@media(max-width:900px){

.achievement-cards{

grid-template-columns:1fr;

}

}
.tech-icon {
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 10px 0 rgba(50, 200, 170, 0.065);
  object-fit: contain;
  transition: transform 0.14s;
}

.tech-icon:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 18px rgba(19, 229, 177, 0.17);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media screen and (max-device-width: 820px) {
  .hero {
    padding: 48px var(--space-8) var(--space-16);
    min-height: auto;
  }

  .hero-content {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }

  .hero-visual {
    margin-top: 16px;
    justify-content: center;
  }

  .hero-avatar,
  .technology {
    width: 100%;
    align-items: center;
  }

  .avatar-placeholder,
  .avatar-placeholder img {
    width: 160px;
    height: 160px;
  }

  .achievement-cards {
    grid-template-columns: 1fr;
  }
}

/* Fix 1: Add horizontal overflow control */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix 2: Improve container responsiveness for mobile desktop view */
@media screen and (max-device-width: 768px) {
  .container {
    max-width: 95vw !important;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Fix 3: Fix hero section for mobile desktop view */
@media screen and (max-device-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
  }
}

/* Fix 4: Fix grid layouts for mobile desktop view */
@media screen and (max-device-width: 768px) {

  .about-content,
  .contact-content {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Fix 5: Navigation improvements for mobile desktop */
@media screen and (max-device-width: 768px) {
  .nav-container {
    padding: 0 8px;
  }

  .nav-menu {
    font-size: 0.9rem;
    gap: 16px;
  }
}


/* Section Styles */
section {
  padding: var(--space-32) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-32);
  font-size: var(--font-size-3xl);
  position: relative;
  font-weight: 700;
  /* Make the title bold */
  color: var(--color-primary);
  /* Use your primary color for visibility */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  /* Subtle shadow for legibility */
  letter-spacing: 1px;
  /* Slight spacing for readability */
}

.section-title-project {
  text-align: center;
  margin-bottom: var(--space-32);
  font-size: var(--font-size-3xl);
  position: relative;
  font-weight: 700;
  color: #000000;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* About Section */
.about {
  background-image: url('images/about_bg.png');
  background-size: cover;
  background-position: center;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-32);
  align-items: start;
}

.about-text p {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  margin: var(--space-24) 0;
}

.about-item h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
}

.about-item p {
  font-size: var(--font-size-base);
  line-height: 1.5;
}

.about-actions {
  display: flex;
  gap: var(--space-16);
  margin-top: var(--space-24);
}

.about-card {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.about-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-card li {
  padding: var(--space-8) 0;
  color: var(--color-text-secondary);
  position: relative;
  padding-left: var(--space-20);
}

.about-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.allsection {
  background-image: url('images/skills_bg.png');
  background-size: cover;
  background-position: center;
}

/* Skills Section */
/* .skills {
  background-image: url('./images/skills_bg.png');
} */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  /* Increased min width from 280px */
  gap: 40px;
  /* Increased grid gap for more breathing space */
}

.skill-category {
  background: #ffffff;
  /* Standard navy blue for high readability */
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid #183959;
  /* Subtle navy border */
  box-shadow: 0 4px 18px rgba(10, 35, 57, 0.16);
  /* Gentle shadow for depth */
  transition: transform var(--duration-normal) var(--ease-standard);
}


.skill-category:hover {
  transform: translateY(-4px);
}

.skill-category h3 {
  color: var(--color-primary);
  margin-bottom: 32px;
  /* Increased margin below section title */
  text-align: center;
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(2, auto);
  /* Exactly two badges per row */
  gap: 18px 24px;
  /* vertical and horizontal gap */
  justify-content: center;
  align-items: center;
}

.skill-item {
  background: linear-gradient(90deg, #13e5b1 0%, #18a2ff 100%);
  color: #fff;
  padding: 14px 26px;
  border-radius: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 14px rgba(19, 229, 177, 0.12);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

@media screen and (max-device-width: 600px) {
  .skill-items {
    grid-template-columns: 1fr;
    /* Stack single column on smaller screens */
  }
}


.skill-item:hover {
  background: linear-gradient(90deg, #18a2ff 0%, #13e5b1 100%);
  color: #fff;
  transform: scale(1.05);
}



/* Projects Section */
/* .projects {
  background-image: url('./images/projects_bg.png');
} */

.projects-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-24);
}

.project-card {
  background: #0a1931;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  transition: all var(--duration-normal) var(--ease-standard);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg-3);
}

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

.project-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.tech-tag {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.project-links {
  display: flex;
  gap: var(--space-12);
}

.project-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: color var(--duration-fast) var(--ease-standard);
}

.project-link:hover {
  color: var(--color-primary-hover);
}

/* Contact Section */
/* .contact {
  background-image: url('./images/contact_bg.png');
  background-size: cover;
  background-position: center;
} */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
}

.getin-touch {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #2c0fe7;
  /* Vibrant aqua blue */
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 24px;
  position: relative;
  text-shadow: 0 2px 18px rgba(0, 194, 215, 0.18),
    /* Gentle aqua glow */
    0 1px 4px rgba(0, 0, 0, 0.10);
  /* Soft drop shadow */
}

.getin-touch::after {
  content: '';
  display: block;
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, #6510de 60%, #651acd 100%);
  margin: 12px auto 0 auto;
  border-radius: 3px;
  position: static;
  transition: background 0.3s;
}

.getin-touch:hover {
  color: #8528d0;
  /* Green accent on hover */
  text-shadow: 0 2px 24px rgba(41, 160, 128, 0.22),
    0 1px 4px rgba(0, 0, 0, 0.12);
}

.getin-touch:hover::after {
  background: linear-gradient(90deg, #29a080 40%, #00c2d7 100%);
}

.lets-connect {
  background: rgba(255, 255, 255, 0.18);
  /* Transparent white background */
  border-radius: 20px;
  /* Soft rounded corners */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
  backdrop-filter: blur(8px);
  /* Glassmorphism blur */
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  /* Subtle border */
  padding: 32px 36px;
  /* Spacious padding */
  max-width: 420px;
  margin: 16px auto;
  transition: box-shadow 0.2s, transform 0.2s;
}

.lets-connect:hover {
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.37);
  transform: translateY(-4px) scale(1.02);
  /* Pop effect on hover */
}

.lets-connect h3 {
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  /* Black heading */
  letter-spacing: 0.5px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.lets-connect p {
  color: #222;
  /* Dark text for paragraphs */
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 18px;
}

.lets-connect .social-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.lets-connect .social-link {
  display: inline-flex;
  align-items: center;
  padding: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.09);
  /* Translucent social icon bg */
  color: #222;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.10);
}

.lets-connect .social-link:hover {
  background: rgba(0, 194, 215, 0.25);
  /* Highlight on hover */
  transform: scale(1.12);
  color: #00c2d7;
  /* Accent color on hover */
}





/* Contact Form Main Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  /* Spacious for side-by-side fields */
  width: 100%;
  background: #0a2e3e;
  /* Deep navy for strong contrast */
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
  margin: 38px auto;
  /* Centers the form horizontally */
}

/* Inline Name & Email Fields */
.form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Space between Name and Email fields */
  margin-bottom: 20px;
}

.form-row label {
  flex: 0 0 55px;
  /* Fixed width for label */
  font-weight: 600;
  margin-bottom: 0;
  color: #e0f7fa;
  font-size: 1rem;
}

.form-row input {
  flex: 1 1 240px;
  /* Min width for input, expands as needed */
  padding: 10px 15px;
  border-radius: 6px;
  border: 1.5px solid #13e5b1;
  background: #07232e;
  color: #e0f7fa;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-row input:focus {
  outline: none;
  border-color: #32f7d7;
  box-shadow: 0 0 8px 2px #32f7d7aa;
  background: #0a3747;
  color: #f0fcfc;
}

/* Message Field Styles */
.contact-form label[for="message"] {
  margin-bottom: 8px;
  font-weight: 600;
  color: #e0f7fa;
  font-size: 1rem;
}

.contact-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 15px;
  border: 1.5px solid #13e5b1;
  border-radius: 6px;
  background: #07232e;
  color: #e0f7fa;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.contact-form textarea:focus {
  outline: none;
  border-color: #32f7d7;
  box-shadow: 0 0 8px 2px #32f7d7aa;
  background: #0a3747;
  color: #f0fcfc;
}

/* Send Button Styles */
.contact-form button {
  align-self: flex-start;
  background: linear-gradient(90deg, #13e5b1 0%, #19f8ff 100%);
  color: #002822;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(19, 229, 177, 0.45);
}

.contact-form button:hover,
.contact-form button:focus {
  background: linear-gradient(90deg, #0fcdab 0%, #24f6ff 100%);
  color: #001f1a;
  box-shadow: 0 6px 20px rgba(15, 205, 171, 0.75);
}

/* Hide honeypot for bots only */
.contact-form .hidden {
  display: none;
}

/* Responsive - Stacks fields on small screens */
@media screen and (max-device-width: 650px) {
  .contact-form {
    max-width: 98vw;
    padding: 18px;
  }

  .form-row {
    flex-direction: column;
    gap: 8px;
  }

  .form-row label,
  .form-row input {
    width: 100%;
    flex: unset;
  }
}


/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--color-text-secondary);
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-standard);
}

.modal-close:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}

#modal-body {
  padding: var(--space-24);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  transition: all var(--duration-normal) var(--ease-standard);
}

.toast.hidden {
  opacity: 0;
  transform: translateX(100%);
}

.toast-content {
  background: var(--color-success);
  color: var(--color-btn-primary-text);
  padding: var(--space-12) var(--space-20);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.toast-icon {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

/* Responsive Design */
@media screen and (max-device-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    text-align: center;
    transition: left var(--duration-normal) var(--ease-standard);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-16) 0;
    gap: var(--space-8);
  }

  .nav-link {
    color: #000000;
    /* black */
  }

  .nav-link:hover {
    color: #333333;
    /* optionally a dark gray for hover/active state */
  }

  .nav-link.active {
    display: block;
    /* makes the link take full width */
    background-color: #e0f7fa;
    /* light highlight background, adjust as needed */
    color: #000000;
    /* keep text black or adjust for contrast */
    padding: 8px 16px;
    /* add vertical and horizontal padding for better highlight */
    border-radius: 6px;
    /* optional rounded corners */
    transition: background-color 0.3s ease;
  }


  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-24);
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .about-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }


}

@media screen and (max-device-width: 480px) {
  .container {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }

  .hero {
    padding: 80px var(--space-12) var(--space-24);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-description {
    font-size: var(--font-size-base);
  }

  .btn {
    padding: var(--space-10) var(--space-16);
    font-size: var(--font-size-sm);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-width: unset;
  }

  .modal-content {
    margin: var(--space-16);
    max-height: 90vh;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Focus States for Accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {

  .navbar,
  .social-links,
  .hero-buttons,
  .contact-form {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-16) 0;
  }
}

.profile-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 4px solid var(--color-primary);
  display: block;
  margin-left: 0;
  margin-top: 0;
  object-position: center top;
  /* Crop from bottom, show top */
}

.hero-content {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

@media screen and (max-device-width: 900px) {
  .profile-img {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    object-position: center top;
    /* Crop from bottom, show top for mobile */
  }
}

.success-modal {
  max-width: 450px;
  text-align: center;
  padding: 40px 32px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(19, 229, 177, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.success-modal h3 {
  color: #13e5b1;
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.success-modal p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.success-modal .btn {
  min-width: 120px;
}

/* Mobile Portrait - Enhanced Control */
@media screen and (max-device-width: 480px) and (orientation: portrait) {
  .container {
    max-width: 100vw !important;
    padding: 0 8px;
  }

  .hero-title {
    font-size: 1.8rem !important;
  }

  .hero-content {
    flex-direction: column !important;
    gap: 20px;
  }

  .avatar-placeholder,
  .avatar-placeholder img {
    width: 120px !important;
    height: 120px !important;
  }

  .skill-items {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Desktop View - Main Fix */
@media screen and (max-device-width: 768px) {

  /* Prevent all horizontal overflow */
  * {
    max-width: 100vw !important;
  }

  .container {
    max-width: 95vw !important;
    padding: 0 8px;
  }

  /* Force single column layouts */
  .about-content,
  .contact-content {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr !important;
  }

  /* Fix hero section */
  .hero-content {
    flex-direction: column !important;
    gap: 24px;
  }

  .hero-description {
    max-width: 100% !important;
  }

  /* Fix forms */
  .form-row {
    flex-direction: column !important;
  }

  .contact-form {
    max-width: 95vw !important;
  }
}

/* Mobile Landscape Desktop View */
@media screen and (max-device-width: 768px) and (orientation: landscape) {
  .hero-content {
    flex-direction: row !important;
    gap: 32px;
  }

  .hero-visual {
    flex: 0 0 35%;
  }

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

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

  .about-content {
    grid-template-columns: 2fr 1fr !important;
  }
}