/* ===================================
   🚀 AI FUTURISTIC PORTFOLIO CSS
   ================================ */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #00ffff;
  --secondary-color: #ff00ff;
  --accent-color: #00ff88;
  --bg-dark: #0a0a1f;
  --bg-darker: #000011;
  --text-primary: #ffffff;
  --text-secondary: #b8b8d4;
  --glow-cyan: 0 0 10px rgba(0, 255, 255, 0.5);
  --glow-magenta: 0 0 10px rgba(255, 0, 255, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Oxanium', sans-serif;
  --font-accent: 'Orbitron', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: var(--primary-color);
  color: var(--bg-darker);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ===== ANIMATED BACKGROUND ===== */
.stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* Glowing Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-color), transparent);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary-color), transparent);
  top: 50%;
  right: -5%;
  animation-delay: 7s;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-color), transparent);
  bottom: 10%;
  left: 30%;
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, -50px) rotate(5deg); }
  50% { transform: translate(-30px, 30px) rotate(-5deg); }
  75% { transform: translate(30px, 50px) rotate(3deg); }
}

/* ===== HEADER ===== */
.futuristic-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 31, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  padding: 1rem 2rem;
  z-index: 1000;
  transition: var(--transition);
}

.futuristic-header.scrolled {
  background: rgba(10, 10, 31, 0.95);
  box-shadow: 0 5px 30px rgba(0, 255, 255, 0.2);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.logo-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: var(--glow-cyan);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.logo-wrapper:hover .logo-img {
  transform: scale(1.1) rotate(5deg);
}

.logo-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 60px;
  height: 60px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.nav_logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Navigation */
.main-nav .nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  padding: 0.5rem 0;
  overflow: hidden;
}

.link-text {
  position: relative;
  z-index: 2;
}

.link-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.4s ease;
  box-shadow: var(--glow-cyan);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover .link-glow,
.nav-link.active .link-glow {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
  box-shadow: var(--glow-cyan);
}

/* ===== HOME SECTION ===== */
.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.home-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* Profile Container */
.profile-container {
  position: relative;
  perspective: 1000px;
}

.image-frame {
  position: relative;
  width: 350px;
  height: 350px;
  animation: levitate 6s ease-in-out infinite;
}

@keyframes levitate {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.home-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.5),
    0 0 60px rgba(0, 255, 255, 0.3),
    inset 0 0 30px rgba(0, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

/* Frame Corners */
.frame-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary-color);
  z-index: 3;
  animation: pulse 2s ease-in-out infinite;
}

.frame-corner.tl {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.frame-corner.tr {
  top: -10px;
  right: -10px;
  border-left: none;
  border-bottom: none;
}

.frame-corner.bl {
  bottom: -10px;
  left: -10px;
  border-right: none;
  border-top: none;
}

.frame-corner.br {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

/* Scan Line */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: scan 3s linear infinite;
  box-shadow: 0 0 10px var(--primary-color);
  z-index: 3;
}

@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(350px); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Intro Text */
.intro-text {
  text-align: center;
  max-width: 800px;
}

.greeting {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hi-text {
  color: var(--text-secondary);
  font-weight: 400;
}

.animated-name {
  display: block;
  font-family: var(--font-accent);
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ff00ff, #00ffff, #00ff88);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s linear infinite;
  margin-top: 0.5rem;
  letter-spacing: 2px;
}

@keyframes gradientShift {
  to { background-position: 200% center; }
}

.role-container {
  margin: 2rem 0;
}

.role-text {
  font-size: 1.3rem;
  line-height: 2;
  color: var(--text-secondary);
}

.emoji {
  font-size: 1.5rem;
}

.separator {
  color: var(--primary-color);
  margin: 0 0.5rem;
}

/* Social Buttons */
.home_social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.social-btn {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.05);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--primary-color), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  border-radius: 50%;
  opacity: 0.2;
}

.social-btn:hover::before {
  width: 100px;
  height: 100px;
}

.social-btn:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--glow-cyan);
}

.social-btn .tooltip {
  position: absolute;
  bottom: -35px;
  background: rgba(0, 255, 255, 0.9);
  color: var(--bg-darker);
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  white-space: nowrap;
}

.social-btn:hover .tooltip {
  opacity: 1;
  bottom: -40px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Futuristic Button */
.btn-futuristic {
  position: relative;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn-futuristic:hover .btn-glow {
  left: 100%;
}

.btn-futuristic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.4s ease;
  z-index: 1;
}

.btn-futuristic:hover::before {
  width: 100%;
}

.btn-futuristic:hover {
  color: var(--bg-darker);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.5),
    inset 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-3px);
}

.btn-futuristic:hover .btn-content {
  color: var(--bg-darker);
}

.btn-primary {
  border-color: var(--primary-color);
}

.btn-primary::before {
  background: var(--primary-color);
}

.btn-secondary {
  border-color: var(--secondary-color);
}

.btn-secondary::before {
  background: var(--secondary-color);
}

.btn-secondary:hover {
  box-shadow: 
    0 0 20px rgba(255, 0, 255, 0.5),
    inset 0 0 20px rgba(255, 0, 255, 0.2);
}



@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}




@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

.scroll-indicator p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.title-number {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  font-family: monospace;
}

.title-line {
  display: block;
  height: 3px;
  width: 100px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  margin: 1rem auto 0;
  box-shadow: var(--glow-cyan);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
}

.about-img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.img-border {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  border: 2px solid var(--primary-color);
  
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 100% 100%, 50% 100%, 0 100%, 0 50%);
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.img-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--primary-color), transparent);
  filter: blur(40px);
  opacity: 0.3;
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}

.about-text {
  color: var(--text-secondary);
}

.text-content {
  line-height: 1.8;
}

.about-description {
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.about-motto {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 2rem;
  padding: 1rem;
  border-left: 3px solid var(--primary-color);
  background: rgba(0, 255, 255, 0.05);
  border-radius: 5px;
}

.motto-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
  border-color: var(--primary-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

/* Skill Cards */
.skill-card {
  background: rgba(0, 255, 255, 0.04);
  border: 1.5px solid rgba(0, 255, 255, 0.25);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Hover Glow */
.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 35px rgba(0, 255, 255, 0.4);
}

/* Icon */
.skill-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 0.8rem;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
  transition: 0.3s;
}

.skill-card:hover .skill-icon img {
  transform: scale(1.12) rotate(3deg);
}

/* Skill Name */
.skill-name {
  font-size: 1rem;
  font-family: var(--font-accent);
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .skills-section {
    padding: 4rem 1rem;
  }
}

@media (max-width: 480px) {
  .skill-icon {
    width: 55px;
    height: 55px;
  }
  .skill-name {
    font-size: 0.9rem;
  }
}


/* ===== CERTIFICATIONS SECTION ===== */
.cert-section {
  padding: 8rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: rgba(0, 255, 255, 0.03);
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cert-card:hover::before {
  left: 100%;
}

.cert-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
}

.cert-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cert-card:hover .cert-image img {
  transform: scale(1.1);
}

.cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.cert-overlay i {
  font-size: 3rem;
  color: var(--bg-darker);
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-info {
  padding: 1.5rem;
}

.cert-info h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-accent);
}

.cert-issuer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.cert-badge.elite {
  border-color: #ffd700;
  color: #ffd700;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

#lightboxImage {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(0, 255, 255, 0.2);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--primary-color);
  color: var(--bg-darker);
  transform: scale(1.1);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

/* ===== PROJECTS SECTION ===== */
/* Updated container width */
.projects-section {
  padding: 2rem 1rem;
  max-width: 1200px; /* was 950px */
  margin: 0 auto;
}

/* Updated grid spacing */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem; /* was 1.3rem */
  align-items: stretch;
}


/* ===== PROJECT CARD ===== */
.project-card {
  background: rgba(0, 255, 255, 0.03);
  border: 1.3px solid rgba(0, 255, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px; /* ensures even box size */
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 6px 22px rgba(0, 255, 255, 0.35);
}

/* Hover ring */
.project-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--primary-color),
    transparent 30%
  );
  opacity: 0;
  transition: opacity 0.4s;
  animation: rotate 4s linear infinite;
  z-index: 0;
}

.project-card:hover::before {
  opacity: 0.07;
}

/* ===== PROJECT IMAGE ===== */
.project-image {
  height: 160px; /* reduced again */
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

/* Overlay Icon */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.85), rgba(255, 0, 255, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ===== CONTENT ===== */
.project-content {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.project-title {
  font-size: 1.05rem;
  color: var(--primary-color);
  font-family: var(--font-accent);
  line-height: 1.2;
}

.project-status {
  background: rgba(0, 255, 136, 0.22);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.15rem 0.55rem;
  font-size: 0.55rem;
  border-radius: 12px;
}

.project-desc {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
  flex-grow: 1; /* pushes button down */
}

/* Tech stack */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}

.tech-tag {
  font-size: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.22);
}

/* Button */
.btn-project {
  width: 100%;
  padding: 0.55rem;
  font-size: 0.8rem;
  justify-content: center;
  margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  position: relative;
}

.contact-intro h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: var(--font-accent);
}

.contact-intro p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-text p,
.contact-text a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--bg-darker);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
}

/* Contact Form */
.contact-form {
  background: rgba(0, 255, 255, 0.03);
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.2rem;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(0, 255, 255, 0.05);
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 150px;
  padding-top: 1rem;
}

.input-wrapper textarea ~ i {
  top: 1.5rem;
  transform: none;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo h3 {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  color: var(--bg-darker);
  transform: translateY(-3px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  margin: 2rem 0;
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-quote {
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    text-align: center;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background: rgba(10, 10, 31, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 255, 255, 0.2);
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  }

  .main-nav.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    text-align: center;
  }

  .animated-name {
    font-size: 2.5rem;
  }

  .image-frame {
    width: 280px;
    height: 280px;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-futuristic {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .animated-name {
    font-size: 2rem;
  }

  .role-text {
    font-size: 1rem;
  }

  .image-frame {
    width: 250px;
    height: 250px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITY CLASSES ===== */
.bd_grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Prevent text selection on buttons */
button,
.btn-futuristic,
.social-btn,
.nav-link {
  user-select: none;
  -webkit-user-select: none;
}

/* Smooth image loading */
img {
  display: block;
  max-width: 100%;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
