/* 
  Theme: Deep Space Cyberpunk 
  Author: Antigravity
*/

:root {
  /* Colors */
  --bg-dark: #050505;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --primary: #00f3ff;
  /* Cyan */
  --secondary: #bc13fe;
  /* Neon Purple */
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);

  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--secondary), var(--primary));
  --gradient-text: linear-gradient(to right, var(--primary), var(--secondary));

  /* Typography */
  --font-main: 'Outfit', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

/* Background Effects */
.bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  top: -10%;
  left: -10%;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-2 {
  position: fixed;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -10%;
  right: -10%;
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease-out);
}

ul {
  list-style: none;
}

/* Typography Utilities */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: var(--glass-border);
}

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

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-text);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: width 0.3s var(--ease-out);
}

.btn:hover {
  color: #000;
}

.btn:hover::before {
  width: 100%;
}

/* Section General */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
}

.section-title span {
  border-bottom: 2px solid var(--secondary);
}

/* Services / Skills Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 15px;
  border: var(--glass-border);
  transition: transform 0.3s var(--ease-out), background 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 243, 255, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 243, 255, 0.1);
}

.card-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Portfolio */
.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16/9;
  group: project;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.project-card:hover .project-img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
}

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

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  position: relative;
}

.input-field {
  width: 100%;
  padding: 15px;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
footer {
  padding: 50px 0;
  text-align: center;
  border-top: var(--glass-border);
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    /* Add mobile toggle logic later */
  }
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: #000;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 243, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-out);
  z-index: 999;
}

.scroll-top-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(188, 19, 254, 0.4);
}