* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  list-style: none;
  text-transform: capitalize;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

:root {
  --bg-fixed: #000510;
  --primary: #0077ff;
  --secondary: #1900ff;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-color: #000000;
  --text-hero: #ffffff;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100vw;
  height: 100vh;
  cursor: none;
  background-color: var(--bg-fixed) !important;
  /* Always Dark */
  color: var(--text-color);
  transition: all 0.3s ease;
}

/* DARK THEME OVERRIDES (Original "Dark" look) */
body.dark {
  --primary: #4499ff;
  --glass: rgba(255, 255, 255, 0.05);
  /* Transparent dark cards */
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-color: #ffffff;
  /* White text on dark cards */
  --text-hero: #ffffff;
}

#custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid var(--text-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
  will-change: left, top, transform;
}

#custom-cursor.hover {
  transform: translate(-50%, -50%) scale(2.5);
  background: rgba(0, 17, 255, 0.132);
  border-color: var(--primary);
}

#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: #000;
}

/* Removed Invert filter to keep background consistent */

/* NAVBAR Styling */
.navbar {
  position: fixed;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  color: var(--text-color);
  width: 90%;
  background: var(--glass);
  /* Fix: Use theme glass variable */
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  z-index: 1000;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.navbar:hover,
.slide-pranc:hover,
.menu-bgc:hover {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.1);
}

.navbar h1 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar ul {
  display: flex;
  gap: 30px;
}

.navbar ul li a {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.navbar ul li a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 119, 255, 0.5);
}

.navbar .download-cv {
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--primary) 20%, var(--secondary) 80%);
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar .download-cv:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 119, 255, 0.3);
}

/* CONTENT & HERO */
.content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.hero h2 {
  font-size: 3rem;
  color: var(--text-color);
  /* Fix: Adapts to white card background */
  margin-bottom: 20px;
  font-weight: 900;
}

.hero h2 span {
  color: var(--primary);
}

.char-hero {
  display: inline-block;
  filter: blur(15px);
  opacity: 0;
  transform: translateY(10px);
  animation: revealHero 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes revealHero {
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

.typing-container {
  display: block;
  font-size: 1.5rem;
  color: var(--text-color);
  /* Fix: Adapts to white card background */
  opacity: 0.9;
  margin-bottom: 20px;
  font-weight: 400;
}

#rotator-text {
  color: var(--primary);
  font-weight: 700;
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  min-width: 120px;
  text-align: center;
}

.rotator-fade {
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  filter: blur(5px);
}

.hero p {
  color: var(--text-color);
  /* Fix: Adapts to white card background */
  opacity: 0.7;
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary {
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary) 20%, var(--secondary) 80%);
  color: white;
  border-radius: 35px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-secondary {
  padding: 15px 40px;
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary);
  border-radius: 35px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.4);
}

/* SIDEBAR / TOOLS */
.slide-bar {
  /* position: fixed;
    left: 30px;
    top: 50%; */
  /* transform: translateY(-50%); */
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  width: 15%;
  z-index: 30;
}

.menu-wrapper {
  position: relative;
}

.slide-pranc {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-direction: column;
  width: fit-content;
  height: fit-content;
  backdrop-filter: blur(5px);
  background: var(--glass);
  border-radius: 20px;
  padding: 13px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  z-index: 2001;
}

.slide-pranc a {
  color: var(--text-color);
  font-size: 25px;
  transition: 0.6s;
  position: relative;
  /* Base for tooltips */
}

/* Tooltip Body */
.slide-pranc a::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(0, 0, 0, 0.226);
  backdrop-filter: blur(15px);
  padding: 7px 15px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  color: var(--primary);
}

/* Little Arrow */
.slide-pranc a::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(5px);
  border-width: 6px;
  border-style: solid;
  border-color: transparent var(--glass-border) transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 2001;
}

.slide-pranc a:hover,
.slide-pranc a.active {
  color: var(--primary);
  /* Use theme primary color */
  transform: scale(1.3);
}

.slide-pranc a:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(25px);
}

.slide-pranc a:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(19px);
}

.menu-icon {
  width: 35px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-bgc {
  backdrop-filter: blur(5px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.menu-icon span {
  height: 3px;
  width: 100%;
  background: var(--text-color);
  /* Adapts to card theme */
  border-radius: 10px;
  transition: all 0.4s ease;
}

/* Professional Pop-out Side Menu */
.side-nav-content {
  position: absolute;
  top: -16px;
  left: 88px;
  background: rgba(5, 10, 20, 0.98); /* High opacity fix */
  backdrop-filter: blur(30px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 250px;
  /* Balanced width */
  min-height: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-30px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 30;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  /* Added explicit color inheritance */
}

.side-nav-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.side-nav-group h3 {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.8;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 5px;
}

.side-nav-group a {
  display: block;
  color: var(--text-color);
  font-size: 1rem;
  /* Much bigger font */
  font-weight: 500;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.side-nav-group a span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-color);
  opacity: 0.6;
  font-weight: 300;
  margin-top: 2px;
}

.side-nav-group:hover a {
  opacity: 0.5;
  /* Dim others on hover */
}

.side-nav-group a:hover {
  opacity: 1;
  color: var(--primary);
  transform: translateX(5px);
}

/* Staggered animation */
.side-nav-content.active .side-nav-group {
  animation: slideIn 0.4s ease forwards;
  opacity: 0;
}

.side-nav-content.active .side-nav-group:nth-child(1) {
  animation-delay: 0.1s;
}

.side-nav-content.active .side-nav-group:nth-child(2) {
  animation-delay: 0.2s;
}

.side-nav-content.active .side-nav-group:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Professional Theme Switcher */
.theme-switch {
  width: 90px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  display: flex;
  position: relative;
  padding: 3px;
  justify-content: space-between;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-left: 24px;
}

.mode-btn {
  width: 42px;
  height: 100%;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mode-btn.active {
  color: var(--primary);
}

.slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 42px;
  height: 32px;
  /* Adjusted height to fit inside padding */
  background: white;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Dark Mode States */
body.dark .slider {
  left: 45px;
  background: #2d2d2d;
}

body.dark .mode-btn.active {
  color: #ffd700;
  /* Gold for moon when active in dark mode */
}

/* GLOBAL INTERACTIVES */
a,
button,
.menu-icon,
.dark-toggle,
.navbar h1 {
  cursor: none !important;
}

/* fix section */
.fix-perv {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  width: 35%;
  height: 86vh;
  border-radius: 20px;
  margin-top: 20px;
  position: fixed;
}

.fix-perv img {
  width: 80%;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 10px;
  color: var(--text-color);
}

/* image portfolio */

.img-ring {
  position: relative;
  width: 320px;
  /* Increased to fit orbits */
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-top: 30px;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 119, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}

/* Common planet/dot style */
.orbit::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  width: 10px;
  height: 10px;
  top: 50%;
  left: -4px;
}

/* Inner Orbit */
.orbit-1 {
  width: 270px;
  height: 270px;
  border-style: dashed;
  animation: rotate 10s linear infinite;
  margin-bottom: 25px;
}

.orbit-1::after {
  width: 8px;
  height: 8px;
  top: 50%;
  left: -4px;
}

/* Middle Orbit */
.orbit-2 {
  width: 300px;
  height: 300px;
  animation: rotate 15s linear infinite reverse;
  margin-bottom: 25px;
}

.orbit-2::after {
  width: 12px;
  height: 12px;
  top: -6px;
  left: 50%;
}

/* Outer Orbit */
.orbit-3 {
  width: 335px;
  height: 335px;
  opacity: 0.5;
  animation: rotate 25s linear infinite;
  margin-bottom: 25px;
}

.orbit-3::after {
  width: 8px;
  height: 8px;
  bottom: 20%;
  right: 15%;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.img-ring img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  z-index: 10;
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 119, 255, 0.3);
  margin-bottom: 25px;
}

.portfolio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 90vh;
  border-radius: 20px;
  width: 85%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.portfolio h2 {
  font-size: 35px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.portfolio p {
  font-size: 20px;
  color: var(--primary);
  text-align: center;
  min-height: 1.5em;
  /* Prevent layout jump */
  display: flex;
  justify-content: center;
  align-items: center;
}

#portfolio-rotator {
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.social-media {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 5%;
  margin-top: 20px;
}

.social-media a {
  color: var(--text-color);
  font-size: 25px;
  transition: 0.6s;
}

.social-media a:hover {
  color: #1900ff;
  transform: scale(1.3);
}

.link-dc {
  display: flex;
  height: 40px;
  justify-content: space-between;
  width: 100%;
  padding: 0 5%;
  align-items: center;
  border-top: 1px solid #ffffff46;
}

.link-dc a {
  color: var(--text-color);
  font-size: 20px;
  transition: 0.6s;
}

.link-dc a:hover {
  color: #1900ff;
  transform: scale(1.3);
}

.link-dc hr {
  display: flex;
  flex-direction: column;
  height: 30px;
  border: 1px solid #ffffff3e;
}

/* container */
.containeer {
  width: 65%;
  position: absolute;
  right: 0px;
  left: 35%; /* Fixed from 50%px to match 65% width */
  top: 50px;
}

.hero {
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-box {
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  pointer-events: auto;
  width: 100%;
  animation: fadeIn 1.5s ease-out;
  height: fit-content;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* experience number */
.number-ex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 30px 0;
}

.ex-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ex-primary span {
  font-size: 50px;
  font-weight: 700;
  color: var(--primary);
}

.ex-primary p {
  font-size: 17px;
  color: var(--text-color);
  opacity: 1;
  font-weight: 700;
}

/* skills */
#skills {
  width: 96%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  pointer-events: auto;
  animation: fadeIn 1.5s ease-out;
  height: fit-content;
  margin: auto;
}

#skills h3 {
  font-size: 35px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

#skills h2 {
  font-size: 20px;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 10px;
}

.skills-me {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 20px;

  /* margin-inline: auto; */
}

.skill {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(3, 1, 1, 0.377);
  backdrop-filter: blur(40px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  /* Set default percent to 0 for animation start */
  --percent: 0%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy transition */
  cursor: pointer;
}

.skill:hover {
  transform: translateY(-10px) scale(1.05);
  /* Lift up */
  background: rgba(255, 255, 255, 0.08);
  /* Slightly brighter bg */
  box-shadow: 0 15px 30px rgba(0, 119, 255, 0.2);
  /* Colored glow shadow */
  border-color: var(--primary);
}

/* The Progress Ring */
.skill::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(
    var(--primary) var(--percent),
    rgba(255, 255, 255, 0.05) 0
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  transition: all 0.5s ease;
}

.skill:hover::before {
  filter: brightness(1.3);
  /* Brighten ring on hover */
  inset: -4px;
  /* Slight expansion of ring */
}

/* Inner Glow / Decoration */
.skill::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  opacity: 0.3;
  pointer-events: none;
  transition: all 0.3s ease;
}

.skill:hover::after {
  border-color: var(--primary);
  opacity: 0.6;
}

.skill svg {
  width: 50px !important;
  height: 50px !important;
  margin-bottom: 5px;
  z-index: 2;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill:hover svg {
  transform: scale(1.15) rotate(-5deg);
  /* Playful tilt */
  filter: drop-shadow(0 8px 15px rgba(0, 119, 255, 0.4));
}

.skill span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  z-index: 2;
  transition: color 0.3s ease;
}

.skill:hover span {
  color: var(--primary);
  /* Highlight text */
}

.skill p {
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.skill:hover p {
  color: var(--text-color);
  opacity: 1;
}

/* PRELOADER STYLES */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000510;
  /* Match body bg */
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-content h2 {
  position: absolute;
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 4px;
  font-weight: 700;
  animation: textPulse 1.5s ease-in-out infinite;
  text-transform: uppercase;
}

.magic-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-bottom-color: var(--secondary);
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.5);
}

.magic-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  animation: magicSpin 2s linear infinite;
  border-width: 3px;
}

.magic-ring:nth-child(2) {
  width: 70%;
  height: 70%;
  animation: magicSpin 3s linear infinite reverse;
  border-left-color: #00ffff;
  border-right-color: #00ffff;
  border-width: 2px;
}

.magic-ring:nth-child(3) {
  width: 40%;
  height: 40%;
  animation: magicSpin 1.5s linear infinite;
  border-top-color: #ffffff;
  border-width: 1px;
  box-shadow: none;
}

@keyframes magicSpin {
  0% {
    transform: rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }

  50% {
    transform: rotate(180deg) scale(1.1);
    filter: hue-rotate(45deg);
  }

  100% {
    transform: rotate(360deg) scale(1);
    filter: hue-rotate(0deg);
  }
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 0.5;
    letter-spacing: 4px;
  }

  50% {
    opacity: 1;
    letter-spacing: 6px;
    text-shadow: 0 0 10px var(--primary);
  }
}

/* section services */
#services {
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 40px 20px;
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  pointer-events: auto;
  width: 96%;
  animation: fadeIn 1.5s ease-out;
  height: fit-content;
  margin: 50px auto;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

#services h3 {
  font-size: 35px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}

.services-me {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.service-cart {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 20px;
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  /* overflow: hidden; Removed to allow dynamic shadow glow to bleed out */
  cursor: default;
  /* For the border glow effect */
  --x: -50%;
  --y: -50%;
}

/* Dynamic Box Shadow (Backlight Glow) */
.service-cart::before {
  content: "";
  position: absolute;
  inset: -5px;
  background: radial-gradient(
    800px circle at var(--x) var(--y),
    rgba(0, 119, 255, 0.4),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}

/* Alternatively, let's do the "border glow" by using a pseudo element slightly larger than the card, z-index -1 */
/* Refined approach for "move mouse in edge border animation" */
.service-cart::after {
  content: "";
  position: absolute;
  inset: 0px;
  border-radius: 30px;
  padding: 2px;
  /* Border width */
  background: radial-gradient(
    600px circle at var(--x) var(--y),
    rgba(0, 119, 255, 0.6),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-cart:hover::after,
.service-cart:hover::before {
  opacity: 1;
}

.service-cart:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  /* Hide static border to let glow shine */
}

.service-cart svg {
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(0, 119, 255, 0.5));
  transition: transform 0.5s ease;
}

.service-cart:hover svg {
  transform: rotateY(180deg) scale(1.1);
}

.service-cart span {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
  text-shadow: 0 0 20px rgba(0, 119, 255, 0.3);
}

.service-cart p {
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 5px;
}

.service-cart h4 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.specification {
  width: 100%;
  margin: 10px 0;
  text-align: left;
}

.specification ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.specification ul li {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.specification ul li i {
  font-size: 0.9rem;
  filter: drop-shadow(0 0 5px rgba(0, 51, 255, 0.5));
}

.service-cart button {
  padding: 12px 35px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--text-color);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  /* Push to bottom */
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.service-cart button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: width 0.3s ease;
}

.service-cart button:hover {
  color: white;
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.4);
}

/* Ensure the space canvas stays in the background */
#space-canvas {
  pointer-events: none;
  z-index: -2;
}

/* PROJECTS SECTION */
#projects {
  width: 96%;
  margin: 50px auto;
  padding: 40px 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease-out;
  text-align: center;
}

#projects h3 {
  font-size: 35px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.project-card {
  position: relative;
  width: 350px;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 119, 255, 0.3);
  border-color: var(--primary);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  gap: 15px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay i {
  font-size: 3rem;
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary));
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-overlay i {
  transform: scale(1);
  animation: pulseEye 1.5s infinite;
}

.project-overlay span {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes pulseEye {
  0% {
    filter: drop-shadow(0 0 10px var(--primary));
  }
  50% {
    filter: drop-shadow(0 0 20px var(--primary));
  }
  100% {
    filter: drop-shadow(0 0 10px var(--primary));
  }
}

/* Projects Button */
.projects-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-load-more {
  padding: 15px 50px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-load-more:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 119, 255, 0.4);
}

.btn-load-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-load-more:hover::before {
  width: 100%;
}

.btn-load-more i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.btn-load-more:hover i {
  transform: translateY(3px);
}

.hidden-project {
  display: none;
}

/* Project Categories Filter */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 119, 255, 0.3);
}

.project-card a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* EDUCATION */
#education {
  width: 96%;
  margin: 50px auto;
  padding: 60px 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease-out;
  text-align: center;
  height: fit-content;
  position: relative;
  overflow: hidden;
}

#education h3 {
  font-size: 35px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}

.school-eduction {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  margin-bottom: 60px;
}

/* Base Card Style */
.cart-eduction {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 30px;
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.cart-eduction:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

/* Glow Effect */
.cart-eduction::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--primary),
    transparent,
    var(--secondary)
  );
  z-index: -1;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(10px);
}

.cart-eduction:hover::before {
  opacity: 0.6;
}

.cart-eduction > a {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
  overflow: hidden;
  padding: 10px;
}

.cart-eduction > a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-eduction:hover > a {
  transform: scale(1.1) rotate(5deg);
}

.school-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.school-info h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  margin-bottom: 5px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  /* -webkit-text-fill-color: transparent; */
}

.school-info .date-badge {
  background: rgba(0, 119, 255, 0.1);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 119, 255, 0.2);
}

.school-info p {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 15px;
}

.link-eduction {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.link-eduction a {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
  transition: all 0.3s ease;
  text-align: center;
}

.link-eduction a:first-child {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--text-color);
}

.link-eduction a:first-child:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 119, 255, 0.3);
}

.link-eduction a:last-child {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
}

.link-eduction a:last-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 119, 255, 0.4);
}

/* Testimonials Section */
.testimonials-section {
  width: 100%;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.testimonials-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial-card {
  width: 300px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 25px;
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.client-info h5 {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 700;
}

.client-info span {
  font-size: 0.8rem;
  color: var(--primary);
  opacity: 0.8;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  font-style: italic;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.1;
  pointer-events: none;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0, 119, 255, 0.3);
  border: 2px solid var(--primary);
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.2);
}

/* ARTICLES SECTION */
#articles {
  width: 96%;
  margin: 50px auto;
  padding: 60px 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease-out;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#articles h3 {
  font-size: 35px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}

.articles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.article-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  width: 320px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-bottom: 1px solid var(--glass-border);
}

.article-card:hover img {
  transform: scale(1.1);
}

.article-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.article-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-info p {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 15px;
}

.article-links a {
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.article-links a:first-child {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--text-color);
}

.article-links a:first-child:hover {
  background: var(--primary);
  color: #fff;
}

.article-links a:last-child {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
}

.article-links a:last-child:hover {
  box-shadow: 0 5px 15px rgba(0, 119, 255, 0.4);
  transform: translateY(-2px);
}

/* Card Glow Effect on Hover */
.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(
    45deg,
    var(--primary),
    transparent,
    var(--secondary)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.article-card:hover::after {
  opacity: 1;
}

.hidden-article {
  display: none;
  opacity: 0;
}

.articles-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.btn-load-more-articles {
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary) 20%, var(--secondary) 80%);
  color: white;
  border-radius: 35px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0, 119, 255, 0.2);
}

.btn-load-more-articles:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 119, 255, 0.4);
}

.btn-load-more-articles i {
  transition: transform 0.3s ease;
}

/* CONTACT SECTION */
#contact {
  width: 96%;
  margin: 50px auto;
  padding: 60px 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease-out;
  overflow: hidden;
}

#contact h3 {
  font-size: 35px;
  background: linear-gradient(to right, var(--text-color), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.contact-info-col {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-form-col {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 30px;
  position: relative;
}

/* Contact Info Cards */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 15px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateX(10px);
}

.info-icon a {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 119, 255, 0.3);
}

.info-text h4 {
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 700;
}

.info-text p a {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
}

/* Map */
.contact-map {
  width: 100%;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) invert(0%);
  transition: all 0.5s ease;
}

.contact-map:hover iframe {
  filter: grayscale(0%);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-color);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-color);
  opacity: 0.5;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.2);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  padding: 15px;
  background: linear-gradient(135deg, var(--primary) 20%, var(--secondary) 80%);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(0, 119, 255, 0.3);
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 119, 255, 0.5);
}

/* ENTRANCE ANIMATIONS */
@keyframes slideDownNavbar {
  from {
    transform: translateY(-100%) translateX(-50%);
    opacity: 0;
  }
  to {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }
}

@keyframes slideInLeftSidebar {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideUpPortfolio {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Apply Animations - Only start when 'loaded' class is added */
body.loaded .navbar {
  /* Keep existing translateX(-50%) static transform in the animation */
  animation: slideDownNavbar 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.loaded .slide-bar {
  animation: slideInLeftSidebar 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.5s;
  opacity: 0;
}

body.loaded .portfolio {
  animation: slideUpPortfolio 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.8s;
  opacity: 0;
}

/* Initial States (before loaded) */
.navbar {
  transform: translateY(-100%) translateX(-50%);
  opacity: 0;
}

.slide-bar {
  opacity: 0;
}

.portfolio {
  opacity: 0;
}

/* --- PROFESSIONAL RESPONSIVE DESIGN (TABLET & MOBILE) --- */
@media (max-width: 1024px) {
  /* 1. Global Reset */
  * {
    max-width: 100vw !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
  }

  .content {
    display: block !important;
    padding-top: 80px !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  .containeer {
    width: 92% !important;
    margin: 20px auto !important;
    position: relative !important;
    left: 0 !important;
    padding: 0 !important;
  }

  /* 2. Integrated Mobile Header */
  .navbar {
    position: fixed !important;
    width: 94% !important;
    height: 64px !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important; /* Center the Logo */
    align-items: center !important;
    padding: 0 20px !important;
    background: rgba(10, 15, 30, 0.9) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-radius: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    z-index: 4000 !important;
  }

  /* Force desktop menu to stay hidden */
  .navbar ul,
  .navbar .download-cv {
    display: none !important;
  }

  .navbar h1 {
    font-size: 1.1rem !important;
    margin: 0 !important;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: 1.5px !important;
  }

  /* Reposition Sidebar Controls to inside Navbar area visually */
  .slide-bar {
    position: fixed !important;
    top: 10px !important;
    right: 3% !important;
    height: 64px !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 4100 !important;
    background: none !important;
    pointer-events: auto !important;
  }

  .menu-icon,
  .menu-bgc,
  .theme-switch {
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  /* 3. Typography Fixes (No Word Breaking) */
  .hero-box {
    text-align: center !important;
    padding: 30px 15px !important;
    margin-top: 10px !important;
  }

  .hero span {
    font-size: 0.8rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--primary) !important;
    display: block !important;
    margin-bottom: 8px !important;
  }

  .hero h2 {
    font-size: 1.5rem !important; /* Small enough for 320px screens */
    line-height: 1.2 !important;
    word-break: keep-all !important;
    white-space: normal !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  /* 4. Portfolio Card Centering */
  .fix-perv {
    position: relative !important;
    width: 94% !important;
    max-width: 420px !important;
    margin: 0 auto 30px auto !important;
    display: block !important;
  }

  .portfolio {
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 35px 20px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 30px !important;
    text-align: center !important;
  }

  .portfolio h2 {
    font-size: 1.7rem !important;
    color: #fff !important;
    margin: 15px 0 !important;
  }

  .portfolio h2 span {
    color: var(--primary) !important;
  }

  .img-ring {
    width: 130px !important;
    height: 130px !important;
    margin: 0 auto 20px auto !important;
  }

  .social-media {
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .social-media a {
    width: 42px !important;
    height: 42px !important;
  }

  /* 5. Side Menu Drawer Fix */
  .side-nav-content {
    display: none !important;
    position: fixed !important;
    top: 80px !important;
    right: 3% !important;
    width: 94% !important;
    max-width: 340px !important;
    background: rgba(10, 15, 30, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 25px !important;
    padding: 35px !important;
    z-index: 5000 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
  }

  .side-nav-content.active {
    display: flex !important;
  }

  .slide-pranc {
    display: none !important;
  }
}

/* --- ULTRA SMALL PHONES --- */
@media (max-width: 380px) {
  .hero h2 {
    font-size: 1.3rem !important;
  }
  .portfolio h2 {
    font-size: 1.5rem !important;
  }
  .navbar h1 {
    font-size: 0.9rem !important;
  }
}
