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

/* VARIABLES */
:root {
  --primary-color: #00d4ff;
  --secondary-color: #ff6b6b;
  --accent-color: #4ecdc4;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --text-color: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #6c7293;
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #1a1a1a;
  --bg-card-hover: #252525;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-hero: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
  --font-main: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --box-shadow-hover: 0 20px 60px rgba(0, 212, 255, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

/* BACKGROUND ANIMATIONS */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.shape {
  position: absolute;
  opacity: 0.05;
  animation: float 8s ease-in-out infinite;
}

.shape:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 50%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  top: 60%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: var(--secondary-color);
  transform: rotate(45deg);
  animation-delay: 2s;
}

.shape:nth-child(3) {
  bottom: 20%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

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

.nav-logo .logo-text {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 3rem;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* TYPOGRAPHY */
.section-title {
  font-size: 4.8rem;
  text-align: center;
  margin-bottom: 6rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* LAYOUT */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 10rem 0;
  position: relative;
  z-index: 1;
  clear: both;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.4rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.6rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--bg-dark);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  min-height: 80vh;
}

.hero-text {
  z-index: 2;
}

.hero-title {
  margin-bottom: 3rem;
}

.greeting {
  display: block;
  font-size: 2.4rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1rem;
}

.name {
  display: block;
  font-size: 6.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.role {
  display: block;
  font-size: 3.2rem;
  color: var(--accent-color);
  font-weight: 600;
}

.hero-description {
  font-size: 1.8rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  line-height: 1.8;
}

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

.hero-visual {
  position: relative;
  z-index: 1;
}

.code-block {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
  display: flex;
  gap: 0.8rem;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca3f; }

.code-title {
  color: var(--text-secondary);
  font-family: var(--font-code);
  font-size: 1.2rem;
}

.code-content {
  padding: 2rem;
  font-family: var(--font-code);
  font-size: 1.4rem;
  line-height: 1.8;
}

.code-keyword { color: #ff79c6; }
.code-variable { color: #f8f8f2; }
.code-property { color: #50fa7b; }
.code-string { color: #f1fa8c; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ABOUT SECTION */
.about {
  background: var(--bg-darker);
  position: relative;
  z-index: 1;
}

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

.about-text {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-card {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.about-card h3 {
  color: var(--primary-color);
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1.8;
}

.about-cta {
  text-align: center;
}

.about-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(255, 107, 107, 0.2));
  opacity: 0;
  transition: var(--transition);
}

.image-container:hover .image-overlay {
  opacity: 1;
}

/* PROJECTS SECTION */
.projects {
  background: var(--bg-dark);
  position: relative;
  z-index: 1;
}

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

.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

/* Creative Project Visual without Images */
.project-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    var(--secondary-color) 50%, 
    var(--accent-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

.project-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
  animation: slide 20s linear infinite;
}

@keyframes slide {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.project-card[data-category="web"] .project-visual {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-card[data-category="ai"] .project-visual {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-card[data-category="nlp"] .project-visual {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-content {
  padding: 3rem;
}

.project-category {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

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

.project-description {
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tech-tag {
  background: rgba(78, 205, 196, 0.1);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  border: 1px solid rgba(78, 205, 196, 0.3);
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
}

.project-link:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: scale(1.1);
}

/* SKILLS SECTION */
.skills {
  background: var(--bg-darker);
  position: relative;
  z-index: 1;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  margin-bottom: 6rem;
}

.skill-category {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-header i {
  font-size: 3rem;
  color: var(--primary-color);
}

.category-header h3 {
  font-size: 2.4rem;
  color: var(--text-color);
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-name {
  font-size: 1.6rem;
  color: var(--text-color);
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-icons {
  text-align: center;
  margin-top: 4rem;
}

.tech-icons img {
  max-width: 100%;
  height: auto;
  opacity: 0.8;
  transition: var(--transition);
}

.tech-icons img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ACHIEVEMENTS SECTION */
.achievements {
  background: var(--bg-dark);
  position: relative;
  z-index: 1;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.achievement-card {
  background: var(--bg-card);
  padding: 4rem 3rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s;
}

.achievement-card:hover::before {
  left: 100%;
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.achievement-icon {
  font-size: 4rem;
  color: var(--warning-color);
  margin-bottom: 2rem;
}

.achievement-card h3 {
  font-size: 2.4rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.achievement-card p {
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.achievement-date {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.4rem;
}

/* CONTACT SECTION */
.contact {
  background: var(--bg-darker);
  position: relative;
  z-index: 1;
}

.contact-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-text {
  margin-bottom: 4rem;
}

.contact-text p {
  font-size: 1.8rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-color);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.contact-method i {
  font-size: 2.4rem;
  color: var(--primary-color);
}

.contact-method:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  background: var(--bg-dark);
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-social {
  display: flex;
  gap: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 1.4rem;
}

.heart {
  color: var(--secondary-color);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  html { font-size: 55%; }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .name { font-size: 4.8rem; }
  .role { font-size: 2.4rem; }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .skills-categories {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-methods {
    flex-direction: column;
    gap: 2rem;
  }
  
  section {
    padding: 8rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section-title {
    font-size: 3.6rem;
    margin-bottom: 4rem;
  }
  
  .hero-buttons {
    gap: 1.5rem;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
  }
}