@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --primary: #00f2fe;
  --secondary: #4facfe;
  --accent: #ff0055;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --font-heading: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --gradient-main: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-text: linear-gradient(to right, #00f2fe, #4facfe);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

/* Typography & Utilities */
h1,
h2,
h3 {
  color: var(--text-main);
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--bg-card);
  border: var(--glass-border);
  color: var(--primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(4px);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn:hover {
  color: #fff;
  border-color: transparent;
}

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

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: 0.3s;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  font-family: var(--font-mono);
  transition: color 0.3s;
}

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

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
}

.hero-greeting {
  font-family: var(--font-mono);
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: block;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.hero h2 {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 600;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 50px;
}

/* Sections */
section {
  padding: 100px 0;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.section-num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1.2rem;
  margin-right: 10px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  white-space: nowrap;
}

.section-title::after {
  content: "";
  display: block;
  width: 300px;
  height: 1px;
  background: #233554;
  margin-left: 20px;
}

/* Experience Cards */
.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exp-card {
  background: var(--bg-card);
  border: var(--glass-border);
  backdrop-filter: blur(5px);
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.exp-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  border-color: var(--primary);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.exp-role {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
}

.exp-company {
  color: var(--primary);
  font-family: var(--font-mono);
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Skills */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.skill-box {
  background: var(--bg-card);
  border: var(--glass-border);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
}

.skill-box:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.skill-name {
  font-weight: 600;
}

.project-img:hover img {
  filter: none !important;
  transform: scale(1.02);
}

/* Contact */
.contact-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  } /* Simplify for brevity */
  .section-title::after {
    width: 100%;
  }
}
