
:root {
  /* Core Palette */
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --fg-primary: #ffffff;
  
  /* Accents */
  --accent-1: #111;
  --accent-2: #333;
  --accent-4: #666;
  --accent-5: #888;
  --accent-6: #999;
  
  /* Brand Colors */
  --brand-blue: #0070f3;
  --brand-success: #0070f3;
  
  /* Dimensions & Spacing */
  --radius-lg: 12px;
  --radius-full: 9999px;
  --max-width: 1000px;
}

/* -------------------------------------------------------------------------- */
/* Reset & Global Styles                                                     */
/* -------------------------------------------------------------------------- */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  /* Cyber Grid Background Pattern */
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 112, 243, 0.15) 0%, transparent 60%),
    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: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: var(--fg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------- */
/* Layout Structure (Bento Grid)                                             */
/* -------------------------------------------------------------------------- */

.main-content {
  padding: 64px 24px 48px 24px;
  min-height: 100vh;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  
  /* Mobile First: Stack Vertically */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Desktop View: Grid System */
@media (min-width: 769px) {
  .main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr; /* Hero takes auto height, others fill */
    grid-template-areas: 
      "hero hero" 
      "about contact";
    align-items: stretch;
    gap: 24px;
  }
  
  #home { grid-area: hero; }
  #about { grid-area: about; }
  #contact { grid-area: contact; }
}

.section-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
  
  /* Layout Internals - CRITICAL FOR SPACING */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  /* Creates space between H2 and Content (Email/P) */
  gap: 32px; 
  
  height: 100%;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
  border-color: var(--accent-4);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* Typography & Elements                                                     */
/* -------------------------------------------------------------------------- */

h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--fg-primary);
  margin: 0; /* Gap handles the spacing now */
  letter-spacing: -0.02em;
}

p {
  color: var(--accent-5);
  font-size: 16px;
  max-width: 420px;
  line-height: 1.6;
}

/* Hero Specifics */
.avatar-container {
  width: 120px;
  height: 120px;
  /* Extra margin for visual balance in Hero */
  margin-bottom: 8px; 
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-2);
}

.neon-text {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(180deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.subtitle {
  font-size: 16px;
  color: var(--accent-5);
}

.small-neon {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Social Links                                                              */
/* -------------------------------------------------------------------------- */

.social-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-links .icon {
  width: 20px;
  height: 20px;
  fill: var(--accent-5);
  transition: fill 0.2s ease;
}

.social-links a:hover {
  border-color: var(--brand-blue);
  background: rgba(0, 112, 243, 0.1);
}

.social-links a:hover .icon {
  fill: var(--brand-blue);
}

/* -------------------------------------------------------------------------- */
/* Interactive Email Component                                               */
/* -------------------------------------------------------------------------- */

.copy-email-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  min-width: 260px;
}

.copy-email-wrapper:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-4);
}

.copy-email-wrapper:active {
  transform: scale(0.98);
}

.copy-email-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-6);
}

/* Success State (Copied) */
.copy-email-wrapper.copied {
  border-color: var(--brand-success);
  background: rgba(0, 112, 243, 0.1);
}

.copy-email-wrapper.copied .copy-email-text {
  color: #fff;
}

.copy-email-wrapper.copied svg {
  stroke: var(--brand-success);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                    */
/* -------------------------------------------------------------------------- */

footer {
  padding: 32px 0;
  border-top: 1px solid var(--accent-2);
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.footer-content p {
  font-size: 14px;
  color: var(--accent-4);
}

footer a {
  color: var(--accent-5);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--fg-primary);
}

/* -------------------------------------------------------------------------- */
/* Responsive Adjustments                                                    */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .neon-text { font-size: 32px; }
  .section-card { padding: 32px 24px; gap: 24px; }
  .main-content { padding-top: 32px; }
}
