/* Award-Winning DevOps Resume - Dark Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.5);
  --bg-card-hover: rgba(45, 58, 82, 0.6);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-secondary: #22d3ee;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --border: rgba(148, 163, 184, 0.1);
  --success: #10b981;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Spotlight cursor effect */
.spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

body:hover .spotlight {
  opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
  z-index: 1000;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease;
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
}

.floating-nav.visible {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* Container Layout */
.container {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Left Column - Sticky Sidebar */
.left-column {
  width: 420px;
  padding: 6rem 3rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.profile-header {
  margin-bottom: 3rem;
}

.profile-image-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent-secondary)) border-box;
  box-shadow: 0 0 40px var(--accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px var(--accent-glow), 0 0 80px rgba(56, 189, 248, 0.2);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--success);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.title {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Section Navigation */
.section-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: auto;
}

.section-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
}

.nav-line {
  width: 32px;
  height: 1px;
  background: var(--text-muted);
  transition: all 0.3s ease;
}

.section-link:hover,
.section-link.active {
  color: var(--text-primary);
}

.section-link:hover .nav-line,
.section-link.active .nav-line {
  width: 64px;
  background: var(--text-primary);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-icon:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

/* Right Column - Main Content */
.right-column {
  flex: 1;
  padding: 6rem 4rem 6rem 2rem;
  max-width: 720px;
}

.section {
  margin-bottom: 6rem;
  scroll-margin-top: 6rem;
}

/* About Section */
.intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.body-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.inline-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  display: inline;
}

.stat-plus,
.stat-percent {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Headings */
.section-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* Experience Cards */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.experience-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.experience-card:hover {
  background: var(--bg-card);
  border-color: var(--border);
  transform: translateX(4px);
}

.experience-date {
  flex-shrink: 0;
  width: 120px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.25rem;
}

.experience-content {
  flex: 1;
}

.experience-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.experience-title .company {
  color: var(--text-primary);
}

.arrow-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  margin-left: 0.25rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.experience-card:hover .arrow-icon {
  color: var(--accent);
  transform: translate(4px, -4px);
}

.experience-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.experience-card:hover .tech-tag {
  background: rgba(56, 189, 248, 0.15);
}

/* Resume Link */
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.75rem 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.resume-link:hover .arrow-icon {
  transform: translate(4px, -4px);
  color: var(--accent);
}

.resume-link:hover .arrow-icon {
  transform: translate(4px, -4px);
  color: var(--accent);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.project-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.15);
}

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

.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.project-link {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.project-link:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.project-link svg {
  width: 100%;
  height: 100%;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Skills Section */
.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skill-category {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.category-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.skill-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
  border-radius: 2px;
  width: 0;
  transition: width 1s ease-out;
}

.skill-progress.animated {
  width: var(--progress);
}

/* Certifications Grid */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

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

.cert-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.cert-icon svg {
  width: 28px;
  height: 28px;
}

.cert-icon.aws {
  background: rgba(255, 153, 0, 0.15);
  color: #ff9900;
}

.cert-icon.k8s {
  background: rgba(50, 108, 229, 0.15);
  color: #326ce5;
}

.cert-icon.terraform {
  background: rgba(126, 66, 251, 0.15);
  color: #7e42fb;
}

.cert-icon.linux {
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
}

.cert-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cert-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-issuer {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Education Section */
.education-section {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.education-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.education-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.edu-year {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.degree {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.university {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact Section */
.contact-section {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-btn svg {
  width: 18px;
  height: 18px;
}

.contact-btn.primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.contact-btn.primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
}

.contact-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.contact-btn.secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

.divider {
  color: var(--text-muted);
}

.location {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer .copyright {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .left-column {
    width: 350px;
    padding: 4rem 2rem;
  }

  .right-column {
    padding: 4rem 2rem;
  }

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

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .floating-nav {
    display: flex;
  }

  .left-column {
    width: 100%;
    height: auto;
    position: relative;
    padding: 4rem 2rem 2rem;
  }

  .section-nav {
    display: none;
  }

  .right-column {
    padding: 2rem;
    max-width: 100%;
  }

  .section {
    margin-bottom: 4rem;
    scroll-margin-top: 4rem;
  }

  .experience-card {
    flex-direction: column;
    gap: 0.5rem;
  }

  .experience-date {
    width: auto;
  }

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

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

@media (max-width: 600px) {
  .left-column {
    padding: 3rem 1.5rem 2rem;
  }

  .name {
    font-size: 2rem;
  }

  .right-column {
    padding: 1.5rem;
  }

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

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

  .contact-actions {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
    justify-content: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .divider {
    display: none;
  }

  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .skill-name {
    width: auto;
  }

  .skill-bar {
    width: 100%;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection styling */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

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

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-secondary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}
