@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #0f1115;
  --surface-color: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --primary: #4ade80; /* vibrant green */
  --primary-glow: rgba(74, 222, 128, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 17, 21, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; display: inline-block; position: relative;}
h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-main); }
p { color: var(--text-muted); margin-bottom: 1rem; }

/* Screen reader only — SEO visible, visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Navigation — styles are inline on the element */

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc !important;
  letter-spacing: 1px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--primary) !important; }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Form Status */
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.form-status.success {
  color: var(--primary);
}
.form-status.error {
  color: #f87171;
}

/* Layout */
section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 150px;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-subtitle {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-image img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  border: 4px solid var(--primary);
  box-shadow: 0 0 50px var(--primary-glow);
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--bg-color);
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-left: 1rem;
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--primary-glow);
  color: var(--primary);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}
.social-links a {
  font-size: 1.5rem;
  color: var(--text-muted);
}
.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* Experience Section Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--border);
  top: 0;
  bottom: 0;
  left: 20px;
}

.timeline-item {
  padding: 2rem 0 2rem 60px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  left: 13px;
  top: 32px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-content {
  background: var(--surface-color);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.timeline-content:hover {
  transform: translateX(10px);
  background: var(--surface-hover);
}
.timeline-date {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.timeline-company {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Skills Section */
.skills-category {
  margin-bottom: 2.5rem;
}
.skills-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.skills-category-title i {
  font-size: 1rem;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.skill-tag i {
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.skill-tag:hover {
  background: rgba(0, 255, 170, 0.1);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 255, 170, 0.15);
}
.skill-tag:hover i {
  transform: scale(1.2) rotate(5deg);
}
/* Education Bento Section */
.education-bento {
  margin-top: 3rem;
}

.bento-education {
  min-height: 600px;
  width: 100%;
  background-color: #0d1117;
}

.bento-education::before {
  background-image: url('../assets/images/summa_cum_laude.jpg') !important;
  background-size: cover !important;
  background-position: center 10% !important; /* Slightly offset to frame faces perfectly */
  filter: brightness(0.9) blur(0px) !important;
}

.bento-education:hover::before {
  filter: brightness(1) blur(0px) !important;
  transform: scale(1.02) !important;
}

.bento-education .bento-content {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  padding: 3rem;
}

.bento-education h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.bento-education .university {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.bento-education .details {
  color: #eee;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.bento-education .description {
  color: #ccc;
  margin-bottom: 1.5rem;
  max-width: 800px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.bento-education .award-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 170, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .bento-education {
    min-height: 350px;
  }
  .bento-education .bento-content {
    padding: 2rem;
  }
  .bento-education h3 {
    font-size: 1.6rem;
  }
  .bento-education .university {
    font-size: 1.1rem;
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--surface-color);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img img {
  transform: scale(1.05);
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.project-tags span {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  color: var(--text-muted);
}
.project-info p {
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: 0 16px 16px 0;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}
.article-card:hover {
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.article-card h3 {
  margin-bottom: 0.8rem;
  color: var(--text-main);
  font-size: 1.2rem;
}
.article-card p {
  flex: 1;
}
.article-date {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.article-read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}
.article-card:hover .article-read-more {
  transform: translateX(5px);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  color: var(--text-muted);
}
.footer-seo {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--primary);
}

/* Animations (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Tabs Switcher */
.floating-tabs {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 0.5rem;
  gap: 0.5rem;
  z-index: 2000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Page Transition — View Transitions API */
.page-transition {
  display: none;
}

/* Page container */
.page-container {
  display: none;
  pointer-events: none;
}
.page-container.active {
  display: block;
  pointer-events: auto;
}

/* Custom View Transition Animations */
::view-transition-old(root) {
  animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) both fade-out, 0.5s cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}
::view-transition-new(root) {
  animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) both fade-in, 0.5s cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

@keyframes fade-in {
  from { opacity: 0; }
}
@keyframes fade-out {
  to { opacity: 0; }
}
@keyframes slide-from-right {
  from { transform: translateX(60px) scale(0.95); filter: blur(4px); }
}
@keyframes slide-to-left {
  to { transform: translateX(-60px) scale(0.95); filter: blur(4px); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ==========================================
   ADVANCED PERSONAL PAGE STYLES
   ========================================== */

/* Advanced Hero */
.advanced-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 3rem;
}
.advanced-hero-content {
  flex: 1;
}
.blur-reveal-text {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.personal-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 1.5rem;
  line-height: 1.8;
}
.hero-subtext {
  font-size: 2rem;
  margin-top: 1rem;
  color: var(--text-muted);
}
.letter-btn-wrapper {
  margin-top: 2rem;
  display: flex;
}
.letter-btn {
  position: relative;
  overflow: hidden;
  background: var(--text-main);
  color: var(--bg-color);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 50px;
}
.letter-btn-text {
  transition: transform 0.4s ease;
}
.letter-btn-icon {
  position: absolute;
  transform: translateX(-100px);
  transition: transform 0.4s ease;
  font-size: 1.2rem;
}
.letter-btn:hover .letter-btn-text {
  transform: translateX(100px);
}
.letter-btn:hover .letter-btn-icon {
  transform: translateX(0);
}

/* Bento Grid */
.bento-section {
  padding: 50px 5%;
}
.bento-header {
  text-align: center;
  margin-bottom: 3rem;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-color);
  transition: transform 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.bento-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  color: var(--text-main);
}
.bento-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.6) blur(2px);
}
.bento-item:hover::before {
  transform: scale(1.05);
  filter: brightness(0.8) blur(0px);
}
/* Assigning generated background images */
.bento-running::before { background-image: url('../assets/images/running.png'); }
.bento-reading::before { background-image: url('../assets/images/reading.png'); }
.bento-youtube::before { background-image: url('../assets/images/youtube.png'); }
.bento-cricket::before { background-image: url('../assets/images/cricket.png'); }
.bento-badminton::before { background-image: url('../assets/images/badminton.png'); }
.bento-dsa::before { background-image: url('../assets/images/dsa.png'); }

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-medium { grid-column: span 2; grid-row: span 1; }
.bento-small { grid-column: span 1; grid-row: span 1; }

/* Horizontal Scroll */
.horizontal-scroll-section {
  padding: 50px 0;
  overflow: hidden;
}
.horizontal-scroll-container {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 5%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.horizontal-scroll-container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.scroll-card {
  min-width: 350px;
  height: 450px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-color);
  border: 1px solid var(--border);
}
.scroll-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) brightness(0.5);
  transition: all 0.5s ease;
}
.scroll-card:hover img {
  filter: blur(0px) brightness(0.8);
  transform: scale(1.05);
}
.card-overlay {
  position: absolute;
  top: 0; left: 0;
  padding: 2rem;
  z-index: 10;
}
.card-category {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 1.5rem;
  color: var(--text-main);
  max-width: 250px;
}

/* Widgets Section */
.widgets-section {
  padding: 50px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.widget {
  background: var(--surface-color);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.widget-header h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
}
.widget-header i {
  color: var(--text-muted);
}
.widget-header .badge {
  background: var(--surface-hover);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--primary);
}

/* Routine List */
.routine-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.routine-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.routine-item:last-child {
  border-bottom: none;
}
.routine-item .time {
  font-weight: 700;
  color: var(--text-main);
}
.routine-item .activity {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.checklist input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.checklist input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.checklist span {
  font-size: 0.9rem;
  color: var(--text-main);
  transition: color 0.2s ease;
}
.checklist input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Music Widget */
.music-widget {
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
  border: none;
  justify-content: space-between;
}
.music-info-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.music-cover {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.music-icon-group {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.music-text {
  margin-top: 1rem;
}
.music-text h3 {
  color: white;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin: 0;
}
.music-controls {
  display: none;
}

/* Music Listen Button */
.music-listen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.music-listen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.music-listen-btn .fa-play {
  font-size: 0.7rem;
}

/* Now Section */
.now-section {
  padding: 50px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.now-header {
  text-align: center;
  margin-bottom: 2rem;
}
.now-updated {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.5rem;
}
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.now-card {
  background: var(--surface-color);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.now-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.now-icon {
  width: 40px;
  height: 40px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.now-card h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.now-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Scroll Header & Arrows */
.scroll-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  margin-bottom: 1rem;
}
.scroll-header .section-title {
  padding-left: 0;
}
.scroll-indicators {
  display: flex;
  gap: 0.8rem;
}
.scroll-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.scroll-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(74, 222, 128, 0.1);
}

/* Checked/disabled checkbox styling */
.checklist input[type="checkbox"]:disabled {
  cursor: default;
  opacity: 0.8;
}
.checklist input[type="checkbox"]:checked:disabled {
  background-color: var(--primary);
  border-color: var(--primary);
  opacity: 1;
}
.checklist input[type="checkbox"]:disabled + span {
  color: var(--text-muted);
}
.checklist input[type="checkbox"]:checked:disabled + span {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
  }
  .hero-image img {
    width: 300px;
    height: 300px;
  }
  .social-links {
    justify-content: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f1115;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 5%;
    gap: 1rem;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .advanced-hero {
    flex-direction: column-reverse;
    text-align: center;
    min-height: auto;
    padding-top: 120px;
  }
  .advanced-hero .hero-image img {
    width: 250px;
    height: 250px;
  }
  .personal-intro {
    text-align: center;
  }
  .letter-btn-wrapper {
    justify-content: center;
  }
  .now-grid {
    grid-template-columns: 1fr 1fr;
  }
  .scroll-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .bento-large, .bento-medium, .bento-small {
    grid-column: span 1;
  }
  .widgets-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Typing Animation Utilities */
.text-primary {
  color: var(--primary);
}
.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--primary);
  margin-left: 2px;
  animation: blink 1s infinite;
}
.cursor.typing {
  animation: none;
}
@keyframes blink {
  0%, 49% { background-color: var(--primary); }
  50%, 100% { background-color: transparent; }
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */
.contact-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 100px 5%;
}
.contact-grid-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.contact-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
.contact-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.contact-header p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-row {
  display: flex;
  gap: 1.5rem;
}
.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.input-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.optional-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}
.glowing-border {
  position: relative;
  padding: 2px;
  border-radius: 10px;
  background: var(--border);
  transition: all 0.3s ease;
}
.glowing-border:focus-within {
  background: linear-gradient(135deg, var(--primary), rgba(74, 222, 128, 0.3));
}
.glowing-border input, .glowing-border textarea, .glowing-border select {
  width: 100%;
  background: #141420;
  border: none;
  border-radius: 8px;
  color: white;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: background 0.3s ease;
}
.glowing-border select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.glowing-border select option {
  background: #141420;
  color: white;
}
.glowing-border input:focus, .glowing-border textarea:focus, .glowing-border select:focus {
  background: #1a1a2e;
}
.glowing-border input::placeholder, .glowing-border textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}
.submit-btn {
  margin-top: 1rem;
  background: var(--primary);
  border: none;
  color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.submit-btn .btn-icon {
  transition: transform 0.3s ease;
}
.submit-btn:hover .btn-icon {
  transform: translateX(4px);
}
.contact-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 2.5rem 0;
}

/* Alternative Contact Methods */
.alt-contact-label {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
.alt-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.alt-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: #141420;
  border: 1px solid var(--border);
  padding: 1.2rem 1rem;
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}
.alt-contact-card:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.alt-contact-card i {
  font-size: 1.5rem;
  color: var(--primary);
}
.alt-contact-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.alt-contact-value {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Quick Info Bento Grid */
.quick-info-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 1.5rem;
  max-width: 800px;
  width: 100%;
}
.quick-info-card-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255,255,255,0.05);
}
.quick-info-card-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.15);
}
.quick-info-card-wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, transparent, transparent, var(--primary));
  animation: spinBg 4s linear infinite;
  z-index: 1;
}
.quick-info-card {
  background: #0f1115;
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  height: 100%;
}
.quick-info-card-wrapper.tall {
  grid-row: span 2;
}

@keyframes spinBg {
  100% {
    transform: rotate(360deg);
  }
}
.info-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.info-content h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}
.info-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  .contact-container {
    padding: 2rem;
  }
  .quick-info-grid {
    grid-template-columns: 1fr;
  }
  .quick-info-card-wrapper.tall {
    grid-row: span 1;
  }
  .alt-contact-grid {
    grid-template-columns: 1fr;
  }
}
