@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #a855f7;
  --secondary-glow: rgba(168, 85, 247, 0.4);
  --accent: #22d3ee;
  --bg-dark: #030712;
  --bg-card: rgba(17, 24, 39, 0.6);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(34, 211, 238, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

/* Navigation */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  max-height: 45px;
  width: auto;
  object-fit: contain;
}

.footer-logo img {
  max-height: 60px;
  margin-bottom: 5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

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

nav ul li a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  opacity: 0.8;
}

nav ul li a:hover {
  opacity: 1;
  color: var(--primary);
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 10% 60px 10%;
  /* Increased top padding for fixed nav */
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

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

.hero-image img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 60px var(--primary-glow);
  animation: floating 8s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.hero-image::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.2;
  z-index: 1;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-30px) rotate(2deg);
  }

  66% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

.hero h5 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.hero span {
  display: block;
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  transition: var(--transition);
}

.social-links a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--primary-glow);
}

.social-links a.gmail:hover {
  background: #EA4335;
  border-color: #EA4335;
}

.social-links a.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
}

.social-links a.linkedin:hover {
  background: #0077B5;
  border-color: #0077B5;
}

.social-links a.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #bc1888;
}

.social-links a.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
}

.social-links a.github:hover {
  background: #333;
  border-color: #333;
}

/* Sections General */
section {
  padding: 100px 10%;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.section-title .underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  margin: 0 auto;
  border-radius: 2px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.edu-item {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--glass-border);
}

.edu-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
}

/* Skills Section */
/* Skills Grid Updates */
.skills-grid {
  margin-top: 3rem;
}

.skill-category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.skill-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

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

.skill-tag {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
}

.skill-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.skill-list-simple {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skill-list-simple li {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.skill-list-simple li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ── Experience / Timeline Section ── */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
  opacity: 0.3;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 4.5rem;
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 1.85rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  border: 2px solid var(--bg-dark);
  z-index: 2;
}

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

.timeline-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-role {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.timeline-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.timeline-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 4px 12px;
  white-space: nowrap;
}

.timeline-badge.remote {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.07);
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
}

.timeline-bullets li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  position: relative;
  padding-left: 1.4rem;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.8rem;
  top: 2px;
}

.timeline-bullets li strong {
  color: var(--text-main);
}

/* Shared tech pills (Experience + Projects) */
.tech-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 50px;
  padding: 3px 10px;
  letter-spacing: 0.3px;
}

/* ── Project Tab Navigation ── */
.project-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.project-tab-nav {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-tab-btn {
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  transform: none;
  box-shadow: none;
}

.project-tab-btn.active,
.project-tab-btn.show {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.project-tab-content {
  min-height: 200px;
}

/* Projects Section */

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

.project-card {
  position: relative;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-metrics {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 50px;
  padding: 5px 12px;
  transition: 0.3s;
}

.metric-chip:hover {
  background: rgba(99, 102, 241, 0.18);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}



/* Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  cursor: pointer;
  overflow: hidden;
}

.cert-card img {
  width: 100%;
  border-radius: 12px;
  transition: var(--transition);
}

.cert-card:hover img {
  transform: scale(1.05);
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.user-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

/* Contact Form */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

form .full-width {
  grid-column: span 2;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px var(--primary-glow);
}

/* Custom Cursor */
#cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
  transition: transform 0.1s ease-out, width 0.3s, height 0.3s;
}

#cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
  animation: cursorPulse 2s infinite ease-in-out;
}

@keyframes cursorPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.2;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
}

#cursor-outline.active {
  width: 60px;
  height: 60px;
  background: var(--primary-glow);
  border-color: transparent;
  animation: none;
}

.contact-item-link {
  transition: transform 0.3s ease;
}

.contact-item-link:hover {
  transform: translateX(10px);
}

.contact-item-link:hover .glass-panel,
.contact-item-link:hover div[style*="background: var(--glass-bg)"] {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--primary) !important;
}

/* Button & Badge Utilities */
.primary-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--primary) !important;
  transform: translateY(-3px);
}

.filter-btn {
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.badge {
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Certificate Overlays */
.cert-card:hover .img-overlay {
  opacity: 1 !important;
}

.cert-card .img-overlay i {
  transform: scale(0.5);
  transition: var(--transition);
}

.cert-card:hover .img-overlay i {
  transform: scale(1);
}

/* Responsive Improvements */
@media (max-width: 992px) {

  #cursor-dot,
  #cursor-outline {
    display: none;
  }

  nav {
    width: 95%;
    padding: 0.8rem 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: block;
    animation: fadeInDown 0.3s ease-out;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    height: auto;
    min-height: 100vh;
    padding-top: 140px;
    /* More padding for mobile nav */
    padding-bottom: 80px;
    gap: 3rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-image img {
    width: 280px;
    height: 280px;
  }

  .floating-badge {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: -20px !important;
    width: 200px;
  }

  .about-grid,
  .skills-container,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
  }

  form {
    grid-template-columns: 1fr;
  }

  form .full-width {
    grid-column: span 1;
  }

  /* Project Link Buttons */
  .project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
  }

  .project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
  }

  .project-link-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  }

  .project-link-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
    color: #fff;
  }

  .project-link-btn.secondary {
    background: transparent;
    border-color: var(--glass-border);
    color: var(--text-muted);
  }

  .project-link-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
  }