/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Modern Professional Palette */
  --primary-bg: #000000;
  --secondary-bg: #0a0a0a;
  --card-bg: #111111;
  --surface-bg: #1a1a1a;
  --accent-primary: #ffffff;
  --accent-secondary: #f0f0f0;
  --accent-tertiary: #e0e0e0;
  --text-primary: #ffffff;
  --text-secondary: #c0c0c0;
  --text-muted: #909090;
  --border-color: #2a2a2a;
  --border-light: #333333;
  --gradient-primary: linear-gradient(135deg, #ffffff, #e0e0e0);
  --gradient-secondary: linear-gradient(135deg, #f0f0f0, #d0d0d0);
  --gradient-tertiary: linear-gradient(135deg, #e0e0e0, #c0c0c0);
  --gradient-dark: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  --shadow-primary: 0 10px 30px rgba(255, 255, 255, 0.1);
  --shadow-secondary: 0 10px 30px rgba(255, 255, 255, 0.05);
  --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.8);
  --glow-primary: 0 0 20px rgba(255, 255, 255, 0.3);
  --glow-secondary: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* HTML & Body */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent-primary) var(--secondary-bg);
  scrollbar-width: thin;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--primary-bg);
  overflow-x: hidden;
}

/* Background Animation */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: -1;
}

/* Elegant Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Premium Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  width: 100%;
  overflow: hidden;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: var(--shadow-dark);
  border-bottom-color: var(--border-light);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: var(--glow-primary);
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  box-shadow: var(--glow-primary);
}

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

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

@keyframes subtle-grok-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 242, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(224, 242, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 242, 255, 0);
  }
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  animation: pulse-opacity 2s infinite alternate;
}
@keyframes pulse-opacity {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 1;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.tagline {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 1 rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    /* NEW COLOR */ circle at center,
    rgba(224, 242, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 75%
  );
  filter: blur(6px);
  animation: pulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.07);
    opacity: 1;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--glow-primary);
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  font-weight: 400;
}

#typewriter {
  border-right: 3px solid var(--accent-primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: var(--accent-primary);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--accent-primary);
  color: var(--primary-bg);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

/* MODIFIED: Added hover effects to existing buttons */
.btn:hover {
  animation: subtle-grok-pulse 2s infinite; /* NEW */
  background: var(--accent-primary);
  border-color: transparent; /* NEW */
}

.btn-outline:hover {
  animation: subtle-grok-pulse 2s infinite; /* NEW */
  background: transparent;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--primary-bg);
  box-shadow: var(--glow-primary);
}

/* Section Containers */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* About Section */
.about-section {
  background: var(--secondary-bg);
  position: relative;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.profile-section {
  display: flex;
  justify-content: center;
}

.profile-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient-primary);
  padding: 5px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-secondary);
}

.profile-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary),
    var(--accent-primary)
  );
  animation: rotate 8s linear infinite;
  z-index: -1;
  opacity: 0.8;
}

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

.profile-ring img {
  border-radius: 50%;
  border: 3px solid var(--primary-bg);
  filter: grayscale(20%) contrast(1.1);
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  box-shadow: var(--glow-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.timeline-marker {
  position: absolute;
  left: -1rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 3px solid var(--primary-bg);
  box-shadow: var(--glow-primary);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Skills Section */
.skills-section {
  background: var(--primary-bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}


/* Skill Cards with Spotlight Effect */
.skill-category {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  z-index: 1;
}

/* Dynamic Scanline Background */
.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(255, 255, 255, 0.03) 3px,
    transparent 4px
  );
  pointer-events: none;
  z-index: -1;
}

/* Spotlight Glow */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(255, 255, 255, 0.06), 
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.skill-category:hover .glow-bg {
  opacity: 1;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.1);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.skill-header i {
  font-size: 1.5rem;
  color: var(--accent-primary);
  text-shadow: var(--glow-primary);
  /* Icon float animation */
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.skill-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Mobile Glow Fallback */
@media (hover: none) and (pointer: coarse) {
  .glow-bg {
    opacity: 0.15; /* Subtle constant glow on mobile */
    background: radial-gradient(
      circle at 50% 50%, 
      rgba(255, 255, 255, 0.1), 
      transparent 60%
    );
  }
}

.skill-item {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

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

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

.skill-level {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

/* Shimmering Progress Bar */
.skill-progress {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 3px;
  width: 0;
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.shimmer-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmerMove 2s infinite;
}

@keyframes shimmerMove {
  100% {
    transform: translateX(100%);
  }
}

/* Projects Section */
.projects-section {
  background: var(--secondary-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 0.03;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-secondary);
  border-color: var(--border-light);
  background: var(--surface-bg);
}

.project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.project-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
  background: var(--primary-bg);
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-tertiary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.contact-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 3rem;
}

.contact-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-icons a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.contact-icons a:hover::before {
  opacity: 1;
}

.contact-icons a:hover {
  transform: translateY(-5px);
  color: var(--primary-bg);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.contact-icons a i {
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  background: var(--secondary-bg);
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Animation Classes */
.sr-timeline {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.6s ease;
}


/* --- TABS & EXPERIENCE SECTION --- */
.tab-container {
  display: flex;
  justify-content: center; /* Center the tabs */
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.3s ease;
}

/* Tab active state */
.tab-btn.active {
  color: var(--accent-primary);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1rem; /* Aligns with container border */
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: var(--glow-primary);
  animation: slideInTab 0.3s ease forwards;
}

@keyframes slideInTab {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 1; }
}

.tab-btn:hover {
  color: var(--text-primary);
}

/* Timeline Sections Switching */
.timeline-section {
  display: none;
}

.timeline-section.active {
  display: block;
  animation: fadeInSection 0.6s ease forwards;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline Date styling */
.timeline-date {
  display: block;
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.sr-timeline.reveal {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-links a:focus,
.contact-icons a:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

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

  .hero {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

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

  .profile-ring {
    width: 250px;
    height: 250px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-icons {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .contact-icons a {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .section-container {
    padding: 3rem 1rem;
  }

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

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

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

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-category {
    min-width: unset;
    padding: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-width: unset;
  }

  .contact-icons {
    gap: 0.5rem;
  }

  .section-container {
    padding: 2rem 0.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .section-container {
    padding: 2rem 0;
  }

  body::before,
  .hero::before {
    display: none;
  }
}

/* ===== Grok Pulse Effect ===== */
@keyframes grok-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Pulse button style */
.btn.grok-pulse {
  position: relative;
  animation: grok-pulse 2s infinite;
  background: linear-gradient(135deg, #ffffff, #e0f2ff);
  color: #0a0a0a !important; /* Force dark text */
  border: none;
}

/* Stop pulse on hover */
.btn.grok-pulse:hover {
  animation: none;
  background: linear-gradient(135deg, #ffffff, #cce8ff);
}

/* Optional: Secondary pulse (add if you want the double Grok effect) */
.btn.grok-pulse::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  animation: grok-pulse 2s infinite 0.5s;
}


/* ==================== BOOT ANIMATION ==================== */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 4.5s forwards;
}

.logo-container {
    position: relative;
    width: 400px;
    height: 400px;
    animation: brighten 1s ease 2s forwards;
}

/* Subtle white glow at lower right */
.base-glow {
    position: absolute;
    bottom: 43%;
    right: 40%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 40%,
        transparent 70%);
    filter: blur(20px);
}

.logo-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 297px;
}

.logo-svg path {
    fill: #FFFFFF;
}

.sweep-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 297px;
    overflow: hidden;
}

/* Monochrome sweep gradient - white/gray tones */
.sweep-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(220, 220, 220, 0.45) 25%,
        rgba(180, 180, 180, 0.3) 50%,
        transparent 100%);
    mix-blend-mode: screen;
    animation: sweepUp 2s ease-in-out forwards;
}

.glow-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 297px;
    opacity: 0;
    animation: glowPulse 1s ease 2s forwards;
}

/* White glow with subtle gray shadows */
.glow-layer svg path {
    fill: #FFFFFF;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7))
            drop-shadow(0 0 16px rgba(240, 240, 240, 0.5))
            drop-shadow(0 0 28px rgba(200, 200, 200, 0.3));
}

/* White/silver flash effect */
.blink-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(240, 240, 240, 0.7) 20%,
        rgba(220, 220, 220, 0.5) 40%,
        rgba(180, 180, 180, 0.25) 60%,
        transparent 75%);
    opacity: 0;
    animation: blinkEffect 0.65s ease 3s forwards;
}

/* Animations */
@keyframes sweepUp {
    0% { height: 0; }
    100% { height: 100%; }
}

@keyframes glowPulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

@keyframes blinkEffect {
    0%, 100% { opacity: 0; }
    18% { opacity: 1; }
    38% { opacity: 0.12; }
    58% { opacity: 0.92; }
    78% { opacity: 0.08; }
}

@keyframes brighten {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.4); }
    100% { filter: brightness(1.25); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Hide main content initially */
body.loading nav,
body.loading section,
body.loading footer {
    opacity: 0;
}

body nav,
body section,
body footer {
    animation: fadeInContent 1s ease 4.5s forwards;
}

@keyframes fadeInContent {
    to { opacity: 1; }
}



/* ==================== SHOW MORE PROJECTS ==================== */
.hidden-project {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.hidden-project.show {
  display: block;
  animation: fadeInProject 0.5s ease forwards;
}

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

.show-more-container {
  text-align: center;
  margin-top: 3rem;
}

#show-more-btn {
  min-width: 200px;
  transition: all 0.3s ease;
}

#show-more-btn i {
  transition: transform 0.3s ease;
}

#show-more-btn.rotated i {
  transform: rotate(180deg);
}

