/* --- 1. SETTINGS & RESET --- */
:root {
  --bg-deep: #050505;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-main: 'Outfit', sans-serif;
  --radius: 16px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* --- 2. SLOW MOTION AURA BACKGROUND --- */
.aurora-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #111 0%, #050505 100%);
}

.aurora-blob {
  position: absolute; border-radius: 50%; 
  filter: blur(80px); opacity: 0.4;
  will-change: transform; 
}

.blob-1 {
  width: 500px; height: 500px; background: #3b0764; /* Violet */
  top: -10%; left: -10%;
  animation: floatSlow 20s infinite ease-in-out alternate;
}
.blob-2 {
  width: 400px; height: 400px; background: #0c4a6e; /* Cyan */
  top: 40%; right: -10%;
  animation: floatSlow 25s infinite ease-in-out alternate-reverse;
}
.blob-3 {
  width: 300px; height: 300px; background: #1e1b4b; /* Indigo */
  bottom: -10%; left: 20%;
  animation: floatSlow 22s infinite ease-in-out alternate;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(30px, -50px) scale(1.1) rotate(10deg); }
  66% { transform: translate(-20px, 20px) scale(0.9) rotate(-5deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* --- 3. FLOATING NAVBAR --- */
.floating-nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: auto;
}
.nav-content {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 2rem; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex; gap: 3rem; align-items: center;
}
.logo { font-weight: 800; font-size: 1.5rem; color: var(--text-main); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links i { font-size: 1rem; }

@media (max-width: 600px) {
  .nav-content { padding: 0.6rem 1.5rem; gap: 1.5rem; width: 90vw; justify-content: space-between; }
  .nav-links { gap: 1.2rem; }
  .nav-links span { display: none; }
  .nav-links i { font-size: 1.2rem; }
}

/* --- 4. HERO SECTION --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 20px 40px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color); border-radius: 30px;
  font-size: 0.8rem; color: var(--accent-cyan); margin-bottom: 2rem;
}
.pulse-dot {
  width: 6px; height: 6px; background: var(--accent-cyan);
  border-radius: 50%; box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }

.hero-title {
  font-size: 4rem; line-height: 1.1; font-weight: 800; letter-spacing: -2px;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-muted); max-width: 500px;
  margin: 0 auto 2.5rem; font-weight: 400;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Buttons */
.btn {
  padding: 12px 0; /* Vertical padding, horizontal auto */
  width: 100%; /* Ensure full width inside cards */
  justify-content: center;
  border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-primary {
  background: var(--text-main); color: var(--bg-deep); border: 1px solid var(--text-main);
}
.btn-primary:hover {
  background: var(--accent-cyan); border-color: var(--accent-cyan); color: white;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4); transform: translateY(-2px);
}
.btn-glass {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--text-main);
  padding: 12px 28px; width: auto; /* Revert width for hero buttons */
}
.btn-glass:hover { border-color: var(--text-main); background: rgba(255,255,255,0.1); }

/* --- 5. STATS STRIP --- */
.stats-strip { margin-bottom: 4rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(10, 10, 10, 0.6); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 1.5rem; 
  backdrop-filter: blur(10px);
}
.stat-item { text-align: center; border-right: 1px solid var(--border-color); }
.stat-item:last-child { border: none; }
.stat-item h2 { font-size: 2rem; margin-bottom: 0.2rem; color: white; }
.stat-item p { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }

/* --- 6. COMMON LAYOUT --- */
.section { padding: 5rem 0; }
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.heading-lg { font-size: 2.2rem; font-weight: 700; margin-bottom: 3rem; letter-spacing: -0.5px; }

/* --- 7. BLACK GLASS CARDS (NO GLOW BEHIND) --- */
.bento-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Black Glass Style */
.bento-card, .skill-card, .project-card, .cert-card, .contact-item {
  /* Dark Black Glass */
  background: rgba(5, 5, 5, 0.75); 
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  
  /* Thin Subtle Border */
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* Initial Deep Shadow */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

/* Hover State - Lighter Black, No Color Glow */
.bento-card:hover, .skill-card:hover, .project-card:hover, .cert-card:hover, .contact-item:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(15, 15, 15, 0.85);
}

.span-2 { grid-column: span 2; }
@media (max-width: 768px) { .span-2 { grid-column: span 1; } }

.bento-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: white; }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.glow-card { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.card-icon { 
  font-size: 2rem; margin-bottom: 1rem; color: var(--accent-cyan); 
  background: rgba(6, 182, 212, 0.1); width: 60px; height: 60px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.mini-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 0.5rem; }
.mini-tags span { font-size: 0.75rem; background: rgba(255,255,255,0.08); padding: 4px 8px; border-radius: 4px; color: var(--text-muted); }

/* --- 8. SKILLS --- */
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.group-title { margin-bottom: 1.2rem; color: var(--text-main); font-size: 1.1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; display: inline-block; }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill { padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; font-size: 0.85rem; color: var(--text-muted); }

/* --- 9. PROJECTS SECTION --- */
.project-list { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 1.5rem; 
}
.single-item { display: flex; justify-content: center; }
.project-card { overflow: hidden; max-width: 500px; width: 100%; }

/* FIX: Vertical Layout to move button to bottom */
.project-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; width: 100%; }
.tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-cyan); font-weight: 700; border: 1px solid rgba(6, 182, 212, 0.3); padding: 4px 8px; border-radius: 4px; background: rgba(6, 182, 212, 0.1); }

.arrow-icon { color: var(--text-muted); transform: rotate(45deg); transition: 0.3s; }
.project-card:hover .arrow-icon { color: var(--accent-cyan); transform: rotate(0deg) translate(2px, -2px); }

.project-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #fff; }
.project-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; width: 100%; }
.tech-row span { 
  font-family: monospace; font-size: 0.8rem; color: var(--accent-violet); 
  background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 6px 10px; border-radius: 6px; 
}
.full-width { width: 100%; justify-content: center; }

/* --- 10. CERTIFICATIONS SECTION --- */
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.cert-card { overflow: hidden; }

/* Certs keep Row Layout */
.cert-card .card-content { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  position: relative; 
  z-index: 2; 
  pointer-events: none; 
}
.card-content a, .card-content button { pointer-events: auto; }

.cert-icon {
  width: 50px; height: 50px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 50px;
}
.canister-blue { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }
.canister-green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.canister-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }

.cert-info { flex: 1; }
.cert-info h3 { font-size: 1.1rem; margin-bottom: 2px; color: var(--text-main); }
.cert-info .issuer { font-size: 0.85rem; color: var(--text-muted); }
.cert-info .date { font-size: 0.75rem; color: var(--accent-violet); margin-top: 4px; font-family: monospace; }

.cert-link {
  width: 35px; height: 35px; border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: 0.2s;
}
.cert-link:hover { background: var(--text-main); color: var(--bg-deep); transform: scale(1.1); }

/* --- 11. 3D TILT & SHINY SURFACE EFFECT --- */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  will-change: transform;
}
.card-content { transform: translateZ(20px); }

.card-shine {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  /* Stronger Shine for 3D look */
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.15), transparent 50%);
  z-index: 2; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  mix-blend-mode: overlay;
}
.tilt-card:hover .card-shine { opacity: 1; }

/* --- 12. CONTACT --- */
.contact-card {
  background: linear-gradient(180deg, rgba(10,10,10,0.8) 0%, rgba(5,5,5,0) 100%);
  border: 1px solid var(--border-color); padding: 3rem 2rem; border-radius: 20px; text-align: center;
}
.contact-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-grid { display: flex; justify-content: center; gap: 1.5rem; margin: 3rem 0; flex-wrap: wrap; }

.contact-item {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  width: 100%; max-width: 400px; cursor: pointer;
}
.icon-circle {
  min-width: 45px; width: 45px; height: 45px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-main);
  border: 1px solid var(--border-color);
}
.contact-text-box { flex: 1; overflow: hidden; }
.contact-text-box small { display: block; color: var(--text-muted); font-size: 0.8rem; }
.contact-text-box strong { display: block; color: var(--text-main); font-size: 0.95rem; word-break: break-all; white-space: normal; }

.contact-footer { color: var(--text-muted); font-size: 0.85rem; margin-top: 2rem; }

/* --- ANIMATIONS --- */
.fade-in { opacity: 0; animation: fadeIn 0.8s ease forwards; }
.fade-up { opacity: 0; transform: translateY(20px); transition: 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
@keyframes fadeIn { to { opacity: 1; } }

@media (max-width: 600px) {
  .hero-title { font-size: 2.5rem; }
  .stats-grid { gap: 1rem; padding: 1rem; }
  .stat-item h2 { font-size: 1.5rem; }
}
