/*==========================================================

Ahmed Al Salih
Executive Portfolio

styles.css

==========================================================*/

/*==========================================================

ROOT VARIABLES

==========================================================*/

:root {
  /*==========================================================
COLORS
==========================================================*/

  --bg: #050816;

  --bg-secondary: #0b1022;

  --bg-card: #12192f;

  --bg-card-hover: #182342;

  --primary: #5b8cff;

  --primary-light: #76a6ff;

  --secondary: #7c4dff;

  --accent: #00d4ff;

  --success: #00c896;

  --warning: #f7b500;

  --danger: #ff5c7a;

  /*==========================================================
TEXT
==========================================================*/

  --text: #ffffff;

  --text-light: #d3d8e8;

  --text-muted: #9aa5c3;

  --text-dark: #7b88a8;

  /*==========================================================
BORDERS
==========================================================*/

  --border: rgba(255, 255, 255, 0.08);

  --border-light: rgba(255, 255, 255, 0.12);

  /*==========================================================
SHADOWS
==========================================================*/

  --shadow-small: 0 8px 25px rgba(0, 0, 0, 0.18);

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);

  --shadow-large: 0 35px 120px rgba(0, 0, 0, 0.45);

  --shadow-glow: 0 0 80px rgba(91, 140, 255, 0.18);

  /*==========================================================
RADIUS
==========================================================*/

  --radius-xs: 8px;

  --radius-sm: 14px;

  --radius: 20px;

  --radius-lg: 30px;

  --radius-xl: 42px;

  /*==========================================================
TRANSITIONS
==========================================================*/

  --transition: all 0.35s cubic-bezier(0.4, 0.2, 0.2, 1);

  --transition-fast: all 0.18s ease;

  /*==========================================================
LAYOUT
==========================================================*/

  --container: 1320px;

  --navbar: 90px;
}

/*==========================================================

RESET

==========================================================*/

*,
*::before,
*::after {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);

  color: var(--text);

  font-family: "Inter", sans-serif;

  font-size: 16px;

  line-height: 1.75;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;

  text-rendering: optimizeLegibility;
}

img {
  display: block;

  max-width: 100%;

  height: auto;
}

a {
  color: inherit;

  text-decoration: none;
}

button {
  font: inherit;

  cursor: pointer;

  background: none;

  border: none;
}

ul {
  list-style: none;
}

section {
  position: relative;

  padding: 140px 0;
}

.container {
  width: min(92%, var(--container));

  margin: auto;

  position: relative;

  z-index: 2;
}

/*==========================================================

TYPOGRAPHY

==========================================================*/

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;

  font-weight: 700;

  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.5rem, 6vw, 5.8rem);

  line-height: 1.05;

  margin-bottom: 35px;
}

h2 {
  font-size: clamp(2.2rem, 3vw, 3.6rem);

  line-height: 1.2;

  margin-bottom: 18px;
}

h3 {
  font-size: 1.45rem;

  margin-bottom: 18px;
}

p {
  color: var(--text-light);

  margin-bottom: 22px;
}

.section-header {
  text-align: center;

  max-width: 900px;

  margin: 0 auto 90px;
}

.section-header span {
  display: inline-block;

  margin-bottom: 18px;

  font-size: 0.78rem;

  font-weight: 700;

  letter-spacing: 3px;

  color: var(--accent);

  text-transform: uppercase;
}

.section-description {
  font-size: 1.12rem;

  max-width: 760px;

  margin: auto;

  color: var(--text-muted);
}

/*==========================================================

BACKGROUND

==========================================================*/

.background {
  position: fixed;

  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: -10;
}

.grid {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

  background-size: 48px 48px;

  mask-image: radial-gradient(circle at center, black, transparent 90%);
}

.gradient {
  position: absolute;

  border-radius: 50%;

  filter: blur(120px);

  opacity: 0.18;
}

.gradient-1 {
  width: 700px;

  height: 700px;

  background: #5b8cff;

  top: -180px;

  left: -180px;

  animation: floatOne 18s infinite ease-in-out;
}

.gradient-2 {
  width: 650px;

  height: 650px;

  background: #7c4dff;

  bottom: -220px;

  right: -160px;

  animation: floatTwo 22s infinite ease-in-out;
}

.gradient-3 {
  width: 520px;

  height: 520px;

  background: #00d4ff;

  top: 42%;

  left: 52%;

  transform: translate(-50%, -50%);

  opacity: 0.08;
}

#particles {
  position: absolute;

  inset: 0;
}

/*==========================================================

NAVIGATION

==========================================================*/

header {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: var(--navbar);

  display: flex;

  align-items: center;

  z-index: 1000;

  transition: var(--transition);
}

header.scrolled {
  background: rgba(5, 8, 22, 0.75);

  backdrop-filter: blur(20px);

  border-bottom: 1px solid var(--border);

  box-shadow: var(--shadow-small);
}

.navbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  height: 100%;
}

/*==========================================================

LOGO

==========================================================*/

.logo {
  display: flex;

  align-items: center;

  gap: 18px;

  transition: var(--transition-fast);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-symbol {
  width: 52px;

  height: 52px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 18px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  font-size: 1.4rem;

  font-weight: 700;

  color: #fff;

  box-shadow: 0 10px 35px rgba(91, 140, 255, 0.35);
}

.logo-text h2 {
  font-size: 1.15rem;

  margin: 0;
}

.logo-text p {
  margin: 2px 0 0;

  font-size: 0.82rem;

  color: var(--text-muted);
}

/*==========================================================

MENU

==========================================================*/

.nav-menu {
  display: flex;

  gap: 40px;

  align-items: center;
}

.nav-menu a {
  position: relative;

  font-size: 0.95rem;

  font-weight: 500;

  color: var(--text-light);

  transition: var(--transition-fast);
}

.nav-menu a:hover {
  color: white;
}

.nav-menu a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -8px;

  width: 0;

  height: 2px;

  background: var(--primary);

  transition: 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

/*==========================================================

RESUME BUTTON

==========================================================*/

.resume-btn {
  padding: 14px 28px;

  border-radius: 100px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: white;

  font-weight: 600;

  transition: var(--transition);

  box-shadow: 0 15px 40px rgba(91, 140, 255, 0.35);
}

.resume-btn:hover {
  transform: translateY(-4px);

  box-shadow: 0 20px 60px rgba(91, 140, 255, 0.45);
}

/*==========================================================

HERO

==========================================================*/

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  padding-top: 130px;
}

.hero-wrapper {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  align-items: center;

  gap: 80px;
}

/*==========================================================

LEFT SIDE

==========================================================*/

.hero-tag {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  padding: 12px 22px;

  margin-bottom: 35px;

  border-radius: 100px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(18px);

  font-size: 0.85rem;

  font-weight: 600;

  color: var(--text-light);
}

.hero-tag span {
  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: var(--accent);
}

.hero-description {
  max-width: 720px;

  font-size: 1.18rem;

  color: var(--text-muted);

  margin-bottom: 45px;
}

/*==========================================================

BUTTONS

==========================================================*/

.hero-buttons {
  display: flex;

  gap: 18px;

  margin-bottom: 70px;

  flex-wrap: wrap;
}

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 18px 36px;

  border-radius: 100px;

  font-weight: 600;

  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: white;

  box-shadow: 0 18px 50px rgba(91, 140, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-5px);

  box-shadow: 0 25px 60px rgba(91, 140, 255, 0.45);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(255, 255, 255, 0.04);

  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);

  transform: translateY(-4px);
}

/*==========================================================

STATISTICS

==========================================================*/

.hero-stats {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;
}

.stat {
  padding: 28px;

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);

  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-8px);

  border-color: rgba(91, 140, 255, 0.35);

  box-shadow: 0 20px 50px rgba(91, 140, 255, 0.18);
}

.stat h2 {
  font-size: 2rem;

  margin-bottom: 10px;

  background: linear-gradient(90deg, white, var(--primary));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}

.stat p {
  font-size: 0.9rem;

  margin: 0;

  color: var(--text-muted);
}

/*==========================================================

RIGHT SIDE

==========================================================*/

.hero-right {
  display: flex;

  justify-content: center;

  position: relative;
}

.image-wrapper {
  position: relative;

  width: 500px;

  height: 640px;

  display: flex;

  align-items: flex-end;

  justify-content: center;
}

.image-wrapper img {
  position: relative;

  z-index: 5;

  max-height: 620px;

  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.45));
}

/*==========================================================

GLOW

==========================================================*/

.image-glow {
  position: absolute;

  border-radius: 50%;

  filter: blur(120px);

  opacity: 0.45;
}

.image-glow-left {
  width: 260px;

  height: 260px;

  left: -40px;

  bottom: 90px;

  background: #5b8cff;
}

.image-glow-right {
  width: 280px;

  height: 280px;

  right: -30px;

  top: 60px;

  background: #7c4dff;
}

/*==========================================================

SCROLL INDICATOR

==========================================================*/

.scroll-down {
  position: absolute;

  bottom: 40px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 12px;
}

.mouse {
  width: 30px;

  height: 52px;

  border-radius: 20px;

  border: 2px solid rgba(255, 255, 255, 0.2);

  display: flex;

  justify-content: center;

  padding-top: 10px;
}

.mouse span {
  width: 5px;

  height: 10px;

  border-radius: 20px;

  background: white;

  animation: scrollWheel 2s infinite;
}

.scroll-down p {
  font-size: 0.8rem;

  letter-spacing: 2px;

  text-transform: uppercase;

  color: var(--text-muted);

  margin: 0;
}

/*==========================================================

ANIMATIONS

==========================================================*/

@keyframes scrollWheel {
  0% {
    opacity: 0;

    transform: translateY(0);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;

    transform: translateY(18px);
  }
}

@keyframes floatOne {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-60px);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(80px);
  }
}

/*==========================================================

SECTION VARIANTS

==========================================================*/

.section-dark {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.005)
  );

  border-top: 1px solid rgba(255, 255, 255, 0.04);

  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-light {
  background: transparent;
}

/*==========================================================

VISION

==========================================================*/

.vision-layout {
  display: grid;

  grid-template-columns: 1.35fr 0.65fr;

  gap: 45px;

  align-items: start;
}

.highlight-card {
  padding: 40px;

  border-radius: 28px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-cards {
  grid-column: 1 / -1;

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 25px;

  margin-top: 25px;
}

.about-card {
  padding: 32px;

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: var(--transition-fast);
}

.about-card:hover {
  transform: translateY(-6px);

  border-color: rgba(91, 140, 255, 0.35);
}

.card-icon {
  width: 56px;

  height: 56px;

  margin-bottom: 18px;

  border-radius: 16px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 1.6rem;

  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.2),
    rgba(124, 77, 255, 0.2)
  );
}

.about-card p {
  margin-bottom: 0;

  color: var(--text-muted);
}

.vision-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 45px;

  margin-top: 70px;
}

.vision-card {
  position: relative;

  padding: 50px;

  border-radius: 32px;

  background: rgba(255, 255, 255, 0.04);

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  overflow: hidden;

  transition: var(--transition);
}

.vision-card:hover {
  transform: translateY(-10px);

  border-color: rgba(91, 140, 255, 0.35);

  box-shadow: 0 30px 80px rgba(91, 140, 255, 0.18);
}

.vision-card::before {
  content: "";

  position: absolute;

  left: -100px;

  top: -100px;

  width: 240px;

  height: 240px;

  border-radius: 50%;

  background: rgba(91, 140, 255, 0.08);

  filter: blur(50px);
}

.vision-card h3 {
  font-size: 1.7rem;

  margin-bottom: 20px;
}

.vision-card p {
  font-size: 1.05rem;

  line-height: 1.9;
}

/*==========================================================

LEADERSHIP

==========================================================*/

.leadership-layout {
  display: grid;

  grid-template-columns: 320px 1fr;

  gap: 80px;

  align-items: start;

  margin-top: 80px;
}

.leadership-side {
  position: sticky;

  top: 140px;
}

.leadership-side h3 {
  font-size: 2rem;

  margin-bottom: 25px;
}

.leadership-side p {
  color: var(--text-muted);
}

.timeline {
  position: relative;

  padding-left: 60px;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 16px;

  top: 0;

  bottom: 0;

  width: 2px;

  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
  position: relative;

  margin-bottom: 70px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";

  position: absolute;

  left: -52px;

  top: 12px;

  width: 18px;

  height: 18px;

  border-radius: 50%;

  background: var(--primary);

  box-shadow: 0 0 20px rgba(91, 140, 255, 0.45);
}

.timeline-year {
  display: inline-block;

  padding: 8px 18px;

  border-radius: 100px;

  background: rgba(91, 140, 255, 0.12);

  color: var(--primary-light);

  font-size: 0.8rem;

  font-weight: 700;

  margin-bottom: 18px;

  letter-spacing: 1px;
}

.timeline-item h3 {
  margin-bottom: 12px;
}

.timeline-item p {
  margin-bottom: 0;
}

/*==========================================================

RESEARCH GRID

==========================================================*/

.research-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 35px;

  margin-top: 70px;
}

.research-card {
  padding: 45px;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: var(--transition);

  display: flex;

  flex-direction: column;
}

.research-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);

  border-color: rgba(124, 77, 255, 0.35);
}

.research-type {
  display: inline-block;

  padding: 7px 18px;

  border-radius: 100px;

  margin-bottom: 25px;

  background: rgba(124, 77, 255, 0.15);

  color: #bba8ff;

  font-size: 0.78rem;

  font-weight: 700;

  letter-spacing: 1px;

  width: max-content;
}

.research-card h3 {
  font-size: 1.45rem;

  line-height: 1.4;

  margin-bottom: 18px;
}

.research-card p {
  flex: 1;
}

.research-card a {
  margin-top: 25px;

  font-weight: 600;

  color: var(--primary);

  transition: 0.3s;
}

.research-card a:hover {
  padding-left: 8px;
}

/*==========================================================

PROJECTS

==========================================================*/

.projects-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 35px;

  margin-top: 80px;
}

.project-card {
  position: relative;

  padding: 45px;

  border-radius: 32px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  overflow: hidden;

  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.01);

  border-color: rgba(91, 140, 255, 0.35);

  box-shadow: 0 35px 90px rgba(91, 140, 255, 0.18);
}

.project-card.featured {
  grid-column: span 2;

  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.1),
    rgba(124, 77, 255, 0.08)
  );
}

.project-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 25px;
}

.project-header span {
  padding: 8px 18px;

  border-radius: 100px;

  background: rgba(255, 255, 255, 0.08);

  font-size: 0.78rem;

  font-weight: 700;

  letter-spacing: 1px;

  color: var(--text-light);
}

.project-card ul {
  margin-top: 28px;

  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}

.project-card li {
  padding: 9px 18px;

  border-radius: 100px;

  background: rgba(255, 255, 255, 0.06);

  font-size: 0.82rem;

  color: var(--text-light);
}

.project-links {
  margin-top: 35px;

  display: flex;

  gap: 30px;
}

.project-links a {
  font-weight: 600;

  color: var(--primary);

  transition: 0.3s;
}

.project-links a:hover {
  padding-left: 8px;
}

/*==========================================================

OPEN SOURCE

==========================================================*/

.opensource-layout {
  display: grid;

  grid-template-columns: 1.2fr 0.8fr;

  gap: 70px;

  align-items: center;

  margin-top: 70px;
}

.opensource-buttons {
  display: flex;

  gap: 20px;

  margin-top: 35px;
}

.opensource-stats {
  display: grid;

  gap: 25px;
}

.opensource-stats > div {
  padding: 35px;

  border-radius: 26px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: var(--transition);
}

.opensource-stats > div:hover {
  transform: translateY(-8px);
}

.opensource-stats h2 {
  font-size: 2rem;

  margin-bottom: 10px;

  background: linear-gradient(90deg, var(--primary), var(--accent));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}

/*==========================================================

INTERESTS

==========================================================*/

.interests {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 18px;

  margin-top: 70px;
}

.interests span {
  padding: 14px 24px;

  border-radius: 100px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: var(--transition-fast);

  font-size: 0.9rem;
}

.interests span:hover {
  background: rgba(91, 140, 255, 0.18);

  border-color: rgba(91, 140, 255, 0.35);

  transform: translateY(-4px);
}

/*==========================================================
PROFESSIONAL PROFILES
==========================================================*/

.profiles-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  margin-top: 70px;
}

.profile-card {
  padding: 45px;

  border-radius: 28px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  text-align: center;

  transition: var(--transition);
}

.profile-card:hover {
  transform: translateY(-10px);

  border-color: rgba(91, 140, 255, 0.35);

  box-shadow: 0 30px 70px rgba(91, 140, 255, 0.18);
}

.profile-icon {
  width: 70px;

  height: 70px;

  margin: 0 auto 25px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 20px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  font-size: 2rem;
}

.profile-card h3 {
  margin-bottom: 15px;
}

/*==========================================================
PUBLICATIONS
==========================================================*/

.publication-list {
  display: flex;

  flex-direction: column;

  gap: 25px;

  margin-top: 70px;
}

.publication {
  padding: 35px 40px;

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: var(--transition);
}

.publication:hover {
  transform: translateX(10px);

  border-left: 5px solid var(--primary);
}

.publication p {
  margin: 8px 0 0;

  color: var(--text-muted);
}

/*==========================================================
RECOGNITION
==========================================================*/

.recognition-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 30px;

  margin-top: 70px;
}

.recognition-card {
  padding: 45px;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: var(--transition);
}

.recognition-card:hover {
  transform: translateY(-8px);

  background: rgba(255, 255, 255, 0.06);
}

/*==========================================================
PHILOSOPHY
==========================================================*/

.philosophy-card {
  max-width: 1000px;

  margin: auto;

  padding: 80px;

  text-align: center;

  border-radius: 40px;

  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.08),
    rgba(124, 77, 255, 0.08)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-mark {
  font-size: 7rem;

  line-height: 1;

  color: var(--primary);

  opacity: 0.25;

  margin-bottom: 20px;
}

.philosophy-card h2 {
  font-size: 2.3rem;

  line-height: 1.4;

  max-width: 850px;

  margin: auto;

  margin-bottom: 40px;
}

.philosophy-card p {
  max-width: 760px;

  margin: auto;

  font-size: 1.05rem;
}

/*==========================================================
ENGINEERING PRINCIPLES
==========================================================*/

.principles-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;

  margin-top: 70px;
}

.principle {
  display: flex;

  align-items: center;

  gap: 20px;

  padding: 28px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: var(--transition-fast);

  font-size: 1rem;
}

.principle:hover {
  background: rgba(91, 140, 255, 0.08);
}

.principle span {
  font-weight: 500;
}

/*==========================================================
CONTACT
==========================================================*/

.contact-card {
  padding: 80px;

  text-align: center;

  border-radius: 40px;

  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.12),
    rgba(124, 77, 255, 0.1)
  );
}

.contact-card h2 {
  margin-bottom: 25px;
}

.contact-card p {
  max-width: 720px;

  margin: auto;

  margin-bottom: 40px;
}

.contact-buttons {
  display: flex;

  justify-content: center;

  gap: 20px;

  flex-wrap: wrap;
}

/*==========================================================
FOOTER
==========================================================*/

footer {
  padding: 90px 0 50px;

  background: #03050f;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr 1fr;

  gap: 60px;

  margin-bottom: 50px;
}

.footer-brand h2 {
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links h4 {
  margin-bottom: 22px;

  font-size: 1rem;
}

.footer-links a {
  display: block;

  margin-bottom: 14px;

  color: var(--text-muted);

  transition: 0.3s;
}

.footer-links a:hover {
  color: white;

  padding-left: 6px;
}

.footer-bottom {
  margin-top: 35px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  color: var(--text-dark);

  font-size: 0.9rem;
}

/*==========================================================
BACK TO TOP
==========================================================*/

#backToTop {
  position: fixed;

  bottom: 35px;

  right: 35px;

  width: 58px;

  height: 58px;

  border-radius: 50%;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: white;

  font-size: 1.3rem;

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 0;

  visibility: hidden;

  transition: var(--transition);

  box-shadow: 0 20px 45px rgba(91, 140, 255, 0.35);

  z-index: 999;
}

#backToTop.show {
  opacity: 1;

  visibility: visible;
}

#backToTop:hover {
  transform: translateY(-6px);
}

/*==========================================================
REVEAL ANIMATION
==========================================================*/

.reveal {
  opacity: 0;

  transform: translateY(60px);

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;

  transform: none;
}

/*==========================================================
RESPONSIVE
==========================================================*/

@media (max-width: 1200px) {
  .hero-wrapper,
  .opensource-layout,
  .leadership-layout {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .vision-grid,
  .about-cards,
  .recognition-grid,
  .research-grid,
  .profiles-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 90px 0;
  }

  .nav-menu {
    display: none;
  }

  .hero {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .image-wrapper {
    width: 340px;

    height: auto;
  }

  .image-wrapper img {
    max-height: 420px;
  }

  .contact-card,
  .philosophy-card {
    padding: 45px 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 15px;

    text-align: center;
  }

  #backToTop {
    right: 20px;

    bottom: 20px;
  }
}

.progress {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 4px;

  z-index: 5000;

  background: transparent;
}

.progress-bar {
  height: 100%;

  width: 0;

  background: linear-gradient(90deg, #5b8cff, #7c4dff, #00d4ff);

  box-shadow: 0 0 20px rgba(91, 140, 255, 0.6);

  transition: width 0.1s linear;
}

.mouse-glow {
  position: fixed;

  width: 400px;

  height: 400px;

  border-radius: 50%;

  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(91, 140, 255, 0.12),
    transparent 70%
  );

  filter: blur(20px);

  z-index: -1;
}

.vision-card,
.project-card,
.research-card,
.profile-card,
.recognition-card {
  position: relative;

  overflow: hidden;
}

.vision-card::after,
.project-card::after,
.research-card::after,
.profile-card::after,
.recognition-card::after {
  content: "";

  position: absolute;

  left: 0;

  top: 0;

  width: 100%;

  height: 100%;

  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.08),
    transparent 45%
  );

  opacity: 0;

  transition: 0.2s;

  pointer-events: none;
}

.vision-card:hover::after,
.project-card:hover::after,
.research-card:hover::after,
.profile-card:hover::after,
.recognition-card:hover::after {
  opacity: 1;
}
