@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono:wght@400&family=Orbitron:wght@400;500;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #18182a;
  --text-primary: #b8c6db;
  --accent-cyan: #00ffe7;
  --accent-purple: #a259ff;
  --accent-green: #00ff85;
  --border-glow: #00ffe7;
}

body, html {
  font-family: 'Share Tech Mono', monospace;
  background: linear-gradient(120deg, #0a0a1a 0%, #18182a 100%);
  color: var(--text-primary);
  scroll-behavior: smooth;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, #1a1a40 0%, #0a0a1a 100%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, #00ffe733 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, #a259ff33 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, #00ff8533 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, #00ffe733 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Header */
header#header {
  background: transparent;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-decoration: none;
  text-shadow: 0 0 10px var(--accent-cyan);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.profile-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px var(--accent-cyan);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.image-rotator {
  width: 100%;
  height: 100%;
  position: relative;
}

.profile-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.profile-image.active {
  opacity: 1;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--accent-cyan);
  margin: 1rem 0;
  text-shadow: 0 0 20px var(--accent-cyan);
  font-family: 'Orbitron', monospace;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-purple);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

nav#nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav#nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: bold;
  font-family: 'Share Tech Mono', monospace;
  position: relative;
  padding: 8px 16px;
  transition: all 0.3s ease;
  border-radius: 6px;
}

nav#nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-cyan);
}

nav#nav a:hover {
  color: var(--accent-cyan);
  background: hsl(180, 100%, 50% / 0.1);
}

nav#nav a:hover::after {
  width: 100%;
}

/* Content Sections */
.content-section {
  padding: 120px 20px 80px;
  margin-bottom: 40px;
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, hsl(220, 30%, 8%) 0%, hsl(260, 60%, 12%) 100%);
  border: 1px solid hsl(180, 100%, 50% / 0.2);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px hsl(220, 30%, 4% / 0.8),
    inset 0 1px 0 hsl(180, 100%, 50% / 0.1);
  backdrop-filter: blur(20px);
  z-index: -1;
}

/* Profile Image */
.profile-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  margin-left: 1rem;
  vertical-align: middle;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', monospace;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, hsl(180, 100%, 50%) 0%, hsl(260, 100%, 60%) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: hsl(180, 50%, 80%);
}

/* Buttons */
.button, a.button {
  display: inline-block;
  background: linear-gradient(135deg, hsl(180, 100%, 50%) 0%, hsl(260, 100%, 60%) 50%, hsl(120, 100%, 50%) 100%);
  padding: 12px 24px;
  color: var(--bg-primary);
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  margin: 10px 10px 10px 0;
  font-family: 'Orbitron', monospace;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 20px hsl(180, 100%, 50% / 0.3);
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsl(180, 100%, 100% / 0.2), transparent);
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
  background: #111 !important;
  color: #00ffe7 !important;
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.02em;
}
.button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 40px hsl(180, 100%, 50% / 0.6);
}

/* Terminal Box */
.terminal-box {
  background: linear-gradient(135deg, hsl(220, 30%, 8%) 0%, hsl(260, 60%, 12%) 100%);
  border: 1px solid hsl(180, 100%, 50% / 0.2);
  border-radius: 12px;
  padding: 20px;
  font-family: 'Share Tech Mono', monospace;
  max-width: 800px;
  margin: 30px auto;
  box-shadow: 
    0 8px 32px hsl(220, 30%, 4% / 0.8),
    inset 0 1px 0 hsl(180, 100%, 50% / 0.1);
  backdrop-filter: blur(20px);
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.terminal-header .dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.red { background: hsl(0, 100%, 60%); color: hsl(0, 100%, 60%); }
.yellow { background: hsl(45, 100%, 60%); color: hsl(45, 100%, 60%); }
.green { background: hsl(120, 100%, 50%); color: hsl(120, 100%, 50%); }

.terminal-body p {
  margin: 8px 0;
  line-height: 1.6;
}

.prompt {
  color: var(--accent-cyan);
  font-weight: bold;
  margin-right: 8px;
}

.response {
  color: hsl(210, 100%, 70%);
  font-weight: bold;
}

.highlight {
  color: var(--accent-green);
  font-weight: bold;
  text-shadow: 0 0 10px hsl(120, 100%, 50% / 0.5);
}

/* Cursor Effect */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: all 0.1s ease;
  z-index: 10000;
  box-shadow: 0 0 20px var(--accent-cyan);
}

/* Blinking Cursor */
.blink-cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background-color: var(--accent-cyan);
  vertical-align: bottom;
  margin-left: 4px;
  animation: blink 1s step-start infinite;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Projects */
.project {
  background: linear-gradient(135deg, hsl(220, 30%, 8%) 0%, hsl(260, 60%, 12%) 100%);
  border: 1px solid hsl(180, 100%, 50% / 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  backdrop-filter: blur(20px);
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px hsl(180, 100%, 50% / 0.5);
  border-color: hsl(180, 100%, 50% / 0.5);
}

/* Contact Icons */
.contact-icons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.contact-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 100px;
  min-width: 100px;
  min-height: 80px;
  background: #00f6ff;
  border-radius: 16px;
  color: #111;
  text-decoration: none;
  font-size: 2.5rem;
  box-shadow: 0 0 40px #00ffe7cc, 0 0 0 8px #00ffe722;
  border: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  margin: 0 auto;
}

.contact-icons li a:hover {
  background: #00ffe7;
  color: #181c2b;
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 0 60px #00ffe7cc, 0 0 0 12px #00ffe722;
}

.contact-icons i {
  font-size: 2.5rem;
  color: #111;
  filter: drop-shadow(0 0 6px #00ffe7cc);
}

/* Publications */
.publication {
  background: linear-gradient(135deg, hsl(220, 30%, 8%) 0%, hsl(260, 60%, 12%) 100%);
  border: 1px solid hsl(180, 100%, 50% / 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  backdrop-filter: blur(20px);
}

/* Lists */
ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

ul li::before {
  content: '';
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  nav#nav ul {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .content-section {
    padding: 100px 15px 60px;
    margin-bottom: 20px;
  }
  
  .terminal-box {
    padding: 15px;
    margin: 20px 10px;
  }
  
  .button {
    display: block;
    text-align: center;
    margin: 10px 0;
  }
  
  .contact-icons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header h1 a {
    font-size: 1.5rem;
  }
  
  nav#nav ul {
    gap: 10px;
  }
  
  nav#nav a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .content-section {
    padding: 90px 10px 50px;
  }
}

/* Floating Shapes */
.floating-shape {
  position: absolute;
  opacity: 0.3;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid;
}

.square {
  width: 20px;
  height: 20px;
  border: 2px solid;
}

.hexagon {
  width: 30px;
  height: 17.32px;
  background: transparent;
  position: relative;
  border: 2px solid;
}

.circle {
  width: 20px;
  height: 20px;
  border: 2px solid;
  border-radius: 50%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
  }
}

/* Animation Classes */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}