* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

/* Disable text selection on all interactive elements (except text inputs) */
button, 
input[type="button"], 
input[type="submit"], 
input[type="range"],
.contact-card,
.footer-icons,
.footer-icons *,
[role="button"],
.clickable {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

/* Disable text selection specifically for modal content but allow for text inputs */
#music-player-modal .modal-content,
.player-header,
.player-header *,
.song-info,
.song-info *,
.time-stamps,
.time-stamps *,
.modal-content h1,
.modal-content h2, 
.modal-content h3,
.modal-content p {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

/* Allow text selection only for text input fields */
input[type="text"], 
input[type="url"], 
input[type="email"],
input[type="password"],
textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

/* Also allow selection for any content that should be copyable */
code, pre {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

/* Vercel-inspired Dark Theme - Black & White */
:root {
  --bg: #000000;
  --panel: #111111;
  --text: #ffffff;
  --muted: #888888;
  --line: #333333;
  --brand: #ffffff; /* No brand color, use white */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --space-lg: 32px;
  --space-md: 22px;
  --space-sm: 12px;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

#video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

#video-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#youtube-player-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 48px 0 40px;
  color: var(--text);
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.avatar {
  margin-bottom: 20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.title {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--muted);
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

/* Contact & GitHub Sections */
.contact-section {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: 24px auto; /* Centering */
    border: 1px solid var(--line);
    max-width: 700px; /* Made wider */
}

.github-section {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: 24px auto; /* Centering */
    border: 1px solid var(--line);
    max-width: 700px; /* Reduced to match contact section */
}

.contribution-graph-container {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    max-width: 100%;
    overflow: hidden;
}

.contribution-graph-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.1);
    transform-origin: center;
}

/* GitHub Calendar Customization to match image */
.calendar .width-full > .float-left {
    display: none; /* Hide the "summary" text */
}

.calendar .contrib-legend {
    text-align: right;
    color: #ccc;
    font-size: 12px;
    padding: 5px;
}

.calendar .calendar-graph text.month {
    fill: #ccc !important;
}

.calendar .calendar-graph text.wday {
    fill: #ccc !important;
}

/* The actual contribution squares */
.calendar .calendar-graph rect.day {
    shape-rendering: geometricPrecision;
    stroke: #333; /* Faint stroke between squares */
    stroke-width: 1px;
}

.calendar .calendar-graph rect.day[data-level="0"] {
    fill: #ebedf0; /* Light Gray */
}

.calendar .calendar-graph rect.day[data-level="1"] {
    fill: #9be9a8; /* Green shades */
}

.calendar .calendar-graph rect.day[data-level="2"] {
    fill: #40c463;
}

.calendar .calendar-graph rect.day[data-level="3"] {
    fill: #30a14e;
}

.calendar .calendar-graph rect.day[data-level="4"] {
    fill: #216e39;
}

/* Hide the summary stats table below the graph */
.calendar-graph + table {
    display: none;
}

.contact-section h2,
.github-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column layout */
  gap: 20px; /* Adjusted gap for single column */
}

.contact-card {
  display: flex;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--line);
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.contact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-card i {
  font-size: 1.2rem;
  margin-right: 15px;
  color: var(--text);
  transition: all 0.3s ease;
  width: 20px;
  text-align: center;
}

.contact-card:hover i {
  color: var(--text);
}

/* Elegant platform-specific styling */
.contact-card.phone:hover {
  border-color: #10b981;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.contact-card.github:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.contact-card.linkedin:hover {
  border-color: #0ea5e9;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
}

.contact-card.facebook:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 0;
  color: var(--muted);
  position: relative;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer-icons a {
  color: var(--muted);
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.footer-icons a:hover {
  color: var(--text);
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.footer-controls {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#mute-unmute-btn {
  background: none;
  border: 1px solid var(--muted);
  color: var(--muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

#mute-unmute-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.footer p {
  margin-bottom: 5px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .name {
    font-size: 1.9rem;
  }

  .title {
    font-size: 0.98rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .contact-section,
  .github-section {
    padding: 30px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .avatar {
    width: 90px;
    height: 90px;
  }

  .name {
    font-size: 1.6rem;
  }

  .contact-card {
    padding: 16px;
  }

  .contact-card i {
    font-size: 1.3rem;
    margin-right: 10px;
  }
}

#player-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

#mute-unmute-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mute-unmute-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#music-player-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#music-player-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#music-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

#music-player-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-btn:hover {
    color: white;
}

.modal-content h2 {
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 1.5rem;
}

.player-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.player-header .header-icon-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#change-video-btn {
    position: absolute;
    top: -10px;
    left: 0;
    background: none;
    border: none;
    color: #888;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.3s;
}

#change-video-btn:hover {
    color: white;
}

.player-header .fa-music {
    font-size: 2rem;
    padding: 15px;
    border-radius: 50%;
    background-color: #333;
}

.secondary-btn {
    background: none;
    border: 1px solid #555;
    color: #aaa;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.secondary-btn:hover {
    background-color: #333;
    color: white;
}

.song-info {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

#song-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#song-youtube-link {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#song-youtube-link:hover {
    color: white;
}

.progress-container {
    margin: 20px 0;
}

#progress-bar {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #444;
    border-radius: 5px;
    outline: none;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

#progress-bar::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
}

.url-input-container {
    display: flex;
    margin: 20px 0;
}

#youtube-url-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px 0 0 8px;
    background-color: #333;
    color: white;
    font-size: 1rem;
}

#play-youtube-button {
    padding: 12px 20px;
    border: none;
    background-color: #ff0000;
    color: white;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#play-youtube-button:hover {
    background-color: #cc0000;
}

.player-controls-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.player-controls-modal .fa-volume-down {
    font-size: 1.2rem;
}

.player-controls-modal button {
    background: none;
    border: none;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.player-controls-modal button:hover {
    background-color: white;
    color: #1e1e1e;
}

#volume-slider {
    width: 120px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #555;
    border-radius: 3px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.hidden {
    display: none;
}