:root {
  --bg-color: #0b0c10;
  --bg-color-alt: #12141a;
  --text-main: #c5c6c7;
  --text-highlight: #ffffff;
  --accent-blue: #66fcf1;
  --accent-blue-dark: #45a29e;
  --accent-purple: #9b51e0;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
  --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;
}

/* Background gradient blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.blob-1, .blob-2 {
  position: absolute;
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.15;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-purple);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--accent-blue);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

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

/* Header/Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-highlight);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-blue);
}

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

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-blue);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-highlight);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h2 span {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sections */
section {
  padding: 6rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-top: 8rem;
}

.hero-content {
  flex: 1;
}

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

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--accent-purple);
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(155, 81, 224, 0.2);
  z-index: 2;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  z-index: 1;
  animation: spin 10s linear infinite;
  opacity: 0.5;
  filter: blur(10px);
}

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

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-blue-dark), var(--accent-purple));
  color: white;
  box-shadow: 0 4px 15px rgba(102, 252, 241, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(155, 81, 224, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-highlight);
  border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
  background: rgba(102, 252, 241, 0.1);
  transform: translateY(-3px);
}

/* Glass Card Style */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(102, 252, 241, 0.2);
}

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

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

.timeline-item {
  padding: 2rem 0;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-blue);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--accent-blue);
  z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.date {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

.timeline-content p {
  font-size: 0.95rem;
  color: #a0a0a0;
}

.issuer {
  font-size: 0.8rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

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

.skill-tag {
  background: rgba(155, 81, 224, 0.1);
  color: var(--text-highlight);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(155, 81, 224, 0.3);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--accent-purple);
  box-shadow: 0 0 15px rgba(155, 81, 224, 0.4);
}

.cert-box {
  margin-top: 3rem;
  text-align: center;
}

.cert-box h4 {
  color: var(--accent-blue);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cert-box p {
  font-size: 0.95rem;
  color: var(--text-main);
  max-width: 700px;
  margin: 0 auto;
}

/* Education & Info */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.edu-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.edu-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.edu-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.edu-item .school {
  color: var(--accent-blue);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.edu-item .duration {
  font-size: 0.85rem;
  color: #a0a0a0;
}

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

.info-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.info-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
}

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

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-main);
  padding: 2rem;
}

.contact-card i, .contact-card svg {
  font-size: 2.5rem;
  color: var(--accent-blue);
  width: 40px;
  height: 40px;
}

.contact-card:hover h3 {
  color: var(--accent-blue);
}

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

/* Initial Load Animations (No JS Required) */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

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

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  /* Disable expensive GPU/CPU tasks on mobile for better FCP */
  .bg-blobs {
    display: none;
  }
  .hero-image::before {
    animation: none;
    display: none;
  }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 6rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .btn-group {
    justify-content: center;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    left: 0;
  }
  
  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
}
