/* 
  ========================================================================
  STYLE.CSS - NANDU SIVADAS CLOUD & DEVOPS PORTFOLIO
  ========================================================================
  Refinements:
  - Correct Visual Hierarchy: Main Section Headings (2.15rem) made significantly larger and prominent.
  - Inner card headings (projects, degrees, job titles) set to a balanced 1.15rem - 1.25rem size so main section headings dominate cleanly.
  - Profile Avatar Liquid Float & Breathing Glow Animation.
  - Clean 'WHAT I FOCUS ON' card styling (headings only, no sub-content).
  - Tech Stack Cards matching site dark cyan theme.
  - Get In Touch Translucent Background Layer.
  - Step-by-step educational comments for CSS rules.
  ========================================================================
*/

/* ------------------------------------------------------------------------
   STEP 1: ROOT DESIGN TOKENS & UNIFIED CYAN COLOR PALETTE
   ------------------------------------------------------------------------
*/
:root {
  /* Dark Theme Palette */
  --bg-main: #0b1120;
  --bg-card: #151e32;
  --bg-card-hover: #1e293b;
  --border-slate: #27354f;
  --border-cyan-subtle: rgba(0, 242, 254, 0.2);

  /* Primary Theme Accents (Vibrant Cyan & Electric Blue) */
  --cyan-accent: #00f2fe;
  --blue-accent: #38bdf8;
  --cyan-glow: rgba(0, 242, 254, 0.35);

  /* Text Colors */
  --text-white: #ffffff;
  --text-light: #f8fafc;
  --text-slate: #cbd5e1;
  --text-muted-light: #94a3b8;

  /* Typography & Transitions */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.25s ease-in-out;
}

/* ------------------------------------------------------------------------
   STEP 2: GLOBAL RESETS & BACKGROUND IMAGE OVERLAY (< 50% OPACITY)
   ------------------------------------------------------------------------
*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-slate);
  line-height: 1.55;
  font-size: 0.925rem;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .section-title, .hero-title, .card-heading {
  font-family: var(--font-heading);
}

/* Background Image Overlay (< 50% opacity) */
.bg-cloud-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('./bg_cloud.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: -2;
  pointer-events: none;
}

/* Ambient Canvas Particle Overlay */
#cloudBgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-slate);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-accent);
}

/* ------------------------------------------------------------------------
   STEP 3: UTILITY & UNIFIED ACCENT BUTTONS
   ------------------------------------------------------------------------
*/
.text-cyan { color: var(--cyan-accent) !important; }
.text-white { color: var(--text-white) !important; }
.text-slate { color: var(--text-slate) !important; }
.extra-small { font-size: 0.775rem; }

.bg-slate-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-slate);
}

.bg-dark-pill {
  background: rgba(15, 23, 42, 0.6) !important;
}

.bg-accent-subtle {
  background: rgba(0, 242, 254, 0.12) !important;
}

.bg-cyan-subtle-pill {
  background: rgba(0, 242, 254, 0.15) !important;
  color: var(--cyan-accent) !important;
}

.badge-accent-subtitle {
  color: var(--cyan-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.border-cyan-subtle {
  border-color: var(--border-cyan-subtle) !important;
}

.max-w-700 {
  max-width: 700px;
}

.py-2-5 {
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}

/* Electric Cyan 'Hire Me' Navbar Button */
.btn-hire-me-cyan {
  background: linear-gradient(135deg, var(--cyan-accent), var(--blue-accent));
  color: #020617 !important;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.38rem 1rem !important;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--cyan-glow);
  transition: var(--transition);
}

.btn-hire-me-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--cyan-glow);
}

/* Cyan Gradient Accent Button */
.btn-accent-cyan, .btn-accent {
  background: linear-gradient(135deg, var(--cyan-accent), var(--blue-accent));
  color: #020617 !important;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-accent-cyan:hover, .btn-accent:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.btn-outline-light-custom {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  border: 1px solid var(--border-cyan-subtle);
  border-radius: 10px;
  transition: var(--transition);
}

.btn-outline-light-custom:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------------
   STEP 4: NAVBAR (Sticky Header)
   ------------------------------------------------------------------------
*/
.custom-navbar {
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-cyan-subtle);
  padding: 0.5rem 0;
  z-index: 1050;
}

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

.brand-text {
  color: var(--text-white);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.custom-navbar .nav-link {
  color: var(--text-slate) !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem !important;
  white-space: nowrap;
  transition: var(--transition);
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--cyan-accent) !important;
}

/* ------------------------------------------------------------------------
   STEP 5: HERO SECTION & LIQUID FLOAT PROFILE AVATAR ANIMATION
   ------------------------------------------------------------------------
*/
.hero-wrapper {
  background: radial-gradient(circle at 50% 10%, rgba(23, 35, 59, 0.8) 0%, var(--bg-main) 70%);
}

.min-vh-70 {
  min-height: 70vh;
}

.hero-badge {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--cyan-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background-color: var(--cyan-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
}

.hero-title-lg {
  font-size: 2.5rem !important;
}

.accent-text {
  color: var(--cyan-accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  font-weight: 500;
}

.hero-desc {
  font-size: 0.975rem;
  color: var(--text-slate);
  max-width: 620px;
  line-height: 1.6;
}

.typing-cursor {
  animation: blink 0.7s infinite;
  font-weight: bold;
  color: var(--cyan-accent);
}

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

/* Stats Counter Bar */
.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.775rem;
  color: var(--text-slate);
}

/* CONCENTRIC CYAN RINGS PROFILE FRAME */
.profile-concentric-container {
  position: relative;
  width: 330px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.concentric-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 254, 0.25);
  pointer-events: none;
  animation: ring-pulse 6s ease-in-out infinite alternate;
}

.ring-1 { width: 320px; height: 320px; border-color: rgba(0, 242, 254, 0.15); }
.ring-2 { width: 290px; height: 290px; border-color: rgba(56, 189, 248, 0.25); animation-delay: 1.5s; }
.ring-3 { width: 260px; height: 260px; border-color: rgba(0, 242, 254, 0.35); animation-delay: 3s; }

@keyframes ring-pulse {
  0% { transform: scale(0.98); opacity: 0.6; }
  100% { transform: scale(1.03); opacity: 1; }
}

/* Ultra-Smooth Liquid Float Profile Avatar Animation */
.profile-avatar-circle {
  width: 235px;
  height: 235px;
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid var(--cyan-accent);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.4);
  position: relative;
  z-index: 2;
  animation: avatar-liquid-float 5s ease-in-out infinite alternate;
}

@keyframes avatar-liquid-float {
  0% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 45px rgba(0, 242, 254, 0.55), 0 0 15px rgba(56, 189, 248, 0.4);
  }
  100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
  }
}

.profile-img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Info Pills */
.floating-pill-card {
  position: absolute;
  z-index: 3;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan-subtle);
  padding: 8px 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: pill-float 4s ease-in-out infinite alternate;
}

@keyframes pill-float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.pill-top-left {
  top: 5%;
  left: -8%;
}

.pill-bottom-right {
  bottom: 5%;
  right: -8%;
  animation-delay: 2s;
}

.pill-icon {
  font-size: 1.2rem;
}

/* ------------------------------------------------------------------------
   STEP 6: SEAMLESS AUTO-SCROLLING TECH TICKER
   ------------------------------------------------------------------------
*/
.tech-ticker-container {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.ticker-track {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: flex;
  width: max-content;
  animation: ticker-slide 30s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-cyan-subtle);
  padding: 6px 16px;
  border-radius: 20px;
  margin-right: 1.25rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.ticker-item:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
}

/* ------------------------------------------------------------------------
   STEP 7: PROMINENT MAIN SECTION HEADINGS (2.15rem) & BALANCED CARD HEADINGS
   ------------------------------------------------------------------------
*/
/* Prominent Main Section Headings */
.section-title {
  font-size: 2.15rem !important; /* Prominent, larger main section titles */
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.25rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-tagline {
  letter-spacing: 0.3px;
}

.about-text-lg {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-slate);
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan-subtle);
  border-radius: 14px;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.content-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan-accent);
  transform: translateY(-3px);
}

.border-cyan-glow-card {
  border: 1px solid var(--cyan-accent) !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.18);
}

/* Inner Card Headings (Balanced 1.15rem so main section titles dominate) */
.card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.card-heading-sm {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-white);
}

.card-text {
  color: var(--text-slate);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Technical Skills Glass Cards */
.skill-glass-card {
  background: rgba(21, 30, 50, 0.85) !important;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan-subtle);
  border-radius: 14px;
  transition: var(--transition);
}

.skill-glass-card:hover {
  border-color: var(--cyan-accent) !important;
  background: rgba(30, 41, 59, 0.92) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.15);
}

.skill-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-cyan-subtle);
  color: var(--text-slate);
  font-size: 0.775rem;
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-block;
  transition: var(--transition);
}

.skill-chip:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
}

/* Tech Stack Cards */
.tech-stack-card {
  background: rgba(21, 30, 50, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan-subtle);
  border-radius: 16px;
  transition: var(--transition);
}

.tech-stack-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--cyan-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.2);
}

.project-list {
  padding-left: 1.2rem;
  font-size: 0.875rem;
  color: var(--text-slate);
}

.project-list li {
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.cert-badge-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------------
   STEP 8: ULTRA-SMOOTH 3D GPU-ACCELERATED SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------------------
*/
.reveal-fade-up, .reveal-slide-left, .reveal-slide-right, .reveal-scale-up {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up { transform: translate3d(0, 35px, 0); }
.reveal-slide-left { transform: translate3d(-50px, 0, 0); }
.reveal-slide-right { transform: translate3d(50px, 0, 0); }
.reveal-scale-up { transform: scale3d(0.93, 0.93, 1); }

.reveal-fade-up.active, .reveal-slide-left.active, .reveal-slide-right.active, .reveal-scale-up.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* ------------------------------------------------------------------------
   STEP 9: CONTACT FORM & FOOTER
   ------------------------------------------------------------------------
*/
.contact-section-wrapper {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-cyan-subtle);
  border-bottom: 1px solid var(--border-cyan-subtle);
  position: relative;
  z-index: 3;
}

.info-label {
  display: block;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted-light);
}

.info-value {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
}

.info-link {
  color: var(--cyan-accent);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

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

.form-control-custom {
  background: #0f172a !important;
  border: 1px solid var(--border-cyan-subtle) !important;
  color: var(--text-white) !important;
  font-size: 0.875rem;
  border-radius: 8px;
}

.form-control-custom:focus {
  border-color: var(--cyan-accent) !important;
  box-shadow: 0 0 8px var(--cyan-glow) !important;
}

.form-control-custom::placeholder {
  color: #64748b;
}

.bg-dark-pill {
  background: rgba(15, 23, 42, 0.75) !important;
  transition: all 0.25s ease-in-out;
}

.focus-item {
  transition: all 0.25s ease-in-out;
}

.focus-item:hover {
  background: rgba(0, 242, 254, 0.08) !important;
  border-color: var(--cyan-accent) !important;
  transform: translateX(4px);
}

.footer {
  background: #070b14;
  position: relative;
  z-index: 2;
}

/* Responsive Tweaks */
@media (max-width: 767.98px) {
  .section-title { font-size: 1.65rem !important; }
  .hero-title-lg { font-size: 1.85rem !important; }
  .profile-concentric-container { width: 260px; height: 260px; }
  .profile-avatar-circle { width: 185px; height: 185px; }
  .ring-1 { width: 250px; height: 250px; }
  .ring-2 { width: 230px; height: 230px; }
  .ring-3 { width: 210px; height: 210px; }
  .floating-pill-card { padding: 4px 10px; font-size: 0.75rem; }
}
