/* ============================================
   STYLE.CSS - Neural Network Navigator Portfolio
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #00d4ff;
  --purple: #8b5cf6;
  --dark: #0a0a0f;
  --darker: #050508;
  --surface: #12121a;
  --surface-light: #1a1a2e;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-bright: #ffffff;
  --green: #10b981;
  --amber: #f59e0b;
  --pink: #ec4899;
  --gradient: linear-gradient(135deg, var(--blue), var(--purple));
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--darker);
}

body {
  font-family: var(--font-body);
  background: var(--darker);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.nav-link,
.hero-title,
.hero-subtitle,
.section-title,
.stat-value,
.project-title,
.cert-name,
.timeline-role,
.contact-title {
  font-family: var(--font);
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: var(--text-bright);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--darker);
}
::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 3px;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--purple);
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, border-color 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
}

.cursor.hovering {
  transform: translate(-50%, -50%) scale(2);
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
}

/* --- Three.js Canvas --- */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-bright);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}
.nav-hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* --- Sections Common --- */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 3rem;
}

.section-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(30px);
}

.section-title .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero Section --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--blue);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  opacity: 0;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 1rem;
  opacity: 0;
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient);
  color: var(--darker);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 2.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gradient);
  animation: scrollPulse 2s ease infinite;
}

.scroll-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- About Section --- */
#about {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 15, 0.6) 30%,
    rgba(10, 10, 15, 0.6) 70%,
    transparent 100%
  );
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.stat-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Projects Section --- */
#projects {
  padding: 8rem 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--project-color, var(--gradient));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.project-impact {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-dim);
  transition: all 0.3s;
}

.project-card:hover .tech-tag {
  border-color: rgba(0, 212, 255, 0.2);
  color: var(--text);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1;
}

.metric-value .suffix {
  font-size: 0.8rem;
  color: var(--blue);
}

.metric-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* --- Skills Section --- */
#skills {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 15, 0.5) 30%,
    rgba(10, 10, 15, 0.5) 70%,
    transparent 100%
  );
  padding: 8rem 3rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.skill-category {
  opacity: 0;
  transform: translateY(30px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.category-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.skill-name {
  font-size: 0.85rem;
  color: var(--text-dim);
  width: 180px;
  flex-shrink: 0;
}

.skill-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-percent {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  width: 35px;
  text-align: right;
}

/* --- Certifications Section --- */
#certifications {
  padding: 8rem 3rem;
}

.certs-wrapper {
  margin-top: 3rem;
}

.cert-cloud {
  margin-bottom: 3rem;
}

.cert-cloud-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cert-cloud-logo {
  font-size: 1.5rem;
  font-weight: 800;
}

.cert-cloud-logo.aws {
  color: #ff9900;
}
.cert-cloud-logo.gcp {
  color: #4285f4;
}

.cert-cloud-title {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cert-cloud-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue);
  padding: 0.2rem 0.6rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 10px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cert-badge {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.cert-badge:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px) scale(1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cert-badge.aws:hover {
  border-color: rgba(255, 153, 0, 0.4);
  box-shadow: 0 10px 40px rgba(255, 153, 0, 0.1);
}
.cert-badge.gcp:hover {
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: 0 10px 40px rgba(66, 133, 244, 0.1);
}

.cert-tier {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.cert-tier.professional {
  color: #f59e0b;
}
.cert-tier.specialty {
  color: #ec4899;
}
.cert-tier.associate {
  color: #10b981;
}

.cert-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.3;
}

/* --- Experience Section --- */
#experience {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 15, 0.5) 30%,
    rgba(10, 10, 15, 0.5) 70%,
    transparent 100%
  );
  padding: 8rem 3rem;
}

.timeline {
  position: relative;
  margin-top: 3rem;
  max-width: 800px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--blue),
    var(--purple),
    transparent
  );
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-20px);
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--darker);
  border: 2px solid var(--blue);
  z-index: 1;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.timeline-item:hover .timeline-dot::after {
  opacity: 1;
}

.timeline-header {
  margin-bottom: 1rem;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
}

.timeline-company {
  font-size: 1rem;
  color: var(--blue);
}

.timeline-meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.timeline-highlights {
  list-style: none;
}

.timeline-highlights li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.timeline-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

/* --- Education Section (inline with experience) --- */
.education-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.education-degree {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.education-school {
  font-size: 0.95rem;
  color: var(--blue);
}

.education-location {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* --- Contact Section --- */
#contact {
  padding: 8rem 3rem;
  text-align: center;
}

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

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  color: var(--text);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.contact-link:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
  color: var(--text-bright);
}

.contact-icon {
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.1);
}

.contact-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--darker);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-ring {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}

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

.loader-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-container {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .cursor,
  .cursor-dot {
    display: none;
  }
  body {
    cursor: auto;
  }

  .nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.25rem;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 5rem 1.5rem;
  }

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

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

  .project-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .skill-name {
    width: 140px;
  }
}

@media (max-width: 480px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 2rem;
  }
}
