:root {
  --bg-color: #0b0f19;
  --surface-color: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --accent-1: #00f2fe;
  --accent-2: #4facfe;
  --gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* Base Styles & Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 6rem 0;
}

.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
}

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

ul.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before { /* Glow effect backdrop */
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--accent-1);
  filter: blur(200px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
}

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

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
  background: var(--gradient);
  color: #000;
  margin-right: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Grid Layouts for Sections */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

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

.skill-category {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(5px);
  transition: transform 0.3s;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  color: var(--accent-1);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.tag:hover {
  background: var(--accent-2);
  color: #000;
}

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

.card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
}

/* Footer / Contact */
footer {
  background: rgba(0,0,0,0.3);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--surface-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.8rem;
  transition: color 0.3s;
  background: rgba(255,255,255,0.05);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--bg-color);
  background: var(--gradient);
  transform: translateY(-3px);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  ul.nav-links { display: none; }
  .nav-container { justify-content: center; }
  .btn { display: block; text-align: center; margin-bottom: 1rem; margin-right: 0; }
}
