@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #080808;
  --surface-color: rgba(255, 204, 0, 0.03);
  --surface-border: rgba(255, 204, 0, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-primary: #ffcc00;
  --accent-secondary: #ff9900;
  --gradient-accent: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  --font-family: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Animation */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 204, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 153, 0, 0.08) 0%, transparent 40%);
  z-index: -1;
  animation: bg-pulse 15s ease-in-out infinite alternate;
}

@keyframes bg-pulse {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.1) translate(-2%, 2%);
  }
}

/* Glassmorphism utility */
.glass {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  padding: 0.8rem 5%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-smooth);
}

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

nav a:hover::after {
  width: 100%;
}

/* Base Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.8s forwards 0.2s;
}

.hero h1 span {
  display: block;
}

.hero .name-highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s forwards 0.4s;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.8s forwards 0.6s;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #080808;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: rgba(255, 204, 0, 0.1);
  transform: translateY(-3px);
}

/* Sections General */
section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
}

.skill-card {
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(255, 204, 0, 0.15);
}

.skill-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  padding: 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-secondary);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.project-links a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 1rem;
  transition: var(--transition-smooth);
}

.project-links a:hover {
  color: var(--accent-secondary);
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-container p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--surface-border);
  margin-top: 4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  nav ul {
    gap: 1rem;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
    width: max-content;
  }
}