/* Reset & Base Variables */
:root {
  --bg-color: #0c0c0c;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --accent-primary: #b026ff; /* Electric Purple */
  --accent-secondary: #00f0ff; /* Cyan */
  --cyan: #00f0ff; /* Alias used throughout markup */
  --glass-border: rgba(176, 38, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
.bg-gradient {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(176,38,255,0.05) 0%, transparent 40%),
              radial-gradient(circle at bottom left, rgba(0,240,255,0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: sticky;
  top: 0;
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo span {
  color: var(--accent-primary);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; width: 0%; height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: slideUp 1s ease;
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.primary-btn {
  display: inline-block;
  background: var(--accent-primary);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(176, 38, 255, 0.3);
}

.primary-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(176, 38, 255, 0.5);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.pfp-container {
  width: 400px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 40px rgba(176, 38, 255, 0.2);
  position: relative;
}

.pfp-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sub-page Settings */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.page-header h1 {
  font-size: 3.5rem;
}
.page-header h1::before {
  content: "• ";
  color: var(--accent-primary);
}

/* Portfolio 3-Column Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.port-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s ease;
  position: relative;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.port-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.2);
  transform: translateY(-5px);
}

.port-img {
  height: 200px;
  background: #222;
  position: relative;
}

.port-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.port-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.port-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.port-hover-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(176, 38, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-direction: column;
  gap: 1rem;
}

.port-card:hover .port-hover-overlay {
  opacity: 1;
}

.view-btn {
  padding: 0.8rem 2rem;
  background: #fff;
  color: var(--accent-primary);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

/* Tweets / Testimonial Style Grid */
.tweet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px rgba(176, 38, 255, 0.15);
}

.test-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.test-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

.test-info h4 {
  color: #fff;
  font-size: 1.1rem;
}
.test-info span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.test-icon {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.test-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.test-metrics {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; justify-content: center; gap: 2rem; }
  .pfp-container { width: 100%; height: 400px; margin: 0 auto; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  /* Typography Scaling */
  .hero-title, .page-header h1 { font-size: 2.8rem !important; }
  .article-title, .section-title { font-size: 2rem !important; }
  .hero-subtitle, .page-subtitle { font-size: 1rem !important; }
  
  /* Navbar */
  .navbar { flex-direction: column; padding: 1.5rem; gap: 1rem; }
  
  /* Nav Links Scrollable */
  .nav-links {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }
  .nav-links::-webkit-scrollbar { height: 4px; }
  .nav-links::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 10px; }
  .nav-links a { margin-left: 0; margin-right: 1.5rem; font-size: 0.85rem; }
  
  /* Layout Stacking */
  .hero-writeup {
    margin-top: 1rem;
    padding: 1.5rem !important;
    text-align: left;
    flex-direction: column !important;
    align-items: center;
  }
  .split-layout { flex-direction: column; margin-top: 2rem; }
  
  /* Article Sections */
  .article-section {
    padding: 2rem !important;
    margin-bottom: 3rem !important;
    flex-direction: column !important;
  }
  .article-avatar {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 1rem !important;
  }
  .article-avatar img { width: 140px !important; margin: 0 !important; }
  
  /* Contact Form / Banners */
  .stats-banner { flex-direction: column; padding: 1.5rem !important; gap: 2rem !important; text-align: center; align-items: center; }
  .contact-container { padding: 2rem !important; flex-direction: column; gap: 2rem; }
  
  /* Contact Grid Specifics */
  .contact-grid { margin-top: 2rem; gap: 1.5rem; }
  .platform-inner { min-height: 280px; padding: 2rem 1.5rem; }
  .platform-avatar { width: 100px; height: 100px; }
}

/* Supplemental Animations */
.anim-pulse { animation: neon-pulse 3s infinite alternate; }
.anim-slide-up { animation: slideUp 1s ease both; }

@keyframes neon-pulse {
  0% { box-shadow: 0 0 10px rgba(176,38,255,0.2); border-color: rgba(176,38,255,0.3); }
  100% { box-shadow: 0 0 40px rgba(0,240,255,0.6); border-color: rgba(0,240,255,0.8); }
}

/* Floating animation referenced across all pages */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Hero avatar (index) */
.hero-pfp {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(176, 38, 255, 0.45);
  margin-bottom: 2rem;
  animation: float 6s infinite ease-in-out;
}

/* Accent word inside headings */
.highlight {
  background: linear-gradient(135deg, var(--cyan), var(--accent-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
}

/* Section/page subtitles */
.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
