/* =========================================
   GLOBAL STYLES (CLEAN + FIXED)
   Vivek Keshri Portfolio - style.css
========================================= */

/* Global Variables */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --accent-color: #28a745;

  --dark-bg: #1a1a2e;
  --dark-bg-light: #2e3b55;

  --text-color: #e0e0e0;
  --heading-color: #ffffff;

  --card-bg: #2a2a3e;
  --border-color: #444455;
  --hover-color: #0056b3;
  --shadow-color: rgba(0, 0, 0, 0.3);

  --font-family-sans: 'Roboto', sans-serif;
  --font-family-mono: 'Fira Code', monospace;

  /* Premium Cyber gradients */
  --bg-gradient-a:
    radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.15) 0%, rgba(26, 26, 46, 0) 50%),
    linear-gradient(180deg, #0b0c15 0%, #131325 50%, #0b0c15 100%);

  --bg-gradient-b:
    radial-gradient(circle at 50% 100%, rgba(120, 50, 255, 0.08) 0%, rgba(15, 16, 22, 0) 50%),
    linear-gradient(180deg, #06060a 0%, #0d0e14 100%);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px; /* fixed header offset */
  font-size: 16px;
}

body.no-fouc {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body {
  font-family: var(--font-family-sans);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--dark-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1;
  transition: opacity 0.5s ease;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover { color: var(--hover-color); }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

p { margin-bottom: 1em; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--heading-color);
}

.btn-primary:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--heading-color);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background-color: rgba(42, 42, 62, 0.6);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(68, 68, 85, 0.4);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
  background-color: rgba(42, 42, 62, 0.8);
}

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

/* =========================================
   HEADER / NAV
========================================= */
header#main-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(15, 15, 25, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(0, 212, 255, 0.1);
  padding: 1rem 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #00d4ff;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.nav-menu-desktop { display: flex; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: 'Sora', sans-serif;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 5px 0;
  display: inline-block;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #00d4ff;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

/* Hamburger */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 5001;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--heading-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 5000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-box {
  background: rgba(15, 15, 25, 0.85);
  padding: 3rem 2rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 212, 255, 0.1),
    0 0 30px rgba(0, 212, 255, 0.05),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  text-align: center;
  width: 85%;
  max-width: 320px;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-overlay.active .mobile-menu-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.mobile-nav-link {
  font-family: 'Sora', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #00d4ff;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  transform: scale(1.05);
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

@media (max-width: 768px) {
  .nav-menu-desktop { display: none; }
  .hamburger-menu { display: flex; }
}

/* =========================================
   SECTION BACKGROUNDS
========================================= */
section {
  padding: 6rem 0;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.hero {
  padding: 10rem 0 6rem 0;
  display: flex;
  align-items: center;
  text-align: center;
  background: var(--bg-gradient-a);
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

section#about,
section#projects {
  background: var(--bg-gradient-b);
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.5);
}

section#skills,
section#certifications {
  background: var(--bg-gradient-a);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

/* =========================================
   HERO
========================================= */
.hero .container { position: relative; z-index: 1; }

.hero-grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.profile-photo-wrapper {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo-border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, cyan, purple, red, green, cyan);
  filter: blur(10px);
  animation: rotate 4s linear infinite;
  z-index: 1;
}

.profile-photo {
  position: relative;
  z-index: 2;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: contain;
  background-color: var(--dark-bg);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-name {
  font-size: 3.8rem;
  margin-bottom: 0.5rem;
  font-family: 'Sora', var(--font-family-sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #00BFFF;
  text-shadow: 0 0 4px rgba(0, 191, 255, 0.7), 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: 1.5rem;
  color: #c0c0c0;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-title::after {
  content: '|';
  display: inline-block;
  animation: blink 0.7s infinite;
  color: #00d4ff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-intro {
  max-width: 700px;
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
}

/* Social */
.social-uiverse {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-uiverse .parent {
  width: 50px;
  height: 50px;
  perspective: 1000px;
}

.social-uiverse .child {
  width: 100%;
  height: 100%;
  transition: all 0.5s;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(42, 42, 62, 0.6);
  border-radius: 10px;
  color: var(--text-color);
  font-size: 1.5rem;
  box-shadow: 0 0 0 2px #282828, 0 0 0 4px #1b1b1b;
  position: relative;
}

.social-uiverse .child:hover {
  transform: translateZ(20px) rotateX(20deg);
  box-shadow: 0 0 0 2px #282828, 0 0 0 4px #1b1b1b, 0 0 40px -10px #00d4ff;
  color: #00d4ff;
}

.social-uiverse .child .tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.8);
  color: #00d4ff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.social-uiverse .child:hover .tooltip {
  opacity: 1;
  transform: translate(-50%, -5px);
}

/* =========================================
   ABOUT
========================================= */
.about-section .two-column-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  text-align: center;
}

.about-content p {
  max-width: 65ch;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

.about-section .hero-summary-column {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.about-section .hero-summary-column:hover {
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.6), 0 0 30px rgba(0, 123, 255, 0.4);
}

.cyber-stats-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
  font-family: var(--font-family-mono);
}

.cyber-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cyber-stat-value {
  font-size: 2.5rem;
  font-weight: bold;
}

.cyber-stat-text {
  font-size: 0.9rem;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cyber-neon-blue,
.cyber-neon-green,
.cyber-neon-gold {
  color: #00E5FF;
  text-shadow: none;
}

.cyber-stat-separator {
  color: var(--border-color);
  font-size: 2rem;
  align-self: center;
}

/* =========================================
   SKILLS / PROJECTS COMMON
========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.skill-category {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

/* Titles inside skill blocks */
.skill-category > h3,
.group-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* ✅ IMPORTANT FIX: Card text should be normal (not inheriting blue) */
.skill-category .card h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.skill-category .card p {
  color: #ffffff;   /* ✅ CHAITANYA CTF paragraph white */
  opacity: 0.92;
  text-align: center;
}

/* Tool card */
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: radial-gradient(circle,
    rgba(46, 59, 85, 0.2) 0%,
    rgba(46, 59, 85, 0.6) 80%,
    rgba(46, 59, 85, 0.9) 100%);
  border-radius: 10px;
  border: 1px solid rgba(68, 68, 85, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  width: 100px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  background-color: rgba(46, 59, 85, 0.8);
}

.tool-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.tool-card p {
  font-size: 0.8rem;
  color: var(--text-color);
  margin-bottom: 0;
}

/* =========================================
   PROJECTS
========================================= */
.projects-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

.projects-left-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.projects-section .grid-layout {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.projects-section .card {
  padding: 1.2rem;
  justify-content: flex-start;
  position: relative;
  background-color: rgba(42, 42, 62, 0.6);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 123, 255, 0.2);
}

.projects-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.6), 0 0 30px rgba(0, 123, 255, 0.4);
}

.projects-section .card h3 {
  color: #00BFFF;
  font-size: 1.1rem;
}

.projects-section .card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-color);
}

/* Icon */
.project-card-icon {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.5rem;
  color: rgba(0, 140, 255, 0.4);
  opacity: 0.5;
}

/* =========================================
   CERTIFICATIONS + CONTACT (STACKED FIX ✅)
========================================= */
.cert-contact-section {
  padding: 60px 0;
  background: var(--bg-gradient-a);
}

/* ✅ MAIN FIX: Always 1 column (Contact will go below certifications) */
.cert-contact-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 28px;
  align-items: start;
}

/* Panels */
.panel-card,
.contact-panel {
  border-radius: 16px;
  padding: 24px;
  background-color: rgba(42, 42, 62, 0.55);
  border: 1px solid rgba(0, 123, 255, 0.25);
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.12);
  backdrop-filter: blur(14px);
}

.contact-panel { margin-top: 10px; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cert-card .card-content-wrapper { text-align: center; }

.cert-logo {
  width: 70px;
  height: auto;
  margin: 0 auto 12px auto;
}

.cert-card h3 {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 0.2rem;
}

.cert-card .cert-full-name {
  font-size: 14px;
  color: #a0a0a0;
  opacity: 0.8;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* CONTACT PANEL */
.contact-panel .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.contact-panel .contact-details-card,
.contact-panel .contact-form-card {
  background-color: rgba(42, 42, 62, 0.55);
  padding: 1.8rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 123, 255, 0.25);
  box-shadow: 0 0 18px rgba(0, 123, 255, 0.10);
}

.contact-panel .contact-details-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-panel .contact-details-card li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-color);
}

.contact-panel .contact-details-card li i {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.contact-panel form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: rgba(10, 10, 20, 0.55);
  color: var(--text-color);
  font-family: var(--font-family-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-panel input:focus,
.contact-panel textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.form-button-wrapper {
  display: flex;
  justify-content: center;
}

.contact-panel button.btn-primary {
  align-self: center;
  width: auto;
  padding: 0.8rem 2rem;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  color: white;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-panel button.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
}

/* Responsive */
@media (max-width: 1100px) {
  .contact-panel .contact-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* =========================================
   CAROUSELS (CORE SKILLS / TOOLS)
========================================= */
#core-skills-carousel-container,
#tools-container {
  height: 350px;
  position: relative;
}

#core-skills-carousel-container .wrapper,
#tools-container .wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  text-align: center;
  overflow: hidden;
  perspective: 1000px;
}

#core-skills-carousel-container .inner {
  --w: 95px;
  --h: 125px;
  --translateZ: calc((var(--w) + var(--h)) + 0px);
  --rotateX: -15deg;
  position: absolute;
  width: var(--w);
  height: var(--h);
  top: 35%;
  left: calc(50% - (var(--w) / 2) - 2.5px);
  z-index: 2;
  transform-style: preserve-3d;
  animation: rotating 20s linear infinite;
}

#tools-container .inner {
  --w: 100px;
  --h: 130px;
  --translateZ: calc((var(--w) + var(--h)) + 0px);
  --rotateX: -15deg;
  position: absolute;
  width: var(--w);
  height: var(--h);
  top: 35%;
  left: calc(50% - (var(--w) / 2) - 2.5px);
  z-index: 2;
  transform-style: preserve-3d;
  animation: rotating-reverse 20s linear infinite;
}

@keyframes rotating {
  from { transform: rotateX(var(--rotateX)) rotateY(0); }
  to { transform: rotateX(var(--rotateX)) rotateY(1turn); }
}

@keyframes rotating-reverse {
  from { transform: rotateX(var(--rotateX)) rotateY(0); }
  to { transform: rotateX(var(--rotateX)) rotateY(-1turn); }
}

#core-skills-carousel-container .card {
  position: absolute;
  border-radius: 12px;
  inset: 0;
  transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', var(--font-family-mono);
  font-weight: bold;
  padding: 0 5px;
  font-size: 11px;
  background: linear-gradient(145deg, #121a2f, #1b2340);
  border: 1px solid rgba(0, 140, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 153, 255, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#core-skills-carousel-container .card:hover {
  border-color: rgba(0, 191, 255, 1);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.7);
}

#tools-container .tool-card {
  position: absolute;
  border-radius: 10px;
  inset: 0;
  transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: linear-gradient(145deg, #121a2f, #1b2340);
  border: 1px solid rgba(0, 140, 255, 0.25);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  box-shadow: 0 0 12px rgba(0, 153, 255, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

#tools-container .tool-card:hover {
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.7);
  border-color: rgba(0, 191, 255, 1);
  background-color: rgba(46, 59, 85, 0.8);
}

#tools-container .tool-card img {
  width: 50px;
  height: 50px;
}

#tools-container .tool-card p {
  font-size: 0.8rem;
  text-align: center;
  color: #b9e6ff;
  margin-bottom: 0;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  background-color: var(--dark-bg);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-color);
  text-align: center;
}

.site-footer .container.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-copyright {
  margin: 0;
  font-size: 0.9rem;
  color: var(--secondary-color);
  line-height: 1.5;
}

.footer-tagline {
  margin: 0;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Button UX */
.btn-primary .spinner {
  display: none;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  width: 20px;
  height: 20px;
  animation: spin 1s ease-in-out infinite;
}

.btn-primary.is-loading .spinner { display: block; }
.btn-primary.is-loading .btn-text { display: none; }

.btn-primary.is-success {
  background: var(--accent-color);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer bug fix */
#tool-enlarge-overlay { display: none !important; }

/* =========================================
   RESPONSIVE FIXES
========================================= */
@media (min-width: 768px) {
  .navbar { padding: 0 3rem; }

  .hero-grid-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    text-align: left;
  }

  .social-uiverse {
    justify-content: flex-start;
    margin-top: 0;
  }

  .hero-identity-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
  }

  .hero-name { font-size: 5rem; }
  .hero-title { font-size: 1.8rem; }

  .about-section .two-column-layout {
    grid-template-columns: 2fr 1fr;
    text-align: left;
  }

  .cyber-stats-line {
    justify-content: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .cyber-stat {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
  }

  .cyber-stat-separator { display: none; }

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

@media (max-width: 1024px) {
  .hero-name { font-size: 2.8rem; }
  .hero-title { font-size: 1.3rem; }
  .hero-intro { font-size: 1rem; }
  .cyber-stat-value { font-size: 2rem; }
  .projects-grid-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }

  section { padding: 4rem 0; }

  .about-section .two-column-layout,
  .skills-grid,
  .projects-grid-container {
    grid-template-columns: 1fr;
  }

  .cyber-stats-line {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}
