@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0f1c;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(10, 15, 28, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #00f2fe;
  --accent-2: #4facfe;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.08), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(0, 242, 254, 0.08), transparent 25%);
}

* {
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 0;
  line-height: 1.2;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation - Glassmorphism Floating Top Nav */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  transition: var(--transition);
}

#header .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#header .logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

#header .logo h1 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

#header .logo h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

#nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

#nav a.active, #nav a:hover {
  color: var(--text-main);
}

#nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-gradient);
  transition: var(--transition);
}

#nav a:hover::after, #nav a.active::after {
  width: 100%;
}

/* Main Content Area */
#main {
  padding-top: 80px;
}

/* Sections */
section {
  padding: 6rem 0;
}

section header {
  text-align: center;
  margin-bottom: 4rem;
}

section header h2 {
  display: inline-block;
  position: relative;
  margin-bottom: 1rem;
  color: var(--text-main);
}

section header h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: -10px;
  left: 25%;
  background: var(--accent-gradient);
  border-radius: 2px;
}

section header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Hero Section */
#top {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 0;
  position: relative;
}

#top::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

#top .container {
  text-align: center;
  animation: fadeIn 1s ease-out;
}

#top h2 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

#top .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#top p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
  color: #fff;
  text-shadow: none;
}

.button.alt {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--text-main);
  box-shadow: none;
}

.button.alt:hover {
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.2);
}

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(10, 15, 28, 0.8));
}

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

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

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

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  transition: var(--transition);
}

.project-card:hover .project-content h3 {
  color: var(--accent);
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Experience / Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

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

.timeline-item {
  padding-left: 60px;
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  left: 13px;
  top: 5px;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transition: var(--transition);
}

.timeline-item:hover::before {
  background: var(--accent);
  transform: scale(1.2);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 1.8rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.05);
}

.timeline-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1.3rem;
}

.timeline-content h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Contact */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  width: 240px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: block;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 242, 254, 0.15);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
#footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-glass);
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sub-page Specific Layouts */
.article-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.article-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 4rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(10, 15, 28, 0.8), rgba(10, 15, 28, 0.6));
  z-index: 1;
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 3rem;
  text-align: center;
}

.article-hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.article-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.article-hero .lede {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
}

.article-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-metric {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.article-metric strong {
  display: block;
  font-size: 1.8rem;
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.article-metric span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3rem 4rem;
  box-shadow: var(--shadow);
}

.article-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  color: var(--text-main);
  position: relative;
  padding-bottom: 0.5rem;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #fff;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.article-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.article-content code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #e2e8f0;
}

.article-content pre code {
  background: none;
  padding: 0;
  font-size: 0.95rem;
  color: #8be9fd; /* subtle neon tint for code */
}

.note-box {
  background: rgba(0, 242, 254, 0.05);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}

.note-box p {
  color: var(--text-main);
}

.note-box p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-weight: 600;
  font-family: var(--font-heading);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 1rem 2rem;
  border-radius: 30px;
}

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

.back-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.back-link:hover i {
  transform: translateX(-5px);
}

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

/* Responsive */
@media (max-width: 960px) {
  .article-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  #header {
    flex-direction: column;
    padding: 1rem;
  }
  
  #nav ul {
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  #top {
    min-height: auto;
    padding: 8rem 0 4rem;
  }
  
  .contact-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-card {
    width: 100%;
    max-width: 300px;
  }

  .article-hero-inner {
    padding: 4rem 1.5rem;
  }

  .article-hero h1 {
    font-size: 2.5rem;
  }
}
