/* 
  Portfolio 2025 Design System 
  Theme: Dark, Glassmorphism, Gradient Accents
*/

:root {
  /* Colors */
  --bg-color: #050505;
  --text-primary: #ededed;
  --text-secondary: #a1a1aa;
  --accent-primary: #2f62ba;
  /* Brand Blue */
  --accent-secondary: #60a5fa;
  /* Light Blue */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --card-hover-bg: rgba(255, 255, 255, 0.06);

  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  scroll-behavior: smooth;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Add visual interest to the black void (Global) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(47, 98, 186, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent-gradient {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  gap: 0.5rem;
}

.btn-primary {
  background: white;
  color: black;
}

.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: var(--glass-highlight);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(47, 98, 186, 0.15) 0%, transparent 50%);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  /* Glass card effect for the content box */
  padding: 3rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  max-width: 800px;
  width: 90%;
}


.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(47, 98, 186, 0.5);
  margin-bottom: var(--space-md);
  margin-left: auto;
  margin-right: auto;
  object-position: 15% center;

}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* About Section */
.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section {
  padding: var(--space-xl) 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.about-content a {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Bento Grid Projects */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--glass-highlight);
  background: var(--card-hover-bg);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bento-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(47, 98, 186, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
}

@media (max-width: 768px) {
  .bento-card.featured {
    grid-column: span 1;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  background: #111;
}

.card-img.contain {
  object-fit: contain;
  padding: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.card-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: auto;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  background: #000;
  padding: var(--space-xl) 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.social-links {
  display: flex;
  gap: var(--space-lg);
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.social-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social-item img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  /* Force all icons to be white */
}

/* Utility Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#reloadText {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

#reloadText:hover {
  color: var(--text-primary);
  transform: rotate(180deg);
}

/* 
  Mobile Optimizations 
  Targeting devices with width <= 768px
*/
@media (max-width: 768px) {

  :root {
    --space-lg: 1.5rem;
    --space-xl: 3rem;
  }



  /* Hero Adjustments */
  .hero-content {
    padding: 2rem 1.5rem;
    width: 95%;
  }

  .hero-title {
    font-size: 3rem;
    /* Fallback/Adjustment */
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  /* Bento Grid Adjustments */
  .bento-grid {
    grid-template-columns: 1fr;
    /* Force single column */
    gap: 1.5rem;
  }

  /* Increase Glass Contrast on Mobile */
  .bento-card {
    background: rgba(255, 255, 255, 0.05);
    /* Slightly more visible */
    border-color: rgba(255, 255, 255, 0.1);
  }

  .footer-content {
    gap: 2rem;
  }

  .social-links {
    gap: 1.5rem;
  }
}