:root {
  --bg: #030406;
  --card-bg: #0a0c10;
  --primary: #3b82f6;
  --accent: #8b5cf6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .nav-logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; }

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

/* Aurora Glow Backgrounds */
.aurora-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  filter: blur(100px);
}
.aurora { position: absolute; border-radius: 50%; opacity: 0.12; }
.aurora-1 { width: 600px; height: 600px; background: var(--primary); top: -150px; right: -100px; }
.aurora-2 { width: 500px; height: 500px; background: var(--accent); bottom: -100px; left: -100px; }

/* Floating Nav */
.floating-nav { position: fixed; top: 1.5rem; left: 0; width: 100%; z-index: 1000; }
.nav-inner {
  max-width: 1000px; margin: 0 auto;
  background: rgba(10, 12, 16, 0.7); backdrop-filter: blur(15px);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 0.5rem 1.5rem; display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { color: var(--text-primary); font-size: 1.1rem; }
.nav-links { display: flex; justify-content: center; gap: 1rem; flex: 1; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: white; }
.nav-contact { background: white; color: black; padding: 0.4rem 1rem; border-radius: 50px; font-weight: 600; text-decoration: none; font-size: 0.85rem; }

/* Hero */
.hero-section { padding: 14rem 0 8rem; text-align: center; }
.hero-tag { display: inline-block; background: rgba(59, 130, 246, 0.1); color: var(--primary); border: 1px solid rgba(59, 130, 246, 0.2); padding: 0.4rem 1.2rem; border-radius: 50px; font-size: 0.75rem; margin-bottom: 2rem; font-weight: 600; }
.hero-title { font-size: clamp(2.8rem, 8vw, 4.8rem); line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -3px; }
.gradient-text { background: linear-gradient(90deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { font-size: 1.25rem; color: var(--text-secondary); max-width: 650px; margin: 0 auto 3.5rem; }
.btn-glow { background: var(--primary); color: white; padding: 1rem 2.5rem; border-radius: 10px; text-decoration: none; font-weight: 600; box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); transition: 0.3s; }
.btn-outline { border: 1px solid var(--border); color: white; padding: 1rem 2.5rem; border-radius: 10px; text-decoration: none; margin-left: 1rem; transition: 0.3s; }
.btn-outline:hover { background: rgba(255,255,255,0.05); }

/* ABOUT SECTION (Photo on Left) */
.about-section { padding: 8rem 0; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: center; }

.image-frame { position: relative; width: 100%; aspect-ratio: 1/1; }
.profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; border: 1px solid var(--border); position: relative; z-index: 2; }
.image-accent { position: absolute; top: 15px; left: 15px; width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 24px; z-index: 1; opacity: 0.2; }

.section-tag { color: var(--primary); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; font-weight: 700; margin-bottom: 1rem; display: block; }
.about-heading { font-size: 3rem; line-height: 1.1; margin-bottom: 2rem; letter-spacing: -1.5px; }
.about-heading span { color: var(--accent); }
.about-right p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 1.5rem; }

.about-info-grid { display: flex; gap: 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.info-item { display: flex; align-items: center; gap: 1rem; }
.info-item i { color: var(--primary); font-size: 1.2rem; }
.info-item label { display: block; font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; }
.info-item p { color: white; margin: 0; font-weight: 600; font-size: 0.95rem; }

/* Projects */
.project-section { padding: 8rem 0; }
.section-heading { font-size: 2.5rem; margin-bottom: 4rem; text-align: center; }
.project-card { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 6rem; align-items: center; position: relative; overflow: hidden; }
.project-card.reverse .project-image { order: 2; }
.project-card.reverse .project-info { order: 1; }
.project-image img { width: 100%; border-radius: 20px; border: 1px solid var(--border); }
.project-cat { color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.project-info h3 { font-size: 2.2rem; margin: 0.5rem 0 1rem; }
.project-info p { color: var(--text-secondary); margin-bottom: 2rem; }
.project-tags { margin-top: 1rem; }
.project-tags span { background: var(--card-bg); border: 1px solid var(--border); padding: 0.4rem 1rem; border-radius: 6px; font-size: 0.8rem; margin-right: 0.5rem; }

.icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 4rem;
    color: var(--primary);
}
.view-project { color: white; text-decoration: none; font-weight: 700; margin-top: 2rem; display: block; }

/* Skills Dashboard */
.skills-dashboard { background: rgba(255,255,255,0.02); padding: 5rem 0; border-top: 1px solid var(--border); }
.skills-inner { display: flex; justify-content: space-between; gap: 2rem; }
.skill-group { text-align: center; flex: 1; }
.skill-group i { color: var(--accent); font-size: 1.8rem; margin-bottom: 1rem; }
.skill-group h4 { margin-bottom: 0.5rem; }
.skill-group p { font-size: 0.9rem; color: var(--text-secondary); }

/* Footer */
.footer { padding: 8rem 0 4rem; }
.footer-box { background: linear-gradient(135deg, #0a0c10, #030406); border: 1px solid var(--border); padding: 6rem 2rem; border-radius: 40px; text-align: center; }
.footer-email { font-size: clamp(1.2rem, 5vw, 2.8rem); color: var(--primary); text-decoration: none; font-weight: 800; background: var(--card-bg); border: 1px solid var(--border); padding: 1rem 2rem; border-radius: 12px; display: inline-block; transition: 0.3s; }
.footer-email:hover { background: var(--primary); color: white; }
.footer-socials { display: flex; justify-content: center; gap: 1.5rem; margin-top: 4rem; }
.social-btn { border: 1px solid var(--border); padding: 0.8rem 1.8rem; border-radius: 12px; color: white; text-decoration: none; font-weight: 600; transition: 0.3s; font-size: 0.9rem; }
.social-btn:hover { background: white; color: black; }
.copyright { margin-top: 5rem; text-align: center; color: var(--text-secondary); font-size: 0.8rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.9s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 900px) {
  .about-grid, .project-card, .skills-inner { grid-template-columns: 1fr; text-align: center; }
  .image-frame { max-width: 350px; margin: 0 auto; }
  .about-info-grid { justify-content: center; flex-direction: column; gap: 1.5rem; }
  .footer-socials { flex-direction: column; }
}

@media (max-width: 600px) {
  .hero-section { padding: 8rem 0 3rem; }
  .hero-title { font-size: clamp(1.8rem, 10vw, 2.5rem); line-height: 1.1; }
  .hero-description { font-size: 1rem; margin: 0 auto 2rem; }
  .btn-glow, .btn-outline { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-contact { padding: 0.3rem 0.8rem; font-size: 0.75rem; }
  .about-section { padding: 6rem 0; }
  .about-heading { font-size: 2.2rem; }
  .project-section { padding: 6rem 0; }
  .section-heading { font-size: 2rem; margin-bottom: 3rem; }
  .project-card { gap: 1.5rem; margin-bottom: 4rem; }
  .project-info h3 { font-size: 1.8rem; }
  .skills-dashboard { padding: 4rem 0; }
  .footer { padding: 6rem 0 3rem; }
  .footer-box h2 { font-size: 2.5rem; }
  .footer-email { padding: 0.8rem 1.5rem; font-size: clamp(1rem, 5vw, 1.5rem); }
  .social-btn { padding: 0.6rem 1.2rem; font-size: 0.8rem; }
}

/* CERTIFICATIONS STYLES */
.cert-section {
  padding: 8rem 0;
  position: relative;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

.cert-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  min-height: 180px;
}

/* Hover Glow Effect */
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
              rgba(59, 130, 246, 0.1) 0%, 
              transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

.cert-icon {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}

.cert-date {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-info h3 {
  font-size: 1.2rem;
  margin: 0.2rem 0;
  color: var(--text-primary);
}

.cert-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ENHANCED ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger Delay Classes */
.cert-card:nth-child(1) { transition-delay: 0.1s; }
.cert-card:nth-child(2) { transition-delay: 0.2s; }
.cert-card:nth-child(3) { transition-delay: 0.3s; }
.cert-card:nth-child(4) { transition-delay: 0.4s; }
.cert-card:nth-child(5) { transition-delay: 0.5s; }
.cert-card:nth-child(6) { transition-delay: 0.6s; }

/* Mobile Adjustment */
@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Add these to your existing CSS --- */

/* Hide mobile-specific elements by default */
.mobile-toggle, .mobile-only {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
  }

  .cert-card {
    padding: 1.5rem;
    min-height: 200px;
  }

  .cert-info h3 {
    font-size: 1rem;
  }

  .cert-info p {
    font-size: 0.85rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 70%;
    height: 100vh;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
  }

  /* When menu is open */
  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .mobile-only {
    display: inline-block;
    margin-top: 1rem;
  }
  
  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* --- ADD/UPDATE THESE SECTIONS IN style.css --- */

:root {
  --bg: #030406;
  --card-bg: #0a0c10;
  --primary: #3b82f6;
  --accent: #8b5cf6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
}

/* 1. Hero Text Hue-Rotate Animation */
@keyframes hue-shift {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

.gradient-text {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hue-shift 8s linear infinite;
}

/* 2. Active Navigation Highlight */
.nav-links a.active {
  color: white;
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  font-weight: 600;
}

/* 3. Floating "About" Accent Animation */
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -10px); }
}

.image-accent {
  position: absolute;
  top: 15px; left: 15px;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  z-index: 1;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

/* 4. Experience Section Grid */
.experience-section { padding: 4rem 0 8rem; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.exp-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 24px;
  transition: 0.3s;
}
.exp-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.exp-role { color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.exp-company { font-family: 'Bricolage Grotesque'; font-size: 1.5rem; margin: 0.5rem 0; }
.exp-desc { color: var(--text-secondary); font-size: 0.95rem; list-style: none; }
.exp-desc li { margin-bottom: 0.5rem; position: relative; padding-left: 1.2rem; }
.exp-desc li::before { content: "→"; position: absolute; left: 0; color: var(--primary); }

/* 5. Hackathon Thumbnails */
.hack-thumb {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hack-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: 0.5s; }
.cert-card:hover .hack-thumb img { opacity: 1; transform: scale(1.05); }