/* 
   ========================================================================
   FUTURE DARK THEME & GLASSMORPHISM STYLING
   Client: Kandula Praveen Kumar (Java Full Stack Developer)
   Author: Antigravity
   ========================================================================
*/

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

:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f162a;
  --bg-glass: rgba(15, 22, 42, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.15);
  
  --color-cyan: #00f2fe;
  --color-purple: #9d4edd;
  --color-blue: #4facfe;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  --font-sans: 'Poppins', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-neon-cyan: 0 0 15px rgba(0, 242, 254, 0.4);
  --shadow-neon-purple: 0 0 15px rgba(157, 78, 221, 0.4);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-blue), var(--color-purple));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
}

/* --- Interactive Canvas Background --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: all;
  background: radial-gradient(circle at 50% 50%, #0e172c 0%, #0a0f1d 100%);
}

.background-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.08) 0%, rgba(157, 78, 221, 0.03) 50%, transparent 100%);
  top: -100px;
  right: -100px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: floatGlow 15s infinite alternate ease-in-out;
}

.background-glow-2 {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.08) 0%, rgba(0, 242, 254, 0.03) 50%, transparent 100%);
  bottom: -150px;
  left: -150px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: floatGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 50px) scale(1.1); }
}

/* --- Helper Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 10%;
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  border-radius: 2px;
}

/* --- Glassmorphism Card Definition --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 12px 40px 0 rgba(0, 242, 254, 0.15);
  transform: translateY(-5px);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* --- Glassmorphic Navbar --- */
.navbar {
  background: rgba(10, 15, 29, 0.65) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(10, 15, 29, 0.85) !important;
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--color-text-primary) !important;
  display: flex;
  align-items: center;
}

.brand-glow {
  color: var(--color-cyan);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.navbar-nav .nav-link {
  color: var(--color-text-secondary) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition-smooth);
  position: relative;
}

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-cyan);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-neon-cyan);
}

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

.navbar-toggler {
  border: none;
  outline: none !important;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28248, 250, 252, 0.85%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* --- Buttons & Call To Actions --- */
.btn-neon-glow {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: var(--bg-primary);
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 0.75rem 1.75rem;
  box-shadow: var(--shadow-neon-cyan);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-neon-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
  color: #000;
}

.btn-outline-neon {
  background: transparent;
  color: var(--color-cyan);
  border: 2px solid var(--color-cyan);
  border-radius: 30px;
  padding: 0.65rem 1.65rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline-neon:hover {
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  color: var(--color-cyan);
  transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.typing-container {
  height: 40px;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.typed-cursor {
  color: var(--color-cyan);
  animation: blink 0.7s infinite;
}

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

.hero-bio {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--bg-glass);
  color: var(--color-cyan);
  border-color: var(--color-cyan);
  transform: translateY(-4px) rotate(8deg);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

/* 3D Canvas Area for Three.js inside Hero */
.hero-canvas-container {
  height: 450px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hero-3d-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#hero-3d-canvas:active {
  cursor: grabbing;
}

.floating-card-badge {
  position: absolute;
  padding: 0.8rem 1.2rem;
  background: rgba(15, 22, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.badge-java {
  top: 15%;
  left: 5%;
  animation: floatElement 4s infinite ease-in-out;
}

.badge-react {
  bottom: 20%;
  right: 5%;
  animation: floatElement 5s infinite ease-in-out alternate;
}

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

/* --- Sections Core Settings --- */
.section-padding {
  padding: 100px 0;
}

/* --- About Section --- */
.about-image-wrapper {
  position: relative;
  display: inline-block;
}

.about-image-border {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-purple);
  border-radius: 20px;
  top: 15px;
  left: 15px;
  z-index: -1;
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-image-border {
  top: 8px;
  left: 8px;
  border-color: var(--color-cyan);
}

.profile-img-placeholder {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(157, 78, 221, 0.1));
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-icon {
  font-size: 7rem;
  color: var(--color-cyan);
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.4));
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  font-family: var(--font-mono);
  letter-spacing: -1px;
}

/* --- Technical Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-card {
  padding: 2rem;
  height: 100%;
}

.skill-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--color-cyan);
  transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon-box {
  background: var(--color-cyan);
  color: var(--bg-primary);
  box-shadow: var(--shadow-neon-cyan);
  transform: rotateY(180deg);
}

.skill-category-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.skill-item {
  margin-bottom: 1.3rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.skill-name {
  font-weight: 600;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.skill-item:hover .skill-name {
  color: var(--color-cyan);
}

.skill-level-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 1px 8px;
  border-radius: 4px;
  text-shadow: 0 0 5px rgba(0, 242, 254, 0.3);
  transition: var(--transition-smooth);
}

.skill-item:hover .skill-level-badge {
  background: var(--color-cyan);
  color: var(--bg-primary);
  text-shadow: none;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.skill-progress-wrapper {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.skill-progress-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-cyan));
  width: 0%;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.skill-item:hover .skill-progress-bar {
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

.skill-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
}

.skill-badge:hover {
  background: rgba(157, 78, 221, 0.15);
  border-color: var(--color-purple);
  color: var(--color-text-primary);
  transform: scale(1.05);
}

/* --- Work Experience (3D Timeline) --- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, var(--color-cyan), var(--color-purple));
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 30px;
  position: relative;
  width: 50%;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 30px;
  padding-right: 0;
  left: 50%;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border: 4px solid var(--color-cyan);
  border-radius: 50%;
  position: absolute;
  right: -10px;
  top: 20px;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
  transition: var(--transition-smooth);
}

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

.timeline-item:hover .timeline-dot {
  background: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 1);
  transform: scale(1.2);
}

.timeline-card {
  padding: 2.2rem;
  width: 100%;
}

.timeline-date {
  font-family: var(--font-mono);
  color: var(--color-cyan);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  border-bottom: 1px dashed rgba(0, 242, 254, 0.3);
  padding-bottom: 2px;
}

.timeline-role {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.timeline-desc-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.timeline-desc-list li {
  margin-bottom: 0.6rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.timeline-desc-list li::marker {
  color: var(--color-cyan);
}

.timeline-desc-list li strong {
  color: var(--color-text-primary);
}

/* --- Featured Projects Showcase --- */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card-image-box {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  background: linear-gradient(135deg, rgba(15, 22, 42, 0.9), rgba(10, 15, 29, 0.95));
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
}

.project-card-image-box i {
  font-size: 4.5rem;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.2));
  transition: var(--transition-smooth);
}

.project-card:hover .project-card-image-box i {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.5));
}

.project-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  transition: var(--transition-smooth);
}

.project-card:hover .project-title {
  color: var(--color-cyan);
}

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

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tech-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--color-cyan);
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Education Section --- */
.education-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.education-card {
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.edu-icon-container {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--color-purple);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.1);
}

.education-card:hover .edu-icon-container {
  background: var(--color-purple);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-neon-purple);
}

.edu-duration {
  font-family: var(--font-mono);
  color: var(--color-purple);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.edu-degree {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.edu-institute {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.edu-location {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Contact & Footer --- */
.contact-details-box {
  padding: 2.5rem;
  height: 100%;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-info-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-info-item:hover .contact-info-icon-box {
  background: var(--color-cyan);
  color: var(--bg-primary);
  box-shadow: var(--shadow-neon-cyan);
}

.contact-info-content h5 {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.contact-info-content p {
  margin: 0;
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 1.05rem;
}

.contact-info-content a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-info-content a:hover {
  color: var(--color-cyan);
}

.contact-form-box {
  padding: 2.5rem;
}

.floating-input-group {
  position: relative;
  margin-bottom: 2rem;
}

.floating-input-group input,
.floating-input-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.floating-input-group textarea {
  min-height: 150px;
  resize: vertical;
}

.floating-input-group label {
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  color: var(--color-text-secondary);
  pointer-events: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.floating-input-group input:focus,
.floating-input-group textarea:focus,
.floating-input-group input:valid,
.floating-input-group textarea:valid {
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
  background: rgba(0,0,0,0.1);
}

.floating-input-group input:focus ~ label,
.floating-input-group textarea:focus ~ label,
.floating-input-group input:valid ~ label,
.floating-input-group textarea:valid ~ label {
  top: -10px;
  left: 0.8rem;
  font-size: 0.75rem;
  padding: 0 0.4rem;
  background: #0d1428;
  color: var(--color-cyan);
  border-radius: 4px;
}

/* Success Form Overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  border-radius: 16px;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.success-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 2px solid var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-cyan);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-neon-cyan);
}

.footer {
  border-top: 1px solid var(--border-glass);
  padding: 3rem 0;
  background: rgba(10, 15, 29, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
  position: relative;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: inline-block;
  text-decoration: none;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- Responsive Adaptability Rules --- */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  .typing-container {
    font-size: 1.4rem;
  }
  .hero-canvas-container {
    height: 350px;
    margin-top: 2rem;
  }
  .timeline-container::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
  }
  .timeline-item:nth-child(even) {
    left: 0;
    padding-left: 45px;
  }
  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }
  .hero-section {
    padding-top: 130px;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .social-links {
    justify-content: center;
  }
  .education-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
  }
  .edu-icon-container {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .typing-container {
    font-size: 1.2rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .typing-container {
    font-size: 1.0rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
}
