:root {
  --bg-dark: #242424;
  --text-main: rgba(255, 255, 255, 0.87);
  --color-orange: #ff6b35;
  --color-gold: #ffd700;
  --color-cyan: #56ccf2;
  --color-purple: #8b5cf6;
  --font-main: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  /* Main Background Gradient from App.tsx */
  background: linear-gradient(to bottom right, #111827, #581c87, #111827); /* gray-900 via purple-900 to gray-900 */
  color: #fff;
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grandmother background overlay */
.grandmother-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 218, 185, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 228, 196, 0.05) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

/* Compact Single Screen Layout */
.container {
  width: 90%;
  max-width: 1000px;
  min-height: 100vh; /* Allow grow if needed, but aim for 100vh */
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center; /* Vertically center */
  justify-content: center;
  padding: 1rem;
}

/* Glassmorphism Card Style - Tuned for Compactness */
.glass-card {
  background: rgba(255, 255, 255, 0.03); /* Lighter touch */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem 2.5rem; /* Tighter padding */
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  /* max-height: 95vh;  Removed to prevent cut-off if content grows */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem; /* Consistent spacing */
}

/* Header Layout */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profile Images with Grayscale Hover Effect */
.profile-img {
  width: 100px; /* Adjust size as needed */
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  filter: grayscale(100%); /* Start Grey */
  transition: all 0.4s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.profile-img:hover {
  filter: grayscale(0%); /* Color on Hover */
  transform: scale(1.05) rotate(3deg);
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(86, 204, 242, 0.4);
}

/* Typography */
h1 {
  font-size: 5rem; /* Even Bigger Professional Font */
  font-weight: 800;
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, #fff 0%, var(--color-cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  line-height: 1.1;
}

h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #a0a0c0;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.bio {
  font-size: 1rem;
  max-width: 750px;
  margin: 0 auto 1.5rem;
  color: #d1d5db;
  line-height: 1.5;
}

.highlight {
    color: var(--color-cyan);
    font-weight: 600;
}

/* Social Icons - Single Row */
.social-icons-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem; /* Tighter gap to fit many icons */
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
  width: 100%;
}

.icon-link {
  color: #9ca3af; /* muted gray */
  font-size: 1.1rem; /* Slightly smaller to fit all */
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: var(--color-cyan);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Signature Punchline - Impactful & Elegant */
.signature-punchline {
  margin-top: 0.5rem;
  font-family: 'Georgia', serif; 
  font-style: italic;
  font-weight: 700;
  font-size: 2.2rem; /* Adjusted for single screen fit */
  color: var(--color-gold);
  letter-spacing: -0.5px;
  opacity: 1;
  display: inline-block;
  
  /* Gradient Text */
  background: linear-gradient(90deg, #ffd700, #ff6b35);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Inline Quotes - No absolute positioning breakage */
.signature-punchline::before,
.signature-punchline::after {
  content: '"';
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  color: rgba(255, 215, 0, 0.4); 
  -webkit-text-fill-color: initial; 
  vertical-align: top;
  margin: 0 0.2rem;
}

/* Premium Glass Pills - Buttons */
.cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

/* Community Button - Orange/Gold Gradient with Glow */
.btn-premium-community {
  background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 94, 98, 0.4);
}

.btn-premium-community:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 94, 98, 0.6);
  filter: brightness(1.1);
}

/* Resume Button - Glass Style */
.btn-premium-resume {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-premium-resume:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Interactive GitHub Graph Styling (JS Based) */
.calendar {
    width: 100%;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
}

.calendar .width-full {
    fill: transparent !important; /* Hide background rect */
}

/* The magic glow for active cells */
.calendar .ContributionCalendar-day[data-level]:not([data-level="0"]) {
    transition: all 0.3s ease;
    shape-rendering: geometricPrecision;
}

.calendar .ContributionCalendar-day[data-level]:not([data-level="0"]):hover {
    transform: scale(1.4);
    filter: drop-shadow(0 0 8px var(--color-cyan));
    stroke: #fff;
    stroke-width: 1px;
    z-index: 100;
    position: relative;
}

/* Hide empty cells to keep it clean or keep them subtle */
.calendar .ContributionCalendar-day[data-level="0"] {
    opacity: 0.3;
}

/* Text in graph */
.calendar text {
    fill: #a0a0c0 !important;
    font-size: 10px;
}

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

.social-link {
  color: #9ca3af; /* gray-400 */
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); /* bg-white/5 */
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-orange);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .typing-animation { font-size: 1.5rem; white-space: normal; border: none; animation: none; }
  h1 { font-size: 2rem; }
  .glass-card { padding: 2rem 1.5rem; }
}
