/* ===========================================
   Dhrubo Basumatary — Portfolio Stylesheet
   Theme: Modern Light Blue Glassmorphism
   =========================================== */

/* ── CSS Variables ── */
:root {
  --primary: #6d5bff;
  --primary-light: #8b7bff;
  --primary-dark: #4732d9;
  --accent: #22d3ee;
  --accent-2: #fb7185;

  --bg: #f4f7ff;
  --bg-warm: #e0e7ff;
  --text-dark: #060818;
  --text-body: #0f172a;
  --text-light: rgba(15, 23, 42, 0.65);

  --glass-bg: rgba(255, 255, 255, 0.22);
  --glass-bg-dark: rgba(10, 14, 35, 0.60);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-shadow: rgba(59, 130, 246, 0.28);
  --glass-shadow-lg: rgba(59, 130, 246, 0.22);
  --glass-glow: rgba(59, 130, 246, 0.18);
  --glass-blur: blur(30px) saturate(170%);

  --radius-sm: 13px;
  --radius-md: 21px;
  --radius-lg: 32px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

:root[data-theme="dark"] {
  --bg: #070b19;
  --bg-warm: #0b122c;
  --text-dark: #f8fafc;
  --text-body: #dbeafe;
  --text-light: rgba(226, 232, 240, 0.72);

  --glass-bg: rgba(8, 14, 33, 0.60);
  --glass-bg-dark: rgba(5, 10, 25, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: rgba(23, 37, 77, 0.28);
  --glass-shadow-lg: rgba(29, 78, 216, 0.20);
  --glass-glow: rgba(56, 86, 255, 0.12);
}

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

html {
  font-size: 13px;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(70px, 10vh, 100px);
  will-change: scroll-position;
  touch-action: manipulation;
  overscroll-behavior: none;
}

body {
  font-family: 'Ariel', sans-serif;
  line-height: 1.6;
  color: var(--text-body);
  overflow-x: hidden;
  min-height: 100dvh;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 18%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-warm) 100%);
  transform: translateZ(0);
  will-change: transform;
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
}


/* Reduced motion support */
@supports (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-weight: 550;
  line-height: 1.25;
  color: rgb(15, 50, 102);
}

a {
  text-decoration: none;
}

.container {
  --container-max: 5800px;
  --container-padding: clamp(1rem, 5vw, 2rem);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
  box-sizing: border-box;
}

/* ── Glassmorphism Utilities ── */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.1);
  backdrop-filter: blur(50px) saturate(200%) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 80px var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.glass-panel:hover::before {
  left: 100%;
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 35px 100px var(--glass-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* About glass panels */
.about-text {
  /* Luxury tint: requested #7C8ED2 */
  background: linear-gradient(135deg, rgba(124, 142, 210, 0.28), rgba(124, 142, 210, 0.10));
  border-color: rgba(124, 142, 210, 0.40);

  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(124, 142, 210, 0.35);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin: 1rem 0;
}

.profile-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 4px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* Skills (simpler, less bulky) */
.skill-item {
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(114, 143, 197, 0.28);
  border-radius: 18px;
  padding: 0.7rem 0.8rem;
  text-align: center;
  box-shadow: none;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  margin: 0;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px) scale(1.01);
  box-shadow: none;
}


.skill-item h3 {
  margin-bottom: 0.6rem;
  background: linear-gradient(var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.02rem;
}

.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
  backdrop-filter: var(--glass-blur) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  color: var(--text-dark);
}

.glass-card:hover {
  transform: translateY(-16px) scale(1.02) rotateX(3deg);
  box-shadow: 0 32px 80px var(--glass-shadow-lg), 0 0 0 1px var(--glass-glow);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 1);
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--primary-dark);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-sm);
  padding: 0.85rem 2.2rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--glass-glow);
  color: var(--primary);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  height: 60px;
  width: 100%;
  background: rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  z-index: 1000;
  padding: 0.7rem 0;
  min-height: 64px;
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px var(--glass-shadow);
}

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

.logo {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light), #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(16, 185, 129, 0.3);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.03) rotateY(5deg);
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(16, 185, 129, 0.4);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary-dark);
}

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

/* Keyboard focus styling (do not affect mouse users) */
.nav-links a:focus-visible {
  outline: none;
  color: var(--primary-dark);
}

.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a:focus {
  outline: none;
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  padding: 0.6rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin-left: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.theme-toggle i {
  transition: transform 0.2s ease;
}

.theme-toggle.active i {
  transform: rotate(25deg);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
  background: linear-gradient(135deg, rgba(124, 142, 210, 0.28) 0%, rgba(124, 142, 210, 0.10) 100%);
}

.hero-content {
  max-width: 800px;
  padding: 0 1rem;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-content p {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-bottom: 2.5rem;
  color: var(--text-body);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.28), 0 0 45px rgba(16, 185, 129, 0.18);
}

.hero-subtitle {
  color: var(--text-body);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
  animation: fadeInUp 1s ease 0.4s both;
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 35px rgba(59, 130, 246, 0.5);
  color: #fff;
}

.cta-btn:hover::before {
  opacity: 1;
}

/* ── Sections ── */
section {
  padding: 100px 0;
  position: relative;
  scroll-margin-top: clamp(70px, 8vh, 90px);
}

.videos-section {
  padding-top: 110px;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 3.5rem;
  color: var(--text-dark);
}

/* ── About ── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 1.4rem;
  color: var(--text-body);
  line-height: 1.7;
}

.profile-img:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 25px 60px rgba(59, 130, 246, 0.3);
  border-color: var(--primary-light);
}

/* ── Projects (Bento) ── */
.projects-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

/* Featured blocks */
.project-bento-main {
  grid-column: 1 / span 7;
  grid-row: span 2;
}

.project-bento-secondary {
  grid-column: 8 / span 5;
  grid-row: span 1;
}

/* Remaining cards: default sizing */
.projects-bento>.project-card {
  grid-column: span 4;
  grid-row: auto;
}

/* Fallback: if someone keeps old markup */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: 1400px;
  margin: 0 auto;
}


.project-card {
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.08);
}

.project-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.14);
}

.project-img {
  width: 100%;
  height: clamp(140px, 18vw, 190px);
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1.1rem;
}

.project-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--text-dark);
  letter-spacing: -0.2px;
}

.project-info p {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

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

.project-links a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  opacity: 0.95;
}

.project-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.3px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.project-links a:hover::after {
  width: 100%;
}


/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.3rem, 4vw, 2.2rem);
}

.skill-item h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.skill-bar {
  background: rgba(0, 0, 0, 0.06);
  height: 14px;
  width: 100%;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 2.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  display: none;
}

/* ── Contact ── */
.contact-form {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.28);
}

:root[data-theme="dark"] .contact-form {
  background: rgba(10, 15, 34, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .form-group input,
:root[data-theme="dark"] .form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-body);
}

:root[data-theme="dark"] .form-group input::placeholder,
:root[data-theme="dark"] .form-group textarea::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

:root[data-theme="dark"] .form-group input:focus,
:root[data-theme="dark"] .form-group textarea:focus {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.6);
}

/* ── Footer ── */
.footer {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-top: var(--glass-border);
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.footer-title {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-body);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  transition: color 0.3s, transform 0.3s;
  position: relative;
}

.social-link:hover {
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
}

.social-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.social-link:hover .social-icon {
  transform: scale(1.05);
}

.social-link[href*="instagram"] .social-icon {
  color: #E4405F;
}

.social-link[href*="facebook"] .social-icon {
  color: #1877F2;
}

.social-link[href*="github"] .social-icon {
  color: #181717;
  background: white;
  border-radius: 50%;
  padding: 4px;
}

.social-link[href*="linkedin"] .social-icon {
  color: #0A66C2;
}

.social-link[href*="youtube"] .social-icon {
  color: #FF0000;
}

.social-link span {
  font-size: 0.8rem;
  opacity: 0.9;
  color: var(--text-light);
  white-space: nowrap;
}

/* ── Videos Page ── */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
  transition: var(--transition);
  animation: fadeInUp 1s ease 0.3s both;
}

.back-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 35px rgba(59, 130, 246, 0.5);
  color: #fff;
}

.video-folder-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.15s both;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(60px, 10vh, 100px);
}

.video-card {
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.1);
  backdrop-filter: blur(50px) saturate(200%) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  animation: fadeInUp 1s ease both;
  position: relative;
}

.video-card:nth-child(1) {
  animation-delay: 0.2s;
}

.video-card:nth-child(2) {
  animation-delay: 0.4s;
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
  z-index: 1;
}

.video-card:hover::before {
  left: 100%;
}

.video-card:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 35px 100px var(--glass-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  touch-action: manipulation;
}

.video-player:fullscreen,
.video-player:-webkit-full-screen {
  border-radius: 0 !important;
}

.video-wrapper:has(.video-player:fullscreen),
.video-wrapper:has(.video-player:-webkit-full-screen) {
  overflow: hidden;
}

.video-info {
  padding: 1.8rem;
}

.video-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.video-info p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

.videos-subtitle {
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-light);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.1s both;
}

.back-btn {
  position: fixed;
  top: 90px;
  left: 28px;
  z-index: 1100;

  /* Small circular button */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;

  /* Glassmorphism background with watercolor pastel gradient */
  background: linear-gradient(135deg, rgba(124, 142, 210, 0.6), rgba(251, 113, 133, 0.4), rgba(34, 211, 238, 0.3));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);

  /* Watercolor soft shadow */
  box-shadow: 0 6px 20px rgba(124, 142, 210, 0.3), 0 0 40px rgba(251, 113, 133, 0.15);

  /* Icon styling */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;

  /* Smooth transitions */
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.back-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 30px rgba(124, 142, 210, 0.4), 0 0 50px rgba(251, 113, 133, 0.2);
  background: linear-gradient(135deg, rgba(124, 142, 210, 0.8), rgba(251, 113, 133, 0.5), rgba(34, 211, 238, 0.4));
  color: #fff;
}

.back-btn i {
  pointer-events: none;
}

.videos-section .back-btn {
  position: fixed;
  top: 90px;
  left: 28px;
  z-index: 1100;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --container-max: 1000px;
  }

  .navbar {
    padding: clamp(0.8rem, 3vh, 1.2rem) 0;
  }

  .hero {
    padding-top: clamp(80px, 15vh, 120px);
  }
}

@media (max-width: 992px) {
  .about-content {
    gap: clamp(2rem, 8vw, 3.5rem);
  }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 320px);
    height: 100vh;
    padding: 6rem 1.5rem 2rem;
    flex-direction: column;
    gap: 1.1rem;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.16);
    transition: right 0.35s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    backdrop-filter: var(--glass-blur) saturate(180%);
    width: 100%;
    height: calc(100vh - 70px);
    text-align: center;
    transition: var(--transition-fast);
    padding: 2rem 0;
    z-index: 1000;
    gap: 0;
    border-top: 1px solid var(--glass-border);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    padding: 1rem 0;
  }

  .nav-links a {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition-fast);
  }

  .nav-links a:hover {
    color: var(--primary);
    transform: scale(1.05);
  }

  .hero {
    padding-top: 60px;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .projects-bento {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .project-bento-main,
  .project-bento-secondary {
    grid-column: auto;
    grid-row: auto;
  }

  .projects-bento>.project-card {
    grid-column: auto;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 70px;
  }

  .video-info {
    padding: 1.4rem;
  }

  .page-header {
    padding: 120px 0 50px;
  }

  section {
    padding: 70px 0;
  }

  .contact-form {
    padding: 1.8rem;
  }

  .social-links {
    gap: 1.2rem;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .social-link span {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .container {
    padding: 0 0.75rem;
    max-width: 100%;
  }

  * {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .cta-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }

  .profile-img {
    max-width: 220px;
  }

  .project-img {
    height: 160px;
  }

  .project-info,
  .video-info {
    padding: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  .social-links {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-link {
    padding: 1rem 1.2rem !important;
    min-width: 60px;
  }

  .social-icon {
    width: 20px;
    height: 20px;
  }

  .social-link span {
    font-size: 0.65rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: var(--transition);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .music-float-btn {
    top: 84px;
    right: 16px;
    width: 46px;
    height: 46px;
  }

  .music-player-popup {
    margin: 88px 16px 0 0;
    max-width: min(92vw, 340px);
  }
}

/* ===========================================
   MUSIC PLAYER — Floating Button & Popup
   Glassmorphism + Watercolor Aesthetic
   =========================================== */

/* ── Floating Music Button (small, glassmorphism, watercolor) ── */
.music-float-btn {
  position: fixed;
  top: 90px;
  right: 28px;
  z-index: 1100;

  /* Small circular button */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  /* Glassmorphism background with watercolor pastel gradient */
  background: linear-gradient(135deg, rgba(124, 142, 210, 0.6), rgba(251, 113, 133, 0.4), rgba(34, 211, 238, 0.3));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);

  /* Watercolor soft shadow */
  box-shadow: 0 6px 20px rgba(124, 142, 210, 0.3), 0 0 40px rgba(251, 113, 133, 0.15);

  /* Icon styling */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;

  /* Smooth transitions */
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle floating animation for the button */
.music-float-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 30px rgba(124, 142, 210, 0.4), 0 0 50px rgba(251, 113, 133, 0.2);
  background: linear-gradient(135deg, rgba(124, 142, 210, 0.8), rgba(251, 113, 133, 0.5), rgba(34, 211, 238, 0.4));
  color: #fff;
}

/* Pulsing ring effect for the floating button */
.music-float-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: musicPulse 2s ease-in-out infinite;
}

/* Pulse keyframes */
@keyframes musicPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

/* ── Music Player Overlay (background when popup is open) ── */
.music-player-overlay {
  /* Hidden by default */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: flex-end;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

/* When active (shown) */
.music-player-overlay.active {
  display: flex;
}

/* Fade-in animation for overlay */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── Music Player Popup (the modal card) ── */
.music-player-popup {
  /* Glassmorphism card */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px;

  /* Watercolor-style soft shadow with multiple colors */
  box-shadow:
    0 30px 80px rgba(124, 142, 210, 0.25),
    0 0 60px rgba(251, 113, 133, 0.10),
    0 0 100px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  /* Position near the floating button (top-right) */
  margin: 96px 90px 0 0;

  /* Sizing */
  width: 90%;
  max-width: 360px;
  padding: 2rem 1.5rem 1.8rem;
  position: relative;

  /* Smooth entrance animation — scales & slides from top-right near button */
  animation: popupScaleIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top right;
}

/* Entrance animation: scales up from small + slides in from top-right */
@keyframes popupScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px) translateX(20px);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05) translateY(2px) translateX(-2px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0) translateX(0);
  }
}

/* ── Close Button (top-right corner) ── */
.music-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  line-height: 1;
}

.music-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg) scale(1.1);
  color: #fff;
}

/* ── Header section (icon + song title + artist) ── */
.music-header {
  text-align: center;
  margin-bottom: 0.8rem;
  color: #fff;
}

.music-header i {
  font-size: 1.9rem;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(124, 142, 210, 0.3));
}

.music-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0.2rem 0 0.1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.music-header .music-artist {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-weight: 400;
}

/* ── Album Art (watercolor circle) ── */
.music-art-wrapper {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.music-art-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;

  /* Watercolor gradient — soft, blended pastel colors */
  background: linear-gradient(135deg,
      rgb(91, 123, 240),
      rgba(127, 9, 106, 0.979),
      rgb(4, 101, 116),
      rgba(167, 139, 250, 0.5));

  /* Watercolor blur/softness effect */
  filter: blur(0.6px) brightness(1.05);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);

  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 30px rgba(124, 142, 210, 0.3),
    inset 0 -4px 10px rgba(255, 255, 255, 0.2);

  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);

  /* Spinning animation while playing */
  animation: none;
  transition: all 0.5s ease;
}

/* Spin animation when music is playing */
.music-art-circle.spinning {
  animation: spinDisc 4s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* ── Controls (play/pause button) ── */
.music-controls {
  display: flex;
  justify-content: center;
  margin: 0.6rem 0;
}

.music-control-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.music-control-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(124, 142, 210, 0.3);
}

/* ── Progress bar ── */
.music-progress-container {
  margin: 0.8rem 0 0.5rem;
}

.music-progress-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  transition: height 0.2s;
}

.music-progress-bar:hover {
  height: 6px;
}

/* Custom slider thumb */
.music-progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  border: 2px solid rgba(124, 142, 210, 0.6);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Firefox thumb */
.music-progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  border: 2px solid rgba(124, 142, 210, 0.6);
  cursor: pointer;
}

/* Time display */
.music-time-display {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 0.3rem;
  letter-spacing: 0.5px;
}

/* ── Volume slider ── */
.music-volume-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.music-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  border: 2px solid rgba(124, 142, 210, 0.6);
  cursor: pointer;
}

.music-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  border: 2px solid rgba(124, 142, 210, 0.6);
  cursor: pointer;
}

/* ── Responsive for mobile (Bootstrap friendly) ── */
@media (max-width: 768px) {
  .music-float-btn {
    top: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .back-btn {
    top: 80px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  .music-player-popup {
    max-width: 320px;
    padding: 1.5rem 1.2rem 1.5rem;
  }

  .music-art-circle {
    width: 75px;
    height: 75px;
    font-size: 1.6rem;
  }

  .music-control-btn {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .music-header h4 {
    font-size: 1rem;
  }

  .music-header i {
    font-size: 1.6rem;
  }

  .music-close-btn {
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .music-float-btn {
    top: 70px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .back-btn {
    top: 70px;
    left: 15px;
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .music-player-popup {
    max-width: 290px;
    padding: 1.2rem 1rem 1.2rem;
    border-radius: 22px;
  }

  .music-art-circle {
    width: 65px;
    height: 65px;
    font-size: 1.4rem;
  }

  .music-control-btn {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .music-progress-bar {
    height: 3px;
  }

  .music-volume-container {
    font-size: 0.75rem;
  }
}

/* Custom Navigation Links Styling ok you can disable it to make it like before, here the problem is that it doesnt work for laptop */
.nav-links {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 0.1rem;
  width: 30%;
  height: 700%;
  padding: 0.9rem 0.91rem;
  background: rgb(91, 201, 252);
  border-radius: var(--radius-sm);
}
