
:root {
  /* Colors */
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(98, 108, 113, 1);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);
  --color-select-caret: rgba(19, 52, 59, 0.8);
/* Replace old color variables with new modern palette */
--primary-color: #6366f1;
--secondary-color: #ec4899;
--accent-color: #06b6d4;
--bg-primary: #0f172a;
--bg-secondary: #1e293b;

  /* 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;
    --logo-size: 1.25rem;

}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: rgba(31, 33, 33, 1);
    --color-surface: rgba(38, 40, 40, 1);
    --color-text: rgba(245, 245, 245, 1);
    --color-text-secondary: rgba(167, 169, 169, 0.7);
    --color-primary: rgba(50, 184, 198, 1);
    --color-primary-hover: rgba(45, 166, 178, 1);
    --color-primary-active: rgba(41, 150, 161, 1);
    --color-secondary: rgba(119, 124, 124, 0.15);
    --color-secondary-hover: rgba(119, 124, 124, 0.25);
    --color-secondary-active: rgba(119, 124, 124, 0.3);
    --color-border: rgba(119, 124, 124, 0.3);
    --color-error: rgba(255, 84, 89, 1);
    --color-success: rgba(50, 184, 198, 1);
    --color-warning: rgba(230, 129, 97, 1);
    --color-info: rgba(167, 169, 169, 1);
    --color-focus-ring: rgba(50, 184, 198, 0.4);
    --color-btn-primary-text: rgba(19, 52, 59, 1);
    --color-card-border: rgba(119, 124, 124, 0.2);
    --color-card-border-inner: rgba(119, 124, 124, 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(119, 124, 124, 0.2);
    --color-border-secondary: rgba(119, 124, 124, 0.2);
    --color-select-caret: rgba(245, 245, 245, 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: 50, 184, 198;
    --color-error-rgb: 255, 84, 89;
    --color-warning-rgb: 230, 129, 97;
    --color-info-rgb: 167, 169, 169;
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  --color-background: rgba(31, 33, 33, 1);
  --color-surface: rgba(38, 40, 40, 1);
  --color-text: rgba(245, 245, 245, 1);
  --color-text-secondary: rgba(167, 169, 169, 0.7);
  --color-primary: rgba(50, 184, 198, 1);
  --color-primary-hover: rgba(45, 166, 178, 1);
  --color-primary-active: rgba(41, 150, 161, 1);
  --color-secondary: rgba(119, 124, 124, 0.15);
  --color-secondary-hover: rgba(119, 124, 124, 0.25);
  --color-secondary-active: rgba(119, 124, 124, 0.3);
  --color-border: rgba(119, 124, 124, 0.3);
  --color-error: rgba(255, 84, 89, 1);
  --color-success: rgba(50, 184, 198, 1);
  --color-warning: rgba(230, 129, 97, 1);
  --color-info: rgba(167, 169, 169, 1);
  --color-focus-ring: rgba(50, 184, 198, 0.4);
  --color-btn-primary-text: rgba(19, 52, 59, 1);
  --color-card-border: rgba(119, 124, 124, 0.15);
  --color-card-border-inner: rgba(119, 124, 124, 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(119, 124, 124, 0.2);
  --color-select-caret: rgba(245, 245, 245, 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: 50, 184, 198;
  --color-error-rgb: 255, 84, 89;
  --color-warning-rgb: 230, 129, 97;
  --color-info-rgb: 167, 169, 169;
}

[data-color-scheme="light"] {
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(98, 108, 113, 1);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-background);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background-color var(--duration-normal) var(--ease-standard);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  /* display: none; */
}

.nav-link {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--ease-standard);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-secondary);
  /* display: flex;
  flex-direction: column; */
}


/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
}

.hero h1 {
  font-size: clamp(var(--font-size-3xl), 5vw, 60px);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-bold);
}

.hero h2 {
  font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-xl));
  color: var(--color-text-secondary);
  margin-bottom: var(--space-32);
  line-height: var(--line-height-normal);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: var(--space-32);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  position: relative;
}

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

/* Stats Grid */
.stats {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
}

.stat-card h3 {
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.stat-card p {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  margin: 0;
}

/* Education Timeline */
.education-section {
  background-color: var(--color-surface);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-32);
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: var(--space-24);
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: var(--space-24);
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  border: 3px solid var(--color-surface);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -6px;
}

.timeline-item:nth-child(even)::before {
  left: -6px;
}

.timeline-content {
  transition: transform var(--duration-normal) var(--ease-standard);
}

.timeline-content:hover {
  transform: translateY(-4px);
}
/* testimonial section */
.testimonial-card {display:none;opacity:0;transition:opacity 0.5s;}
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}
.testimonial-card {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: center;
  padding: 1.5rem;
}
.testimonial-card.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.testimonial-card span {
  font-weight: bold;
  color: #555;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  border-radius: 50%;
  transition: background 0.3s;
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
}
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }
@media (max-width: 600px) {
  .testimonial-card p { font-size: 1rem; }
}


/* faqs section  */
/* =========================
   FAQ SECTION - PREMIUM STYLE
   ========================= */

#faq {
  position: relative;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Question Button */
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

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

/* Add arrow indicator */
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

/* When open */
.faq-question.active::after {
  content: "–";
}

/* Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  background: var(--color-background);
  color: var(--color-text-secondary);
  transition: all 0.4s ease;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Open State */
.faq-answer.open {
  max-height: 200px;
  padding: 16px 22px 20px 22px;
}

/* reading list section */
.book-status {display:inline-block;background:#d7ffd9;color:#388e3c;padding:2px 8px;border-radius:10px;font-size:0.85em;}

/* Skills Section */
.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
}

.skill-category {
  transition: transform var(--duration-normal) var(--ease-standard);
}

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

.progress-bar-wrapper {
  width: 100%;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: var(--radius-full);
  transition: width 2s var(--ease-standard);
}

/* Projects Section */
.projects-section {
  background-color: var(--color-surface);
}

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

.project-card {
  transition: all var(--duration-normal) var(--ease-standard);
  cursor: pointer;
}

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

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

/* Achievements */
.achievements-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.achievement-item {
  display: block;
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-medium);
}
/* resources section  */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.resources-section .card {
  /* background-color: var(--card-bg, #f9f9f9); */
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resources-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.resources-section .card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.resources-section .card p {
  font-size: 0.95rem;
  /* color: #555; */
  margin-bottom: 1rem;
}

.resources-section .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  background-color: #007bff;
  display: inline-block;
}

.resources-section .btn:hover {
  background-color: #0056b3;
}

/* youtbe section */
.youtube-section .yt-videos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-top: 28px;
}
.yt-video-card {
  width: 31%;
  min-width: 260px;
  background: #161927;
  border-radius: 14px;
  box-shadow: 0 2px 10px #0002;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .16s;
}
.yt-video-card:hover { transform: scale(1.035); }
.yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.yt-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.yt-play-btn {
  position: absolute; bottom: 10px; right: 10px;
  background: #ff3333cc; color: #fff; border-radius: 50%;
  width: 44px; height: 44px; font-size: 22px;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 2px 6px #0007; pointer-events:none;
}
.yt-title {
  padding: 12px 14px 10px 14px;
  font-size: 1.02em;
  font-weight: 500;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.yt-title a { color: #00d4ff; text-decoration: none; }
.yt-channel-btn { text-align:center; margin-top: 20px; }

/* Responsive: 3 per row desktop, 2 per tablet, 1 per mobile */
@media (max-width: 900px) {
  .yt-video-card { width: 46%; }
}
@media (max-width: 600px) {
  .youtube-section .yt-videos-grid { gap:15px; }
  .yt-video-card { width: 97%; min-width: 0; }
  .yt-title { font-size: 1em; padding: 10px 8px 8px 8px; }
}
/* quran section */
.moving-widget {
  width: 320px;  /* lower width */
  margin: 14px auto;
  padding: 16px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dde9f7 0%, #f7faff 100%);
  box-shadow: 0 8px 24px rgba(42, 56, 84, 0.18);
  text-align: center;
  border: 1.5px solid #aac7f4;

  /* Animation for the whole box */
  overflow: hidden;
  position: relative;
  animation: moveWidget 30s linear infinite;
}

@keyframes moveWidget {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-350px); }
}

/* Styling the Ayah text */
.ayah-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  font-weight: 700;
  direction: rtl;
  color: #1a2a6c;
  margin-bottom: 8px;
  text-shadow: 0 1px 8px rgba(26, 42, 108, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Translation text */
.ayah-translation {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #2e7d32;
  font-style: italic;
  margin-bottom: 4px;
}

/* Meta info (Surah and ayah) */
.ayah-meta {
  font-size: 0.87rem;
  color: #558b2f;
  opacity: 0.75;
  letter-spacing: 0.03em;
}

/* Responsive tweak */
@media (max-width: 360px) {
  .moving-widget {
    width: 90vw;
    animation-duration: 35s;
  }
}

/* chatbot section hai*/
/* Portfolio Chatbot Styles */

/* Floating Chatbot Icon */
.chatbot-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
}

.chatbot-float:hover {
    transform: translateY(-2px);
}

.chatbot-icon {
    position: relative;
    width: 40px;
    height: 40px;
    right:60px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-standard);
}

.chatbot-icon .icon {
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.pulse-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 80px;
    height: 80px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }
    70% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.05);
        opacity: 0;
    }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-error);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    border: 2px solid var(--color-surface);
    animation: badgePulse 1s infinite alternate;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.chatbot-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--color-charcoal-800);
    color: var(--color-text);
    padding: var(--space-8) var(--space-12);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: all var(--duration-fast) var(--ease-standard);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-md);
}

.chatbot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-charcoal-800);
}

.chatbot-float:hover .chatbot-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal.hidden {
    display: none;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

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

.modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    width: 90vw;
    max-width: 480px;
    height: 90vh;
    max-height: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.modal-header {
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-card-border-inner);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-bg-1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-12);
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bot-info h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.bot-status {
    font-size: var(--font-size-sm);
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.bot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    display: inline-block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--space-8);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-standard);
}

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

.modal-close {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: var(--space-8);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-standard);
    line-height: 1;
}

.modal-close:hover {
    background: var(--color-error);
    color: white;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    padding: var(--space-16);
    gap: var(--space-8);
    background: var(--color-background);
    border-bottom: 1px solid var(--color-card-border-inner);
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-8) var(--space-12);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

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

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

.mode-icon {
    font-size: var(--font-size-base);
}

.mode-text {
    display: none;
}

/* Chat Area */
.chat-area {
    flex: 1;
    padding: var(--space-16);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    background: var(--color-background);
}

.chat-area::-webkit-scrollbar {
    width: 6px;
}

.chat-area::-webkit-scrollbar-track {
    background: var(--color-background);
}

.chat-area::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
}

/* Welcome Message */
.welcome-message {
    display: flex;
    gap: var(--space-12);
    padding: var(--space-16);
    background: var(--color-bg-1);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
}

.welcome-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.welcome-content h4 {
    margin: 0 0 var(--space-8) 0;
    color: var(--color-text);
    font-size: var(--font-size-lg);
}

.welcome-content p {
    margin: 0 0 var(--space-12) 0;
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.quick-btn {
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-4) var(--space-12);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
}

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

/* Chat Messages */
.message {
    display: flex;
    margin-bottom: var(--space-12);
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: var(--space-12) var(--space-16);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    word-wrap: break-word;
    position: relative;
}

.message.user .message-bubble {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    border-bottom-right-radius: var(--radius-sm);
}

.message.bot .message-bubble {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-card-border);
    border-bottom-left-radius: var(--radius-sm);
}

.message-time {
    font-size: var(--font-size-xs);
    opacity: 0.7;
    margin-top: var(--space-4);
    text-align: right;
}

.message.bot .message-time {
    text-align: left;
}

/* File Upload Area */
.file-upload {
    padding: var(--space-16);
    background: var(--color-bg-2);
    border-bottom: 1px solid var(--color-card-border-inner);
}

.upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-24);
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
}

.upload-zone:hover {
    border-color: var(--color-primary);
    background: var(--color-secondary);
}

.upload-zone.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    opacity: 0.1;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: var(--space-12);
}

.upload-text strong {
    color: var(--color-text);
    font-size: var(--font-size-lg);
}

.upload-text p {
    margin: var(--space-8) 0;
    color: var(--color-text-secondary);
}

.upload-formats {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Input Area */
.input-area {
    padding: var(--space-16);
    background: var(--color-surface);
    border-top: 1px solid var(--color-card-border-inner);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.typing-dots {
    display: flex;
    gap: var(--space-4);
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--color-text-secondary);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.input-container {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-8);
}

.attach-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--space-8);
    border-radius: 50%;
    transition: all var(--duration-fast) var(--ease-standard);
    flex-shrink: 0;
}

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

.message-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: var(--space-8) var(--space-12);
    font-size: var(--font-size-base);
    color: var(--color-text);
    font-family: var(--font-family-base);
}

.message-input::placeholder {
    color: var(--color-text-secondary);
}

.send-btn {
    background: var(--color-primary);
    border: none;
    color: var(--color-btn-primary-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-standard);
    flex-shrink: 0;
}

.send-btn:hover {
    background: var(--color-primary-hover);
    transform: scale(1.05);
}

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

.send-icon {
    font-size: var(--font-size-lg);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-8);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.char-count {
    opacity: 0.6;
}

.mode-info {
    font-weight: var(--font-weight-medium);
}

/* Settings Panel */
.settings-panel {
    position: absolute;
    top: 60px;
    right: var(--space-16);
    width: 250px;
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-header {
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-card-border-inner);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-3);
}

.settings-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

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

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

.setting-group label {
    display: block;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.setting-group label input[type="checkbox"] {
    margin-right: var(--space-8);
}

/* Quiz Results Panel */
.quiz-results {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 20;
    animation: modalSlideIn 0.4s ease-out;
}

.results-header {
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-card-border-inner);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-4);
}

.results-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.results-content {
    padding: var(--space-24);
    text-align: center;
}

.score-display {
    margin-bottom: var(--space-24);
}

.score-circle {
    width: 120px;
    height: 120px;
    border: 8px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-12);
    background: var(--color-bg-1);
}

.score-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.score-total {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
}

.score-percentage {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.results-breakdown {
    background: var(--color-bg-2);
    border-radius: var(--radius-md);
    padding: var(--space-16);
    margin-bottom: var(--space-24);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    font-size: var(--font-size-base);
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: var(--color-text-secondary);
}

.stat-value {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

.results-actions {
    display: flex;
    gap: var(--space-12);
    justify-content: center;
}

/* Quiz Question Styles */
.quiz-question {
    background: var(--color-bg-5);
    border-radius: var(--radius-lg);
    padding: var(--space-20);
    margin-bottom: var(--space-16);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-16);
}

.question-number {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    padding: var(--space-4) var(--space-12);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.question-timer {
    color: var(--color-warning);
    font-weight: var(--font-weight-medium);
}

.question-text {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: var(--space-16);
    line-height: var(--line-height-normal);
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.option-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-12) var(--space-16);
    text-align: left;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
    color: var(--color-text);
    font-size: var(--font-size-base);
}

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

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

.option-btn.correct {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.option-btn.incorrect {
    background: var(--color-error);
    border-color: var(--color-error);
    color: white;
}

/* Responsive Design */
@media (min-width: 480px) {
    .mode-text {
        display: inline;
    }
    
    .modal-content {
        width: 480px;
    }
    
    .chatbot-float {
        bottom: 30px;
        right: 30px;
    }
    
    .chatbot-icon {
        width: 70px;
        height: 70px;
    }
    
    .chatbot-icon .icon {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95vw;
        height: 95vh;
        border-radius: var(--radius-base);
    }
    
    .mode-selector {
        gap: var(--space-4);
        padding: var(--space-12);
    }
    
    .mode-btn {
        padding: var(--space-6);
        gap: var(--space-2);
    }
    
    .header-left {
        gap: var(--space-8);
    }
    
    .bot-avatar {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .results-actions {
        flex-direction: column;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pulse {
    animation: pulse 2s infinite;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    .upload-zone {
        background: rgba(255, 255, 255, 0.02);
    }
    
    .message.bot .message-bubble {
        background: var(--color-charcoal-800);
        border-color: var(--color-gray-400);
    }
}

[data-color-scheme="dark"] .upload-zone {
    background: rgba(255, 255, 255, 0.02);
}

[data-color-scheme="dark"] .message.bot .message-bubble {
    background: var(--color-charcoal-800);
    border-color: var(--color-gray-400);
}

/* Contact Section */
.contact-section {
  background-color: var(--color-surface);
}

.contact-wrapper {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: start;
}

.contact-wrapper p {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.contact-wrapper i {
  color: var(--color-primary);
  width: 20px;
}

.social-links a {
  color: var(--color-text);
  transition: all var(--duration-fast) var(--ease-standard);
}

.social-links a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}
/* logo  */
.logo {
  display: flexbox;
  align-items: center;
  /* gap: 12px; 12px spacing between logo and name */
  text-decoration: navajowhite;
  color: var(--color-text);
  font-size: 1.01rem;
  /* font-weight: bold; */
  transition: color 0.3s ease;
  /* margin-bottom: 10px; */
}

.logo:hover {
  color: var(--color-primary); /* On hover, highlight name */
}

.animated-name {
  display: inline-block;
  color: #0ea5e9; /* sky blue */
  animation: glowText 2s ease-in-out infinite, moveUpDown 3s ease-in-out infinite;
}

@keyframes glowText {
  0%, 100% {
    text-shadow: 0 0 10px #0ea5e9, 0 0 20px #0ea5e9;
  }
  50% {
    text-shadow: 0 0 20px #38bdf8, 0 0 30px #38bdf8;
  }
}

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


.logo:hover img {
  transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Form Status Messages */
#form-status {
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
}

#form-status.success {
  color: var(--color-success);
  background-color: rgba(var(--color-success-rgb), 0.1);
  border: 1px solid rgba(var(--color-success-rgb), 0.2);
}

#form-status.error {
  color: var(--color-error);
  background-color: rgba(var(--color-error-rgb), 0.1);
  border: 1px solid rgba(var(--color-error-rgb), 0.2);
}

#form-status.info {
  color: var(--color-info);
  background-color: rgba(var(--color-info-rgb), 0.1);
  border: 1px solid rgba(var(--color-info-rgb), 0.2);
}



/* Theme Toggle */
#theme-toggle {
  transition: all var(--duration-fast) var(--ease-standard);
  .header{
    background-color: var(--color-background);
  }
}
     
#theme-toggle:hover {
  transform: rotate(15deg);
}
.mobile-menu-toggle {
  display: none;
}
/* Responsive Design */
@media (max-width: 768px) {
  /* .nav-links {
    display: none;
  }

  .nav-links.active {
  display: flex;
  flex-direction: column;
} */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-background, white);
    position: absolute;
    justify-content: center;
    align-items: center;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
    
  }

 .mobile-menu-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text, #111); /* Optional color */
  }


  .hero {
    padding: 80px var(--space-16);
    text-align: center;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: var(--space-32);
    padding-right: 0 !important;
  }

  .timeline-item::before {
    left: 14px !important;
  }

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

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

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

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

  .section-title {
    font-size: var(--font-size-2xl);
  }
}

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

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

  .py-16 {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }

  .timeline-item {
    padding-left: var(--space-24);
  }
}

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

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

.fade-in-up {
  animation: fadeInUp 0.6s var(--ease-standard) forwards;
}

/* Grid helpers */
.grid {
  display: grid;
}

/* Utility classes for spacing */
.mt-8 {
  margin-top: var(--space-8);
}

.mt-16 {
  margin-top: var(--space-16);
}

.mt-32 {
  margin-top: var(--space-32);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

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

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* Text utilities */
.text-center {
  text-align: center;
}

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

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* Dark mode styles */
.dark-mode {
  background-color: #121212 ;
  color: #e0e0e0;
}

.dark-mode nav {
  background-color: #1f1f1f;
  /* border-bottom: 1px solid #333; */
  color: #e0e0e0;
}


.dark-mode a,
.dark-mode p,
.dark-mode span,

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
  color: #e0e0e0;
}


.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: var(--color-primary); /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}
.large-font { font-size: 1.25em; }

.sidebar {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2rem;
  background: rgba(33,160,141,0.1); padding: 1rem; border-radius: 1rem;
}
.sidebar a { font-size: 2rem; color: var(--color-primary); }
.sidebar2 {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2rem;
  background: rgba(250, 250, 250, 0.1); padding: 1rem; border-radius: 1rem;
}
.sidebar2 a { font-size: 2rem; color: var(--color-primary); }

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.cert-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-xl);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.cert-card:hover {
  box-shadow: 0 8px 24px rgba(33,128,141,0.15);
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.cert-issuer,
.cert-issued,
.cert-skills {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.3rem;
}

.cert-link {
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: underline;
}

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

.footer {
 background-color: var(--color-background);
   /* color: #f0f0f0; */
   border-top: 2px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 3rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  /* border-top: 3px solid #21a08d; */
}
/* Footer */
/* .footer {
 
  
} */

.social-share {
  margin-bottom: 1.5rem;
}

.social-share a {
  color: #21a08d;
  text-decoration: none;
  font-weight: 600;
  margin: 0 1rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.social-share a:hover {
  color: #1a7a6f;
  text-decoration: underline;
}

.footer2 {
  background-color: #1e1e1e;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-radius: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(33, 160, 141, 0.3);
}

.footer2 h3 {
  color: #21a08d;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.footer2 p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #ccc;
}

.footer2 a {
  color: #21a08d;
  text-decoration: underline;
  transition: color 0.3s;
}

.footer2 a:hover {
  color: #1a7a6f;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  display: inline-block;
  margin: 0 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px transparent;
}

.social-icons a img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(33, 160, 141, 0.6);
}

.social-icons a:hover img {
  transform: scale(1.1);
}

#year {
  font-weight: 600;
  color: #21a08d;
}

@media (max-width: 600px) {
  .social-share a {
    display: block;
    margin: 0.5rem 0;
  }
  .social-icons a {
    margin: 0 0.3rem;
  }
  .footer2 {
    padding: 1.5rem 1rem;
  }
}



/* =========================================
   MY COURSES (INSTRUCTOR SECTION)
   ========================================= */

/* Grid Layout */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Card Container */
.instructor-card {
  background: var(--color-surface, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

[data-color-scheme="dark"] .instructor-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
}

.instructor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2); /* Glow effect using primary color */
  border-color: var(--color-primary, #6366f1);
}

/* Thumbnail Section */
.course-thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instructor-card:hover .course-thumb img {
  transform: scale(1.1);
}

/* Play Icon Overlay */
.play-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-overlay i {
  color: #fff;
  font-size: 3rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.instructor-card:hover .play-overlay {
  opacity: 1;
}

/* Badges (Best Seller, New) */
.course-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fcd34d; /* Yellow */
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.new-badge {
  background: var(--color-primary, #6366f1);
  color: #fff;
}

.upcoming-badge {
  background: #64748b;
  color: #fff;
}

/* Details Section */
.course-details {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.platform-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary, #6366f1);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.course-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary, #64748b);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats (Students/Rating) */
.course-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.text-yellow {
  color: #fbbf24;
}

/* Footer (Price & Button) */
.course-footer {
  margin-top: auto; /* Pushes to bottom */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1rem;
}

[data-color-scheme="dark"] .course-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.price {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.original-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--color-text-secondary, #94a3b8);
}

/* Add to style.css */
.text-yellow {
  color: #fbbf24;
}

.instructor-card .price .current-price {
  font-size: 1.25rem;
}

