﻿/* ====== CORE STYLES ====== */
:root {
  --primary: #00e5ff;
  --secondary: #bc13fe;
  --bg: #030305;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Moving Background Glows */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
      radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.1), transparent 30%),
      radial-gradient(circle at 85% 80%, rgba(188, 19, 254, 0.1), transparent 30%);
  z-index: -1;
}

/* ====== NAVIGATION ====== */
nav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 90%; max-width: 1200px;
  padding: 12px 35px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000;
}

nav .logo img { height: 35px; filter: drop-shadow(0 0 8px var(--primary)); }

nav ul { display: flex; list-style: none; gap: 25px; }

nav a {
  text-decoration: none; color: #fff;
  font-size: 0.9rem; font-weight: 500;
  opacity: 0.7; transition: var(--transition);
}

nav a:hover { opacity: 1; color: var(--primary); }

/* ====== HERO ====== */
.hero {
  height: 90vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  background: linear-gradient(rgba(3,3,5,0.5), rgba(3,3,5,0.5)), url('img/hero.png') center/cover;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4rem, 15vw, 9rem);
  font-weight: 900; line-height: 1;
  background: linear-gradient(to bottom, #fff, var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
}

.typing-container {
  margin-top: 20px; font-size: 1.4rem; color: var(--primary);
  font-weight: 300; letter-spacing: 2px;
}

.cursor { animation: blink 0.8s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ====== CONTAINER & BENTO ====== */
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 80px;
}

.bento-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px; padding: 30px;
  backdrop-filter: blur(10px); transition: var(--transition);
}

.bento-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.item-large { grid-column: span 2; grid-row: span 2; }
.item-wide { grid-column: span 2; }

.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 15px; }
.profile-header img { width: 70px; height: 70px; border-radius: 18px; border: 2px solid var(--primary); }
.profile-header h2 { font-family: 'Space Grotesk'; font-size: 1.8rem; }

.status-text { opacity: 0.7; font-size: 0.95rem; margin-top: 10px; }

.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.skill-tag {
  padding: 8px 16px; background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--primary); border-radius: 100px;
  font-size: 0.75rem; font-weight: bold; color: var(--primary);
}

/* ====== PROJECTS GRID ====== */
.section-title {
  text-align: center; font-size: 2.5rem; margin-bottom: 40px;
  font-family: 'Space Grotesk'; letter-spacing: 2px; text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px; margin-bottom: 100px;
}

.project-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 35px; height: 400px; overflow: hidden;
  position: relative; cursor: pointer; transition: var(--transition);
}

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

.project-card img {
  width: 130px; position: absolute;
  top: 45%; left: 50%; transform: translate(-50%, -50%);
  transition: var(--transition);
}

.project-card:hover img { transform: translate(-50%, -60%) scale(1.15) rotate(10deg); }

.project-info {
  position: absolute; bottom: 0; width: 100%;
  padding: 35px; background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.mini-stack { display: flex; gap: 8px; margin-top: 10px; }
.mini-stack span { font-size: 0.65rem; color: var(--primary); opacity: 0.8; border: 1px solid var(--primary); padding: 2px 8px; border-radius: 4px; }

/* Individual project hover glows */
.p-exp:hover { border-color: var(--secondary); box-shadow: 0 0 30px rgba(188, 19, 254, 0.2); }
.p-warp:hover { border-color: var(--primary); box-shadow: 0 0 30px rgba(0, 229, 255, 0.2); }
.p-auto:hover { border-color: #5865F2; box-shadow: 0 0 30px rgba(88, 101, 242, 0.2); }

/* ====== CONTACT ====== */
.contact-card {
  max-width: 700px; margin: 0 auto;
  background: var(--glass); border: 1px solid var(--glass-border);
  padding: 50px; border-radius: 40px; text-align: center;
}

.contact-card input, .contact-card textarea {
  width: 100%; background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border); padding: 15px;
  border-radius: 12px; color: #fff; margin-bottom: 15px;
}

.submit-btn {
  width: 100%; padding: 15px; background: var(--primary);
  border: none; border-radius: 12px; font-weight: bold;
  cursor: pointer; transition: var(--transition);
}

.submit-btn:hover { box-shadow: 0 0 20px var(--primary); transform: scale(1.02); }

.separator { margin: 20px 0; opacity: 0.3; font-size: 0.8rem; }

.discord-btn {
  background: #5865F2; color: #fff; padding: 15px;
  border-radius: 12px; font-weight: bold; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--transition);
}

/* ====== FOOTER ====== */
/* ====== THE ULTIMATE FOOTER ====== */
.modern-footer {
  position: relative;
  margin-top: 150px;
  padding: 80px 0 40px;
  background: linear-gradient(to top, rgba(0, 229, 255, 0.05), transparent);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.footer-left {
  max-width: 350px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--primary));
  transition: 0.3s;
}

.footer-left p {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.6;
  line-height: 1.6;
}

/* Social Tiles */
.footer-right {
  display: flex;
  gap: 20px;
}

.social-group {
  display: flex;
  gap: 15px;
}

.social-tile {
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 15px 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-tile i {
  font-size: 1.4rem;
}

.social-tile:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

.social-tile:hover i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary));
}

/* Copyright Bar */
.footer-copyright {
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  opacity: 0.4;
  letter-spacing: 1px;
}

/* Responsive Fix */
@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      text-align: center;
      padding: 0 20px;
  }
  
  .footer-right {
      justify-content: center;
  }
  
  .social-tile {
      padding: 12px 20px;
  }
}

/* ====== MOBILE ====== */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .item-large, .item-wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  nav ul { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .item-large, .item-wide { grid-column: span 1; }
  .hero h1 { font-size: 3.5rem; }
  .contact-card { padding: 30px; }
}

/* --- SCROLL ANIMATIONS --- */
.bento-item, .project-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.bento-item.show, .project-card.show {
  opacity: 1;
  transform: translateY(0);
}