/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colors - Deep Dark Theme */
  --bg-primary: #050711;
  --bg-secondary: #0d1226;
  --bg-tertiary: rgba(20, 27, 51, 0.7);
  
  /* Neon Accents */
  --neon-cyan: #00eaff;
  --neon-purple: #bb86fc;
  --neon-mint: #00ffcc;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Fonts */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Effects */
  --glow-cyan: rgba(0, 234, 255, 0.4);
  --glow-purple: rgba(187, 134, 252, 0.4);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(13, 18, 38, 0.5);
}

/* ==========================================================================
   RESET & GLOBAL
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 234, 255, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(187, 134, 252, 0.05), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px var(--glow-cyan);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-outline:hover {
  background: rgba(0, 234, 255, 0.1);
  transform: translateY(-3px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(5, 7, 17, 0.8);
  border-bottom: var(--glass-border);
}

.header.scrolled {
  padding: 1rem 0;
  background: rgba(5, 7, 17, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-greeting {
  font-size: 1.5rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  height: 3rem; /* to prevent jumping with typing effect */
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Ambient glow in hero */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.5;
  filter: blur(60px);
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Typing Effect cursor */
.typed-cursor {
  opacity: 1;
  animation: blink 0.7s infinite;
  color: var(--neon-cyan);
}
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }


/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
  padding: 8rem 0;
  background: var(--bg-secondary);
  position: relative;
}

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

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-text p strong {
  color: var(--text-primary);
}

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

.highlight-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  padding: 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 234, 255, 0.1);
}

.highlight-card i {
  font-size: 2rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   SERVICES / EXPERTISE
   ========================================================================== */
.services {
  padding: 8rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-secondary);
  border: var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 234, 255, 0.1), rgba(187, 134, 252, 0.1));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-purple);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 234, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--neon-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glow-cyan);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.experience {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

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

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

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 21px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 10px var(--glow-cyan);
}

.timeline-content {
  background: var(--glass-bg);
  border: var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--neon-purple);
  transform: translateX(10px);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--neon-mint);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-desc {
  list-style-type: none;
}

.timeline-desc li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline-desc li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
}

/* ==========================================================================
   EDUCATION & ACHIEVEMENTS
   ========================================================================== */
.education-achievements {
  padding: 8rem 0;
}

.edu-achieve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.list-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.list-item {
  background: var(--glass-bg);
  border: var(--glass-border);
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition);
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
}

.list-icon {
  width: 50px;
  height: 50px;
  background: rgba(187, 134, 252, 0.1);
  color: var(--neon-purple);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.list-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.list-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.list-content .year {
  color: var(--neon-mint);
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-top: 0.5rem;
}

/* Tags for Certifications */
.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cert-tag {
  background: rgba(0, 234, 255, 0.1);
  color: var(--neon-cyan);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(0, 234, 255, 0.2);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
  padding: 8rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: var(--glass-border);
  padding: 4rem 2rem;
  border-radius: 32px;
}

.contact-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-info-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--neon-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glow-cyan);
  transform: translateY(-5px);
}

.contact-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-item:hover .contact-link {
  color: var(--neon-cyan);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--bg-primary);
  border-top: var(--glass-border);
}

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

/* ==========================================================================
   ANIMATIONS & UTILS (ScrollReveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid, .edu-achieve-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    gap: 3rem;
  }

  .timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: 11px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(5, 7, 17, 0.98);
    flex-direction: column;
    padding: 6rem 2rem;
    transition: var(--transition);
    border-left: var(--glass-border);
  }

  .nav-links.nav-active {
    right: 0;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }

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