:root {
  --bg-color: #020202;
  --card-bg: rgba(10, 10, 10, 0.95);
  --accent-color: #00f2ff;
  --verify-color: #1d9bf0;
  --rainbow-gradient: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  --glass: rgba(255, 255, 255, 0.03);
  --success-color: #00ff88;
  --danger-color: #ff003c;
  --warning-color: #ffaa00;
}

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

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.5) 50%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0, 242, 255, 0.03) 1px, rgba(0, 242, 255, 0.03) 2px);
  background-size: 100% 100%, 100% 4px, 100% 3px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Matrix Rain Effect */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  opacity: 0.1;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(2, 2, 2, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 242, 255, 0.2);
  z-index: 1000;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-logo:hover {
  text-shadow: 0 0 10px var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-family: 'Orbitron';
  font-size: 0.9rem;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link.active {
  color: var(--accent-color);
  background: rgba(0, 242, 255, 0.1);
}

.nav-link.active::before {
  transform: scaleX(1);
}

/* Page Container */
.page-container {
  margin-top: 80px;
  padding: 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Animations */
@keyframes rainbow-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* Typography */
.rainbow-text {
  background: var(--rainbow-gradient);
  background-size: 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-move 6s linear infinite;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Home Page */
.head-section {
  text-align: center;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 242, 255, 0.3);
  padding: 50px 20px 30px;
  background: var(--card-bg);
  clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
  box-shadow: 0 0 40px rgba(0, 0, 0, 1), inset 0 0 20px rgba(0, 242, 255, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.8s;
}

.head-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rainbow-gradient);
  background-size: 400%;
  animation: rainbow-move 6s linear infinite;
}

.verify-badge {
  color: var(--verify-color);
  font-size: 1.8rem;
  vertical-align: middle;
  margin-left: 8px;
  filter: drop-shadow(0 0 5px rgba(29, 155, 240, 0.5));
  animation: pulse 2s infinite;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 20px 0;
  font-family: 'Orbitron';
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 242, 255, 0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.1);
  background: rgba(0, 242, 255, 0.05);
}

.stat-item:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0, 242, 255, 0.1), transparent);
}

.stat-value {
  font-size: 2rem;
  color: var(--accent-color);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-frame {
  width: 180px;
  height: 180px;
  margin: 0 auto 30px;
  padding: 5px;
  background: var(--rainbow-gradient);
  background-size: 400%;
  animation: rainbow-move 6s linear infinite;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.5s;
}

.profile-frame:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 30px var(--accent-color);
}

.profile-img {
  width: 100%;
  height: 100%;
  background: #000;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.2);
  transition: all 0.5s;
}

.profile-img:hover {
  filter: grayscale(0) contrast(1.4);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.skill-section {
  background: var(--card-bg);
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, 95% 0, 100% 10%, 100% 100%, 5% 100%, 0 90%);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.8s;
}

.skill-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--rainbow-gradient);
  background-size: 400%;
  animation: rainbow-move 6s linear infinite;
}

.skill-title {
  font-family: 'Orbitron';
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
  padding: 15px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.skill-item:hover {
  background: rgba(0, 242, 255, 0.1);
  transform: translateX(10px);
  border-color: rgba(0, 242, 255, 0.3);
}

.skill-icon {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  filter: drop-shadow(0 0 5px currentColor);
  background: rgba(0, 242, 255, 0.1);
  border-radius: 8px;
}

.skill-info {
  flex: 1;
}

.skill-name-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: 'Orbitron';
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--rainbow-gradient);
  background-size: 400%;
  animation: rainbow-move 6s linear infinite;
  border-radius: 10px;
  position: relative;
  transition: width 1s ease-in-out;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shine 2s infinite;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 242, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
  animation: fadeIn 0.8s;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 242, 255, 0.25);
  border-color: var(--accent-color);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rainbow-gradient);
  background-size: 400%;
  animation: rainbow-move 6s linear infinite;
  z-index: 2;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.8);
  transition: filter 0.5s;
}

.project-card:hover .project-image {
  filter: grayscale(0) brightness(1);
}

.project-info {
  padding: 25px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.project-tag {
  background: rgba(0, 242, 255, 0.15);
  color: var(--accent-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: 'Orbitron';
  transition: all 0.3s;
}

.project-tag:hover {
  background: rgba(0, 242, 255, 0.3);
  transform: translateY(-2px);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Project Detail Page */
.project-detail-container {
  animation: fadeIn 0.5s;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 10px 20px;
  border-radius: 5px;
  font-family: 'Orbitron';
  cursor: pointer;
  margin-bottom: 30px;
  transition: all 0.3s;
  text-decoration: none;
}

.back-button:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateX(-5px);
}

.project-header {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 242, 255, 0.2);
}

.project-hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.7);
}

.project-header-content {
  padding: 40px;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.project-stat {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 242, 255, 0.1);
}

.project-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 1024px) {
  .project-content-grid {
    grid-template-columns: 1fr;
  }
}

.project-details {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(0, 242, 255, 0.1);
}

.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-stack {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(0, 242, 255, 0.1);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.tech-item {
  background: rgba(0, 242, 255, 0.1);
  padding: 10px 20px;
  border-radius: 20px;
  font-family: 'Orbitron';
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tech-item:hover {
  background: rgba(0, 242, 255, 0.2);
  transform: translateY(-2px);
}

.project-links {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(0, 242, 255, 0.1);
}

.link-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 8px;
  font-family: 'Orbitron';
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
  text-decoration: none;
  justify-content: center;
}

.link-button:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateY(-3px);
}

.project-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.screenshot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 255, 0.2);
  transition: transform 0.3s;
}

.screenshot:hover {
  transform: scale(1.03);
}

.screenshot img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 242, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

/* Cyber Button */
.cyber-btn {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 12px 24px;
  text-decoration: none;
  font-family: 'Orbitron';
  font-size: 0.8rem;
  transition: all 0.3s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 5px;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  transition: left 0.3s;
  z-index: -1;
}

.cyber-btn:hover {
  color: #000;
  box-shadow: 0 0 20px var(--accent-color);
}

.cyber-btn:hover::before {
  left: 0;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  font-family: 'Orbitron';
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 3px;
  border-top: 1px solid rgba(0, 242, 255, 0.1);
  margin-top: 50px;
}

.live-data {
  color: var(--accent-color);
  animation: pulse 1s infinite;
}

.over-limit {
  color: var(--danger-color);
  text-shadow: 0 0 5px var(--danger-color);
  animation: pulse 1.5s infinite;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(0, 242, 255, 0.3);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.close-modal:hover {
  transform: scale(1.2);
}

/* Chart Container */
.chart-container {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(0, 242, 255, 0.1);
  margin: 20px 0;
}

/* Crypto Widget */
.crypto-widget {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(0, 242, 255, 0.2);
  animation: fadeIn 0.8s;
}

.crypto-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.crypto-item:hover {
  background: rgba(0, 242, 255, 0.05);
}

.crypto-change.positive {
  color: var(--success-color);
}

.crypto-change.negative {
  color: var(--danger-color);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
}

/* Links List */
.link-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.link-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  animation: fadeIn 0.8s;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.1), transparent);
  transition: left 0.5s;
}

.link-card:hover {
  transform: translateX(10px);
  background: rgba(20, 20, 20, 0.95);
  border-left-width: 10px;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.link-card:hover::before {
  left: 100%;
}

.link-card a {
  display: flex;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  color: #fff;
}

.link-icon-img {
  width: 40px;
  height: 40px;
  margin-right: 20px;
  filter: grayscale(1) brightness(1.5);
  transition: all 0.3s;
  border-radius: 8px;
  background: rgba(0, 242, 255, 0.1);
  padding: 8px;
}

.link-card:hover .link-icon-img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.1) rotate(5deg);
}

.link-content h3 {
  margin-bottom: 5px;
  font-family: 'Orbitron';
  font-size: 1.1rem;
}

.link-content p {
  font-size: 0.85rem;
  color: #888;
}

/* Chat Interface */
.chat-container {
  background: var(--card-bg);
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 15px;
  overflow: hidden;
  height: 400px;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  padding: 12px 18px;
  border-radius: 15px;
  max-width: 80%;
  animation: fadeIn 0.3s;
  line-height: 1.4;
}

.chat-message.user {
  background: rgba(0, 242, 255, 0.2);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chat-message.bot {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chat-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.chat-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 242, 255, 0.3);
  color: white;
  padding: 12px;
  border-radius: 5px;
  margin-right: 10px;
  font-family: 'Rajdhani';
  font-size: 0.9rem;
}

.chat-input input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

/* Music Player */
.music-player {
  background: var(--card-bg);
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  animation: fadeIn 0.8s;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.music-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.music-progress-bar {
  height: 100%;
  background: var(--accent-color);
  width: 30%;
  border-radius: 2px;
  transition: width 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .page-container {
    padding: 15px;
    margin-top: 100px;
  }

  .head-section {
    padding: 30px 15px;
  }

  .profile-frame {
    width: 150px;
    height: 150px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .project-hero-image {
    height: 250px;
  }

  .project-header-content {
    padding: 25px;
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .cyber-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stat-value {
    font-size: 1.5rem;
  }

  .project-stats {
    grid-template-columns: 1fr;
  }

  .skill-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .skill-icon {
    margin: 0 auto;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 255, 0.8);
}

/* Selection Color */
::selection {
  background: rgba(0, 242, 255, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(0, 242, 255, 0.3);
  color: white;
}