/* 
========================================================================
   STYLE.CSS - Modern AI Engineer & Software Developer Portfolio
   Brand: learnwithjoyshill
========================================================================
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- Design Tokens / Variables --- */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0c0a15;
  --bg-tertiary: #121022;
  
  --accent-cyan: #00f2fe;
  --accent-violet: #7303c0;
  --accent-magenta: #ec38bc;
  
  --accent-cyan-rgb: 0, 242, 254;
  --accent-violet-rgb: 115, 3, 192;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.05);
  --card-hover-bg: rgba(255, 255, 255, 0.04);
  --card-hover-border: rgba(0, 242, 254, 0.2);
  
  --shadow-glow-cyan: 0 0 20px rgba(0, 242, 254, 0.3);
  --shadow-glow-violet: 0 0 20px rgba(115, 3, 192, 0.3);
  --shadow-glow-magenta: 0 0 20px rgba(236, 56, 188, 0.3);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --header-height: 80px;
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

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

.glow-text {
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-violet {
  background: linear-gradient(135deg, #fff 30%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Custom Cursor --- */
.custom-cursor {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.3);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  mix-blend-mode: screen;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  box-shadow: var(--shadow-glow-cyan);
}

/* Custom Cursor Hover States */
.custom-cursor.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(var(--accent-cyan-rgb), 0.05);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* Hide default cursor on desktops */
@media (pointer: fine) {
  body, a, button, select, input, textarea {
    cursor: none;
  }
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-dot {
    display: none !important;
  }
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-pulse 1.5s ease-in-out infinite alternate;
}

.preloader-bar-container {
  width: 200px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  box-shadow: var(--shadow-glow-cyan);
  animation: bar-load 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logo-pulse {
  0% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 2px rgba(0,242,254,0.2)); }
  100% { transform: scale(1.02); opacity: 1; filter: drop-shadow(0 0 15px rgba(0,242,254,0.6)); }
}

@keyframes bar-load {
  0% { width: 0%; }
  30% { width: 40%; }
  70% { width: 75%; }
  100% { width: 100%; }
}

/* --- Particle Canvas Background --- */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ambient Background Glows */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-violet-rgb), 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

.glow-1 { top: 10%; left: -10%; }
.glow-2 { bottom: 20%; right: -10%; }
.glow-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(var(--accent-cyan-rgb), 0.05) 0%, rgba(0, 0, 0, 0) 70%); }

/* --- Scroll Progress Bar --- */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta), var(--accent-violet));
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

/* --- Header & Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 99;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span {
  color: var(--accent-cyan);
  -webkit-text-fill-color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(var(--accent-cyan-rgb), 0.2);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 100;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* Nav Toggle Active animation */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding-top: var(--header-height);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 25px;
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.05);
  animation: tag-glow 3s infinite alternate;
}

@keyframes tag-glow {
  0% { box-shadow: inset 0 0 5px rgba(0,242,254,0.05), 0 0 5px rgba(0,242,254,0.05); }
  100% { box-shadow: inset 0 0 15px rgba(0,242,254,0.15), 0 0 12px rgba(0,242,254,0.2); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-typing {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 25px;
  height: 48px; /* Prevents layouts shifts when typing */
  display: flex;
  align-items: center;
  text-shadow: var(--shadow-glow-cyan);
}

.typed-cursor {
  font-weight: 100;
  animation: blink 0.8s infinite;
  margin-left: 4px;
}

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

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 550px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  margin-bottom: 45px;
}

/* Magnetic Buttons base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-cyan);
  border: 1px solid transparent;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  background: rgba(0, 242, 254, 0.05);
  transform: translateY(-3px) scale(1.05);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Floating Code Frame Visuals */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-globe {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.2);
  position: relative;
  animation: rotate-globe 40s linear infinite;
}

.visual-globe::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 1px solid rgba(115, 3, 192, 0.1);
  animation: pulse-globe 4s ease-in-out infinite alternate;
}

.floating-card {
  position: absolute;
  background: rgba(12, 10, 21, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255,255,255,0.02);
  transition: var(--transition-smooth);
}

.fc-1 {
  top: 10%;
  left: -5%;
  animation: float-1 6s ease-in-out infinite;
}

.fc-2 {
  bottom: 15%;
  right: -5%;
  animation: float-2 7s ease-in-out infinite;
}

.floating-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan), 0 25px 45px rgba(0, 0, 0, 0.8);
}

.fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.25rem;
}

.fc-icon.icon-violet {
  color: var(--accent-magenta);
  background: rgba(236, 56, 188, 0.05);
  border-color: rgba(236, 56, 188, 0.15);
}

.fc-info span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fc-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

@keyframes rotate-globe {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-globe {
  0% { transform: scale(0.96); opacity: 0.5; }
  100% { transform: scale(1.04); opacity: 1; }
}

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

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

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.about-img-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.about-img-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.about-img-frame:hover::before {
  left: 125%;
}

.about-img-wrapper::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border-radius: 20px;
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  z-index: 1;
  transition: var(--transition-smooth);
}

.about-img-wrapper:hover::after {
  transform: translate(-8px, -8px);
  border-color: var(--accent-magenta);
  box-shadow: var(--shadow-glow-magenta);
}

.about-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.about-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-highlight {
  border-left: 3px solid var(--accent-cyan);
  padding-left: 20px;
  margin: 30px 0;
}

.about-highlight p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

.about-skills-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bullet-icon {
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
}

/* --- Stats Panel --- */
.stats-section {
  padding: 40px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 25px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--accent-cyan-rgb), 0.02) 0%, transparent 60%);
  z-index: -1;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.skill-card.skill-card-violet:hover {
  border-color: var(--accent-magenta);
  box-shadow: var(--shadow-glow-magenta);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.skill-card.skill-card-violet .skill-icon {
  color: var(--accent-magenta);
}

.skill-card:hover .skill-icon {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--accent-cyan);
  transform: scale(1.1);
}

.skill-card.skill-card-violet:hover .skill-icon {
  background: rgba(236, 56, 188, 0.05);
  border-color: var(--accent-magenta);
}

.skill-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.skill-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.skill-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/* Skills Rating Meter */
.skill-meter-container {
  margin-top: 15px;
}

.skill-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.skill-meter-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-meter-value {
  color: var(--accent-cyan);
  font-weight: 600;
}

.skill-card.skill-card-violet .skill-meter-value {
  color: var(--accent-magenta);
}

.skill-meter-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0; /* Dynamic loading in script.js */
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card.skill-card-violet .skill-meter-fill {
  background: linear-gradient(90deg, var(--accent-magenta), var(--accent-violet));
}

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.project-img-container {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 8, 0.8) 100%);
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 0.95;
}

.project-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.project-card:nth-child(even) .project-tag {
  color: var(--accent-magenta);
  background: rgba(236, 56, 188, 0.05);
  border-color: rgba(236, 56, 188, 0.1);
}

.project-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.project-link:hover {
  color: var(--accent-cyan);
}

.project-card:nth-child(even) .project-link:hover {
  color: var(--accent-magenta);
}

.project-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Certifications Section --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: var(--transition-smooth);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(var(--accent-cyan-rgb), 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cert-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.cert-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.cert-card:nth-child(even) .cert-badge {
  color: var(--accent-magenta);
  background: rgba(236, 56, 188, 0.04);
  border-color: rgba(236, 56, 188, 0.1);
}

.cert-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  font-weight: 500;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: auto;
}

.cert-card:nth-child(even) .cert-link {
  color: var(--accent-magenta);
}

.cert-link:hover {
  text-decoration: underline;
}

.cert-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.cert-link:hover svg {
  transform: translate(2px, -2px);
}

/* --- Education Timeline Section --- */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06) 10%, rgba(255,255,255,0.06) 90%, transparent);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 20px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--text-muted);
  z-index: 5;
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

/* Timeline element when in active viewport state */
.timeline-item.active .timeline-dot {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: scale(1.2);
}

.timeline-item:nth-child(even).active .timeline-dot {
  border-color: var(--accent-magenta);
  box-shadow: var(--shadow-glow-magenta);
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.timeline-item:nth-child(even) .timeline-card:hover {
  border-color: var(--accent-magenta);
  box-shadow: var(--shadow-glow-magenta);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 15px;
}

.timeline-item:nth-child(even) .timeline-date {
  color: var(--accent-magenta);
  background: rgba(236, 56, 188, 0.05);
  border-color: rgba(236, 56, 188, 0.1);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.timeline-institution {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 15px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 35px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.contact-item-details span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item-details p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.contact-form:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  margin-top: 15px;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: var(--transition-smooth);
  margin-bottom: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.03);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
  outline: none;
}

.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-cyan);
  border: 1px solid transparent;
  cursor: pointer;
  margin-top: 25px;
  transition: var(--transition-smooth);
}

.contact-form button[type="submit"]:hover {
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
  transform: translateY(-2px);
}

/* --- Toast Alert Notification --- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  border-radius: 8px;
  padding: 14px 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.toast-message {
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 0;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-icon {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-social-icon:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(12, 10, 21, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Reveal animations on scroll class definitions --- */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Media Queries --- */

/* Tablet view styling */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-typing {
    font-size: 1.8rem;
    height: 40px;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .skills-grid, .projects-grid, .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile view styling */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .header {
    background-color: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(15px);
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-secondary);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 99;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    height: auto;
    padding: 120px 0 80px 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-typing {
    font-size: 1.5rem;
    justify-content: center;
    height: 35px;
  }
  
  .hero-desc {
    margin: 0 auto 30px auto;
  }
  
  .hero-ctas {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-socials {
    flex-direction: column;
    gap: 15px;
  }
  
  .visual-globe {
    width: 250px;
    height: 250px;
  }
  
  .floating-card {
    padding: 10px 14px;
  }
  
  .fc-1 {
    left: -10px;
  }
  
  .fc-2 {
    right: -10px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .skills-grid, .projects-grid, .certs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Timeline Timeline line & card adjustments for small viewports */
  .timeline-line {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding: 10px 0 10px 40px;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .contact-actions .btn {
    width: 100%;
  }
  
  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    justify-content: center;
  }
}
