@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

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

:root {
  --primary: #0099ff;
  --primary-dark: #1e40af;
  --secondary: #00ffbf;
  --dark: #0f1115;
  --gray: #a0a9b6;
  --light: #1b2029;
  --white: #f5f7fb;
  --card: #171b22;
  --card-border: rgba(0, 153, 255, 0.35);
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.project-title,
.cert-title,
.video-title,
.logo {
  font-family: 'League Spartan', 'Roboto', sans-serif;
  letter-spacing: 0.02em;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1000;
  padding: 1rem 0;
}

nav.nav-scrolled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1000;
  padding: 1rem 0;
}

nav.nav-scrolled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: transparent;
  border: 1px solid rgba(0, 153, 255, 0.4);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: rgba(15, 17, 21, 0.96);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1100;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s;
}

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

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1050;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

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

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

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(0, 153, 255, 0.35), transparent 55%),
    radial-gradient(circle at left, rgba(118, 75, 162, 0.35), transparent 60%),
    #10131a;
  color: white;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero .subtitle {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 600px;
  margin-bottom: 2rem;
  opacity: 0.85;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: #0b0f14;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* Section Styles */
section {
  padding: clamp(3.5rem, 6vw, 5rem) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
  text-align: center;
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  grid-auto-flow: dense;
  align-items: stretch;
}

.project-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4), 0 6px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4), 0 6px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  grid-column: span 6;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 40px rgba(0, 0, 0, 0.5), 0 10px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 26px 40px rgba(0, 0, 0, 0.5), 0 10px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 153, 255, 0.6);
}

.project-card:nth-child(1) {
  grid-column: span 7;
}

.project-card:nth-child(2) {
  grid-column: span 5;
}

.project-card:nth-child(3) {
  grid-column: span 5;
}

.project-card:nth-child(4) {
  grid-column: span 7;
}

.project-image {
  width: 100%;
  height: clamp(170px, 22vw, 220px);
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.6) 0%, rgba(118, 75, 162, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.project-description {
  color: var(--gray);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  background: rgba(0, 153, 255, 0.15);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project-link:hover {
  text-decoration: underline;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.skill-category {
  background: var(--card);
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35), 0 6px 0 rgba(0, 0, 0, 0.22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  grid-column: span 6;
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  padding: 0.5rem 0;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-list li:before {
  content: '▸';
  color: var(--primary);
  font-weight: bold;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.cert-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35), 0 6px 0 rgba(0, 0, 0, 0.22);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  grid-column: span 4;
}

.cert-title {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cert-issuer {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cert-date {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

.cert-link:hover {
  text-decoration: underline;
}

/* YouTube Section */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.video-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35), 0 6px 0 rgba(0, 0, 0, 0.22);
  border: 1px solid var(--card-border);
  grid-column: span 6;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: linear-gradient(135deg, #0b0f14 0%, #0b0f14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  padding: 0;
  overflow: hidden;
}

.video-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.channel-stats {
  background: var(--card);
  padding: 2rem;
  border-radius: 18px;
  text-align: center;
  margin-bottom: 2rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35), 0 6px 0 rgba(0, 0, 0, 0.22);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--primary);
}

.contact-icon {
  font-size: 2rem;
}

/* Footer */
footer {
  background: #0b0f14;
  color: white;
  text-align: center;
  padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .projects-grid,
  .skills-container,
  .cert-grid,
  .youtube-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .skill-category,
  .cert-card,
  .video-card {
    grid-column: span 1;
  }

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