/* --- MERGED VARIABLES --- */
:root {
  --bg-color: #050505; 
  --primary: #8b5cf6; 
  --secondary: #d946ef; 
  --accent: #facc15; 
  
  --glass: rgba(15, 15, 18, 0.8);
  --glass-border: rgba(139, 92, 246, 0.2); 
  
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --border-light: rgba(255, 255, 255, 0.15);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(circle at top, #130f26 0%, var(--bg-color) 100%);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --- MAIN WRAPPER --- */
.wrapper {
  max-width: 700px;
  margin: 0 auto;
  /* Reduced top padding from 60px to 20px */
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px; 
}

/* Profile Card */
.profile-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  /* Reduced top padding from 40px to 25px */
  padding: 25px 20px 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: fadeInDown 1s ease-out;
}

.avatar-container {
  width: 140px; height: 140px; margin: 0 auto 20px; position: relative;
}
.avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 4px solid #000; position: relative; z-index: 2;
}
.avatar-container::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  z-index: 1; animation: spin 4s linear infinite; filter: blur(10px);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

h1 { font-family: 'Righteous', cursive; font-size: 2.5rem; margin: 10px 0; color: #fff; text-shadow: 0 0 20px var(--primary); }
.role { font-size: 1.1rem; color: var(--primary); font-weight: 600; min-height: 1.5em; letter-spacing: 1px; }

/* Bio Text */
.bio-text {
  margin-top: 25px;
  margin-bottom: 25px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7; 
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Main Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-top-action {
  padding: 12px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}
.btn-top-action:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Buy Me A Coffee Button */
.bmc-container { width: 100%; margin-top: 4px;}
.bmc-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  background-color: #FFDD00;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
}
.bmc-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}
.bmc-btn img {
  height: 34px; 
  width: auto;
  object-fit: contain;
}

/* Email Text Line */
.email-line {
  margin-top: 25px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}
.email-line a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.email-line a:hover {
  color: var(--secondary);
}

/* --- COLLAPSIBLE CONTENT BOXES --- */
.content-box {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px; 
  animation: fadeInUp 1s ease-out 0.2s backwards;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.section-title {
  display: flex; align-items: center; justify-content: space-between; font-size: 1.3rem;
  color: #fff; padding-bottom: 5px;
  border-bottom: 1px solid var(--glass-border); font-family: 'Righteous', cursive;
  cursor: pointer; user-select: none;
  margin-bottom: 0; transition: margin-bottom 0.3s ease, padding-bottom 0.3s ease;
  margin-top: 15px; 
}
.section-title:first-child {
  margin-top: 0;
}
.section-title.active {
    margin-bottom: 15px; 
    padding-bottom: 15px;
}
.section-title-left { display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--primary); }
.section-title i.toggle-icon { color: var(--text-muted); font-size: 1rem; transition: transform 0.4s ease; }
.section-title.active i.toggle-icon { transform: rotate(180deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out;
}
.accordion-content.active {
  max-height: 1500px; 
  opacity: 1;
}

/* Tech Stack Specifics */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.skill-item {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 12px 15px; transition: 0.3s;
}
.skill-item:hover { border-color: var(--primary); transform: translateY(-3px); }
.skill-name { color: var(--primary); font-weight: 700; margin-bottom: 10px; font-size: 0.95rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Rounded tag with light edges */
.tag { 
  font-size: 0.75rem; 
  color: #f1f1f1; 
  background: rgba(255, 255, 255, 0.05); 
  padding: 5px 12px; 
  border-radius: 20px; 
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.02);
  transition: 0.3s ease;
}
.tag:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

/* Projects Specifics */
.projects-list { display: flex; flex-direction: column; gap: 15px; }
.project-card {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 15px; transition: 0.3s;
}
.project-card:hover { border-color: var(--primary); background: rgba(255,255,255,0.02); }
.project-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 5px; }
.project-title { color: #fff; font-weight: 600; font-size: 1.05rem; }
.project-tech { font-size: 0.75rem; color: var(--secondary); background: rgba(217, 70, 239, 0.1); padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.project-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* Quick Links Specifics */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.link-btn {
  display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: #fff; text-decoration: none;
  font-size: 0.95rem; font-weight: 500; transition: 0.3s;
}
.link-btn i { color: var(--primary); width: 22px; text-align: center; font-size: 1.1rem; transition: color 0.3s; }
.link-btn:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.link-btn:hover i { color: #fff; }

/* Animations */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* Responsive */
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  .skills-grid, .links-grid { grid-template-columns: 1fr; }
  .action-row { grid-template-columns: 1fr; } 
}

/* Disable long-press link previews and selections */
.no-preview {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}