/* ==========================================================
   ROOT VARIABLES — Tweak colors, fonts, spacing here
   ========================================================== */
:root {
  /* Background shades (deep slate / navy) */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f172a;
  --bg-tertiary: #131a2e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Accent — electric blue / cyan gradient */
  --accent: #3b82f6;
  --accent-2: #06b6d4;
  --accent-glow: rgba(59, 130, 246, 0.4);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  /* Effects */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================
   GLOBAL RESET & BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* offset for fixed navbar */
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  /* Subtle radial glow background */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-accent);
  border-radius: 10px;
}

/* ==========================================================
   UTILITY CLASSES
   ========================================================== */
.text-accent { color: var(--accent) !important; }
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================
   BUTTONS — Override Bootstrap defaults
   ========================================================== */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.55);
  color: #fff;
}

.btn-outline-light-custom {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  padding: 1.1rem 0;
  transition: var(--transition);
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1030;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.7rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px var(--accent-glow);
  display: inline-block;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-primary) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.btn-download-cv {
  padding: 0.55rem 1.2rem !important;
  font-size: 0.9rem !important;
}

/* Toggler */
.navbar-toggler {
  border: 1px solid var(--border-strong);
  padding: 0.4rem 0.6rem;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--accent-glow);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -150px; left: -150px;
  opacity: 0.15;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--accent-2);
  bottom: -100px; right: -100px;
  opacity: 0.15;
}
.shape-3 {
  width: 300px; height: 300px;
  background: #8b5cf6;
  top: 40%; left: 50%;
  opacity: 0.08;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}

.wave {
  display: inline-block;
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-typed-wrap {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}
.typed-label {
  margin-right: 0.5rem;
}
.typed-output {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.typed-cursor {
  color: var(--accent) !important;
  font-weight: 300;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.social-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.social-icons {
  display: flex;
  gap: 0.7rem;
}
.social-icons a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.05rem;
  position: relative;
  backdrop-filter: blur(10px);
}
.social-icons a:hover {
  background: var(--gradient-accent);
  color: #fff;
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.social-icons a::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}
.social-icons a:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto;
  max-width: 100%;
}
.hero-image-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  padding: 4px;
  animation: rotate 12s linear infinite;
  opacity: 0.9;
}
.hero-image-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-primary);
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  border: 6px solid var(--bg-primary);
}

.floating-badge {
  position: absolute;
  width: 55px;
  height: 55px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}
.badge-1 { top: 10%; left: -10px; animation-delay: 0s; }
.badge-2 { bottom: 15%; right: -15px; animation-delay: 1.5s; }
.badge-3 { top: 50%; left: -25px; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ==========================================================
   SECTION COMMON
   ========================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================
   ABOUT SECTION
   ========================================================== */
.about-image-wrap {
  position: relative;
  display: inline-block;
}
.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.about-image:hover {
  transform: scale(1.02);
}

.about-stats-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  gap: 2rem;
  box-shadow: var(--shadow-md);
}
.about-stats-card .stat h3 {
  font-size: 1.8rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}
.about-stats-card .stat p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0;
}

.about-subtitle {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.info-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.info-value {
  color: var(--text-primary);
  font-weight: 500;
}

.skills-heading {
  margin-top: 2rem;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.skill-item:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.skill-header span:last-child {
  color: var(--accent);
}
.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-accent);
  border-radius: 10px;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ==========================================================
   EDUCATION TIMELINE
   ========================================================== */
.education {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  height: 100%;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.timeline-card-header i {
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
}
.timeline-card-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.8rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--bg-primary);
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  transform: scale(1.2);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  transition: var(--transition);
}
.timeline-content:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.04);
  transform: translateX(5px);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50px;
  margin-bottom: 0.6rem;
}
.timeline-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.timeline-content h5 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================
   PROJECTS
   ========================================================== */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.2);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.overlay-btn {
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: var(--transition);
}
.project-card:hover .overlay-btn {
  transform: translateY(0);
}
.overlay-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: var(--shadow-glow);
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-body h4 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.project-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.project-tags span {
  padding: 0.25rem 0.7rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* ==========================================================
   YOUTUBE SECTION
   ========================================================== */
.youtube {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-info {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  height: 100%;
}

.yt-stat-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
}
.yt-stat-card i {
  font-size: 2.5rem;
  color: #ef4444;
}
.yt-stat-card h3 {
  margin: 0;
  font-size: 1.8rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.yt-stat-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.youtube-info h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.yt-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.yt-features li {
  padding: 0.6rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}
.yt-features li:last-child { border-bottom: none; }
.yt-features li i {
  color: var(--accent);
  font-size: 1rem;
}

.video-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  background: var(--bg-card);
}
.video-thumb:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.video-thumb:hover img {
  transform: scale(1.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}
.video-thumb:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.15);
}

.video-thumb-info {
  padding: 1rem 1.2rem;
}
.video-thumb-info h5 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.video-thumb-info span {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.video-thumb-info span i {
  margin-right: 0.3rem;
  color: var(--accent);
}

/* ==========================================================
   CONTACT SECTION
   ========================================================== */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(20px);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.contact-info-card > * { position: relative; z-index: 1; }

.contact-info-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.contact-info-card > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contact-info-item:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}
.info-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 0.2rem;
}
.contact-info-item a,
.contact-info-item span {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}
.contact-info-item a:hover {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: 0.7rem;
}
.contact-socials a {
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.contact-socials a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(20px);
}

.form-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control::placeholder {
  color: var(--text-muted);
}
.form-control:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem var(--accent-glow);
  outline: none;
}
.form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.2);
}
.invalid-feedback {
  color: #fca5a5;
  font-size: 0.8rem;
}

.form-status {
  text-align: center;
  font-weight: 500;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--bg-secondary);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0 auto;
}
.text-lg-start .footer-tagline { margin: 0; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================
   SCROLL TO TOP BUTTON
   ========================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  z-index: 999;
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  transform: translateY(-5px);
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
  }
  .navbar-nav .nav-link {
    padding: 0.7rem 1rem !important;
  }
  .btn-download-cv {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }
  .hero {
    padding-top: 110px;
    text-align: center;
  }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-image-wrap {
    width: 300px;
    height: 300px;
    margin-top: 2rem;
  }
  .about-stats-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1.5rem;
    justify-content: center;
  }
  .footer-socials,
  .text-lg-end .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .section { padding: 70px 0; }
  .about-info-grid { grid-template-columns: 1fr; }
  .hero-image-wrap {
    width: 260px;
    height: 260px;
  }
  .floating-badge { width: 45px; height: 45px; font-size: 1rem; }
  .contact-form,
  .contact-info-card,
  .youtube-info,
  .timeline-card { padding: 1.5rem; }
  .scroll-top-btn { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 576px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .timeline { padding-left: 1.5rem; }
  .timeline::before { left: 6px; }
  .timeline-dot { left: -1.5rem; width: 14px; height: 14px; }
}