/* ==========================================================================
   CSS Variables & Theming System
   ========================================================================== */
:root {
  /* Dark Theme (Default) */
  --bg-main: #050505;
  --bg-secondary: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #8892b0;
  --accent-primary: #00f0ff; /* Electric Blue / Cyan */
  --accent-secondary: #8a2be2; /* Purple */

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --gradient-glow: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;

  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg-main: #f4f5f7;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #0ea5e9;
  --accent-secondary: #7c3aed;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  transition:
    background-color var(--transition-smooth),
    color var(--transition-smooth);
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

canvas#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================================================
   Utility Classes & Effects
   ========================================================================== */
.gradient-text {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

#typewriter {
  color: #ffffff;
  font-weight: 600;
}

.typing-cursor {
  display: inline-block;
  margin-left: 4px;
  color: #ffffff;
  animation: blink 0.8s infinite;
  font-weight: 300;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

/* Mouse tracking lighting effect applied via JS */
.glow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  pointer-events: none;
}

[data-theme="light"] .glow-card::before {
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 0, 0, 0.04),
    transparent 40%
  );
}

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

.magnetic {
  display: inline-block;
  transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-glow);
  transition: width var(--transition-smooth);
}

.hover-underline:hover::after {
  width: 100%;
}

.section {
  padding: 100px 5%;
  max-width: 1440px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

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

.btn-sm {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-sm:hover {
  background: var(--accent-primary);
  color: var(--bg-main);
  border-color: transparent;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  transition: all var(--transition-smooth);
}

.btn-icon:hover {
  background: var(--text-primary);
  color: var(--bg-main);
  transform: scale(1.1);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-smooth);
  padding: 20px 0;
}

header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo {
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.logo .dot {
  color: var(--accent-primary);
}

/* FIXED: Structural row settings assigned to the links wrapper container */
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* FIXED: Separated from container rules to resolve layout compression stack bug */
.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-glow);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

#theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

#theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: all var(--transition-smooth);
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 650px;
}

.hero h1 {
  font-size: clamp(2rem, 10vw, 2.8rem);
  word-wrap: break-word;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* 3D Hero Visual CSS Art */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  width: 100%;
  height: 300px;
}

.orb-container {
  position: relative;
  width: 400px;
  height: 400px;
  transform-style: preserve-3d;
  animation: rotate 20s linear infinite;
}

.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-glow);
  box-shadow:
    0 0 50px var(--accent-primary),
    0 0 100px var(--accent-secondary);
  z-index: 10;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
}

.orbit-1 {
  width: 250px;
  height: 250px;
  margin-top: -125px;
  margin-left: -125px;
  border-top-color: var(--accent-primary);
  animation: spin 8s linear infinite;
}

.orbit-2 {
  width: 350px;
  height: 350px;
  margin-top: -175px;
  margin-left: -175px;
  border-bottom-color: var(--accent-secondary);
  animation: spin-reverse 12s linear infinite;
}

.orbit-3 {
  width: 450px;
  height: 450px;
  margin-top: -225px;
  margin-left: -225px;
  border-left-color: var(--accent-primary);
  animation: spin 15s linear infinite;
}

.floating-cube {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  animation: float 6s ease-in-out infinite;
}

.cube-1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.cube-2 {
  bottom: 10%;
  right: 20%;
  animation-delay: -3s;
  border-color: var(--accent-secondary);
}

@keyframes rotate {
  100% {
    transform: rotateY(360deg) rotateX(20deg);
  }
}

@keyframes spin {
  100% {
    transform: rotateZ(360deg) rotateX(60deg) rotateY(30deg);
  }
}

@keyframes spin-reverse {
  100% {
    transform: rotateZ(-360deg) rotateX(40deg) rotateY(-40deg);
  }
}

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

/* ==========================================================================
   Expertise Section
   ========================================================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 30px;
}

.expertise-grid .glass-card {
  padding: 40px 30px;
  transform-style: preserve-3d;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 25px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.expertise-grid h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.expertise-grid p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Technology Stack Section
   ========================================================================== */
.tech-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.tech-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 15px 30px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-bounce);
  cursor: default;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: bounceTech 4s ease-in-out infinite alternate;
}

.tech-card:nth-child(even) {
  animation-delay: 1s;
  animation-duration: 5s;
}

.tech-card:nth-child(3n) {
  animation-delay: 2s;
  animation-duration: 4.5s;
}

.tech-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transform: translateY(-10px) scale(1.05) !important;
  z-index: 10;
}

.tech-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

@keyframes bounceTech {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

/* ==========================================================================
   Featured Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 40px;
}

.project-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--glass-hover);
}

.project-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
}

.project-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  flex-grow: 1;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Leadership Section (3D Flip Card)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px;
}

.team-card-wrapper {
  perspective: 1500px;
  height: 400px;
  width: 100%;
}

.team-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card-wrapper:hover .team-card {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.team-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.team-card-back {
  transform: rotateY(180deg);
  z-index: 1;
}

.team-img-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 25px;
  overflow: hidden;
  border: 3px solid var(--glass-border);
  transition: all var(--transition-smooth);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter var(--transition-smooth),
    transform var(--transition-bounce);
}

.team-card-wrapper:hover .team-img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.team-card-wrapper:hover .team-img-wrapper {
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.team-card h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.team-card .role {
  font-size: 1rem;
  font-weight: 500;
}

/* Back Face Styling */
.back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.back-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.back-content .back-role {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.back-content .bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.social-links-mini {
  display: flex;
  gap: 15px;
}

.social-links-mini a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  transition: all var(--transition-smooth);
}

.social-links-mini a:hover {
  background: var(--accent-primary);
  color: var(--bg-main);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.social-links-mini svg,
.team-card-back .social-links-mini svg {
  width: 16px !important;
  height: 16px !important;
  display: block;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
  padding: 60px 5%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 30px;
}

.stat-card {
  padding: 40px 20px;
  text-align: center;
}

.stat-card h3 {
  font-size: 3.5rem;
  display: inline-block;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.stat-card .plus {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.contact-left {
  flex: 1;
}

.contact-left h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-left p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 400px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.info-value {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.contact-right {
  flex: 1;
  width: 100%;
}

.glass-form {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  resize: none;
}

.input-group label {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  pointer-events: none;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  font-size: 0.8rem;
  color: var(--accent-primary);
}

.input-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-glow);
  transition: width var(--transition-smooth);
}

.input-group input:focus ~ .input-glow,
.input-group textarea:focus ~ .input-glow {
  width: 100%;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
}

.form-success {
  display: none;
  margin-top: 20px;
  color: #10b981;
  font-weight: 500;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.glass-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  padding: 60px 5% 20px;
}

[data-theme="light"] .glass-footer {
  background: rgba(255, 255, 255, 0.5);
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-left {
  flex: 1;
  min-width: 250px;
}

.footer-left .logo {
  display: inline-block;
  margin-bottom: 15px;
}

.footer-left p {
  color: var(--text-secondary);
  max-width: 300px;
}

.footer-center {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: center;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
  width: fit-content;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-right {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.social-links a:hover {
  background: var(--accent-primary);
  color: var(--bg-main);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-links {
  display: flex;
  gap: 20px;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.active-reveal {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .contact-container {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-center {
    justify-content: center;
  }
  .footer-nav {
    align-items: center;
  }
  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-right .btn-primary {
    display: none;
  }

  /* FIXED: Mobile Navigation panel menu layout */
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: left 0.5s ease-in-out;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .section {
    padding: 60px 5%;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 35px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: unset;
    width: auto;
    min-width: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-left p {
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-nav {
    align-items: center;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
