:root {
  --bg-color: #0f172a;
  /* Deep Slate Blue */
  --bg-secondary: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-color: #38bdf8;
  /* Sky Blue */
  --accent-glow: rgba(56, 189, 248, 0.4);
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(148, 163, 184, 0.1);
  --transition-speed: 0.3s;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Background Glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08), transparent 40%);
  z-index: 0;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
}

.glass-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color var(--transition-speed);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all var(--transition-speed);
}

.primary-btn {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  /* Stronger initial glow */
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.8);
  /* Intense hover glow */
}

.secondary-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--accent-color);
  margin-left: 1rem;
}

.secondary-btn:hover {
  background: rgba(56, 189, 248, 0.1);
}

/* Sections */
section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(to right, var(--text-main), var(--accent-color));
  -webkit-background-clip: text;
  color: transparent;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.greeting {
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 2rem;
}

.bio-snippet {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
}

.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.image-placeholder {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  /* Modern circle profile mostly */
  background: var(--glass-bg);
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.15);
}

.image-placeholder span {
  z-index: 2;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  transition: transform var(--transition-speed);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.stat-card h3 {
  font-size: 2rem;
  color: var(--accent-color);
  font-family: var(--font-heading);
}

/* Skills */
.alternate-bg {
  background: var(--bg-secondary);
}

.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 0.5rem;
}

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

.tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition-speed);
}

.tag:hover {
  background: var(--accent-color);
  color: var(--bg-color);
}

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

.project-card {
  overflow: hidden;
}

.project-image-container {
  height: 200px;
  background: #0f172a;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

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

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.link-text {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

/* Contact */
.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

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

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

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Add mobile menu later if needed */
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-image-container {
    justify-content: center;
    margin-bottom: 2rem;
  }

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

  .hero-text h1 {
    font-size: 3rem;
  }
}