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

:root {
  /* Color Palette - Premium Dark Theme */
  --bg-primary: #050810;
  --bg-secondary: #0B1121;
  --bg-glass: rgba(11, 17, 33, 0.7);
  --accent-cyan: #00F0FF;
  --accent-blue: #3B82F6;
  --accent-purple: #A855F7;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --border-glass: rgba(255, 255, 255, 0.05);
  
  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Transitions & Shadows */
  --ts-fast: 0.2s ease;
  --ts-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
  --shadow-card: 0 10px 30px rgba(0,0,0,0.5);
}




/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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


/* Background Effects */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 240, 255, 0.1);
  border-color: transparent;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.loader-pulse {
  width: 50px;
  height: 50px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 20px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

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

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

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--ts-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
  padding: 1.5rem 0;
  transition: var(--ts-smooth);
}


header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
}

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

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dropdown Styles */
.nav-links .dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 180px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  padding: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dropdown-content a:hover {
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  padding-left: 1.2rem;
}

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

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

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

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.hero-typewriter {
  display: inline-block;
  color: var(--accent-blue);
  border-right: 3px solid var(--accent-cyan);
  padding-right: 5px;
  white-space: nowrap;
  animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-cyan); }
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image-container {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  border: 2px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
  animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(0, 240, 255, 0.4);
  top: -20px;
  right: -20px;
}

.orb-2 {
  width: 150px;
  height: 150px;
  background: rgba(59, 130, 246, 0.4);
  bottom: 20px;
  left: -20px;
  animation-delay: -3s;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* About Section */
.about {
  background-color: var(--bg-secondary);
}

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

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--text-main);
  font-weight: 500;
}

/* Skills Box */
.skills-container {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
}

.skill-item {
  margin-bottom: 1.5rem;
}

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

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 4px;
  position: relative;
  /* width is set inline */
}

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

.certificate-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--ts-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.certificate-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: var(--shadow-card), 0 0 15px rgba(0, 240, 255, 0.1);
}

.certificate-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.certificate-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.certificate-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.certificate-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.certificate-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.certificate-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.verify-link {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.verify-link:hover {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  transition: var(--ts-fast);
}

.social-icons a:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-image-container {
    width: 300px;
    height: 300px;
    right: 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
    order: 3;
    margin-left: 1rem;
  }
  


  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(11, 17, 33, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 1.5rem 2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(105%);
    border-left: 1px solid var(--border-glass);
    box-shadow: -15px 0 35px rgba(0,0,0,0.4);
    z-index: 1002;
    gap: 0.5rem; /* Tighter gap for styled items */
  }
  
  .nav-links.active {
    transform: translateX(0);
  }

  /* Mobile Link Styling */
  .nav-links a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  .nav-links a i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    width: 24px;
    text-align: center;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.15);
    padding-left: 1.8rem; /* Slide right effect */
  }




  /* Overlay Backdrop for Mobile Menu */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  body.menu-open {
    overflow: hidden; /* Prevent scrolling when menu is open */
  }

  
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-container {
    position: relative;
    transform: none;
    margin: 3rem auto 0;
    left: auto;
    right: auto;
    width: 250px;
    height: 250px;
  }
  
  .section-title {
    font-size: 2rem;
  }

  /* Sanitize Orbs on Mobile */
  .orb {
    filter: blur(30px);
    opacity: 0.5;
  }
  
  .orb-1 {
    width: 120px !important;
    height: 120px !important;
    right: -10px !important;
    top: -10px !important;
  }
  
  .orb-2 {
    width: 100px !important;
    height: 100px !important;
    left: -10px !important;
    bottom: -10px !important;
  }
}

