/* === CUSTOM PROPERTIES (VARIABLES) === */
:root {
  /* Color Palette - Premium Dark/Cyber Theme */
  --bg-main: #0a0a0f;
  --bg-secondary: #11111a;
  
  --primary: #00f0ff; /* Cyber Cyan */
  --primary-glow: rgba(0, 240, 255, 0.4);
  --secondary: #7000ff; /* Deep Neon Purple */
  --accent: #ff0055; /* Alert/Action Pink */
  
  --text-main: #f8f9fa;
  --text-muted: #a0aec0;
  
  /* Glassmorphism */
  --glass-bg: rgba(17, 17, 26, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Typography */
  --font-family: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed header */
}

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

/* Dynamic Background Elements */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background-color: rgba(112, 0, 255, 0.3); /* Purple */
  top: -10%;
  left: -5%;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background-color: rgba(0, 240, 255, 0.2); /* Cyan */
  bottom: 20%;
  right: -5%;
  animation-delay: -5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background-color: rgba(255, 0, 85, 0.15); /* Pink */
  top: 40%;
  left: 30%;
  animation-duration: 25s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* === LAYOUT & UTILITIES === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
}

.section {
  padding: 6rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-subtitle {
  color: var(--primary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.section-header.center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  border: none;
  font-family: var(--font-family);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-main);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  background: #00c3cf;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-social {
  padding: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
}

.btn-social:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

/* === NAVIGATION === */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

/* Style applied via JS on scroll */
.glass-nav.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  transition: var(--transition-normal);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 2px;
}

.logo .highlight {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-normal);
  box-shadow: 0 0 8px var(--primary-glow);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

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

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

/* === HERO SECTION === */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.4rem; /* For the typewriter to not shift layout */
}

/* Typewriter cursor effect */
.typewriter-text::after {
  content: '|';
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.image-wrapper {
  position: relative;
  padding: 8px; /* Slight white padding */
  border-radius: 50%; /* Circle shape */
  background: #ffffff; /* Match the photo's white background */
  border: 3px solid var(--primary); /* Cyan border */
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(255,255,255,1);
  animation: float-slow 6s ease-in-out infinite;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%; /* Make the image itself a circle */
  display: block;
  transition: var(--transition-normal);
}

.image-wrapper:hover {
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.4);
}

.status-indicator {
  position: absolute;
  bottom: 20px;
  left: -10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--primary); /* match border */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 10;
}

.pulse {
  display: block;
  width: 10px;
  height: 10px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff66;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

/* === ABOUT SECTION === */
.about-content {
  padding: 3rem;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.about-content p {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.about-content .lead-text {
  font-size: 1.3rem;
  color: var(--text-main);
  font-weight: 500;
}

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

.skill-category {
  padding: 2rem;
  transition: var(--transition-normal);
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
}

.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.skill-category h3 i {
  color: var(--primary);
}

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

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* === PROJECTS SECTION === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  padding: 2.5rem;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.1), transparent 50%);
  opacity: 0;
  transition: var(--transition-slow);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
}

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

.project-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-tech span {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--secondary);
  background: rgba(112, 0, 255, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

/* === STATS SECTION === */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.stat-card {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* For images that might stick out a bit */
}

.stat-card img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* === CONTACT SECTION === */
.contact-wrapper {
  padding: 4rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.block-btn {
  width: 100%;
}

.social-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-normal);
}

.social-item i {
  font-size: 2rem;
  color: var(--primary);
}

.social-item span {
  font-weight: 600;
  font-size: 1.1rem;
}

.hover-lift:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
}

/* === FOOTER === */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #050508;
  padding: 3rem 0;
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* === MEDIA QUERIES === */
@media (max-width: 900px) {
  .hero-container,
  .contact-wrapper,
  .stats-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    justify-content: center;
  }
  
  .section-header.center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-cta {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .contact-wrapper {
    padding: 2rem;
  }
}

/* Utility Classes added by JS */
.aos-animate { /* To be controlled by JS for simple scroll reveal */
  opacity: 1 !important;
  transform: translateY(0) !important;
}

[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-aos="fade-up"] { transform: translateY(50px); }
[data-aos="fade-left"] { transform: translateX(50px); }
[data-aos="zoom-in"] { transform: scale(0.9); }

/* Apply delay locally */
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
