:root {
  --bg: #0a0a0b;
  --bg-secondary: #0f0f11;
  --card: #141418;
  --card-hover: #1a1a1f;
  --muted: #9ca3af;
  --text: #f9fafb;
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --accent-glow: rgba(239, 68, 68, 0.3);
  --success: #10b981;
  --warning: #f59e0b;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --max: 1200px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 35px 60px -12px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(ellipse at top, #0f0f23 0%, #0a0a0b 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.8);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--accent-glow);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logo-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent, var(--accent));
  z-index: -1;
  animation: rotate 3s linear infinite;
}

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

.brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand .muted {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  min-height: 80vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-icon {
  font-size: 1rem;
}

.hero-left h2 {
  font-size: 3.5rem;
  font-weight: 800;
  height: 185px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-left p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn.ghost:hover {
  background: var(--card);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.125rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-right .stats {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row strong {
  color: var(--text);
  font-weight: 600;
}

.stat-row span {
  color: var(--muted);
  text-align: right;
}

.highlight {
  color: var(--accent) !important;
  font-weight: 600;
}

/* Panel Styles */
.panel {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 68, 68, 0.2);
}

.panel h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Achievements Section */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.achievement-card {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--success));
}

.htb-card::before {
  background: linear-gradient(90deg, #9fef00, #00d4aa);
}

.achievement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.htb-logo {
  height: 24px;

}

.achievement-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.achievement-badge.elite {
  background: linear-gradient(135deg, #9fef00, #00d4aa);
  color: #000;
}

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.htb-stats {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--glass);
  border-radius: 12px;
}

.htb-stat {
  text-align: center;
}

.htb-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #9fef00;
}

.htb-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateX(10px);
  border-color: var(--accent);
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.highlight-item h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.highlight-item p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* Skills Section */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.skill-name {
  font-weight: 500;
  color: var(--text);
}

.skill-level {
  width: 100px;
  height: 6px;
  background: var(--glass);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 3px;
  transition: width 1s ease;
  animation: fillBar 2s ease-in-out;
}

@keyframes fillBar {
  from { width: 0; }
}

.skill-bar[data-level="95"] { width: 95%; }
.skill-bar[data-level="90"] { width: 90%; }
.skill-bar[data-level="92"] { width: 92%; }
.skill-bar[data-level="85"] { width: 85%; }
.skill-bar[data-level="88"] { width: 88%; }
.skill-bar[data-level="98"] { width: 98%; }

.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tool-category h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tools-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 80px;
}

.tool:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
}

.tool img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
}

.tool span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--success));
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.project-tech {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--glass);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.project-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--warning);
  color: #000;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1rem;
}

.project-links {
  margin-top: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  gap: 1rem;
}

.link-arrow {
  transition: transform 0.3s ease;
}

.project-link:hover .link-arrow {
  transform: translateX(5px);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.contact-card.twitter:hover {
  border-color: #bababa;
  box-shadow: 0 10px 25px rgba(99, 99, 99, 0.2);
}

.contact-card.htb:hover {
  border-color: #9fef00;
  box-shadow: 0 10px 25px rgba(159, 239, 0, 0.2);
}

.contact-card.email:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 25px var(--accent-glow);
}

.contact-card.website:hover {
  border-color: var(--success);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.htb-icon {
  font-size: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.contact-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(20px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-left h2 {
    font-size: 2.5rem;
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
  }
  
  .links {
    display: none;
  }
  
  .container {
    padding: 1rem;
  }
  
  .hero-left h2 {
    font-size: 2rem;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .panel {
    padding: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Animation Classes */
.reveal {
  animation: slideUp 0.6s ease-out forwards;
}

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

.fade {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0.7;
  }
}




@media (max-width: 480px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .brand h1 {
    font-size: 1.2rem;
  }

  .brand .muted {
    font-size: 0.75rem;
  }

  .hero {
    padding: 2rem 0;
    min-height: auto;
  }

  .hero-left h2 {
    font-size: 2rem;
  }

  .hero-left p {
    font-size: 1rem;
  }

  .cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .stat-item {
    width: 100%;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .hero-right .stats {
    padding: 1.5rem;
  }

  .panel {
    padding: 1.5rem;
  }

  .panel h3 {
    font-size: 1.5rem;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

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

  .skill-card {
    padding: 1.5rem;
  }

  .tools-icons .tool {
    padding: 0.75rem;
    min-width: 70px;
  }

  .tools-icons .tool img {
    width: 28px;
    height: 28px;
  }

  .tools-icons .tool span {
    font-size: 0.65rem;
  }

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

  .project-card {
    padding: 1.5rem;
  }

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

  .contact-card {
    padding: 1rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .htb-icon {
    font-size: 1.2rem;
  }

  .contact-title {
    font-size: 0.9rem;
  }

  .contact-subtitle {
    font-size: 0.75rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Adjustments for animations and hover effects on touch devices */





body {
  scroll-behavior: smooth;
}


