/* ===================================
   PREMIUM PORTFOLIO DESIGN SYSTEM
   Theme: "Midnight Pro" (Sophisticated Dark Mode)
   =================================== */

/* Import Fonts: 'Outfit' for headings (Modern, Geometric), 'Inter' for body (Clean, Readable) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* --- Color Palette --- */
  --bg-body: #050505;
  /* Almost Black */
  --bg-surface: #0f1115;
  /* Very Dark Gray */
  --bg-card: #181a20;
  /* Lighter Dark Gray */

  --primary: #5b6cf9;
  /* Electric Blue-Purple */
  --primary-glow: rgba(91, 108, 249, 0.3);
  --accent: #00d4ff;
  /* Cyan Accent */

  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-dark: #64748b;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  /* --- Spacing System --- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* --- Typography --- */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* --- Effects --- */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* --- Layout Wrappers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

section {
  padding: var(--space-lg) 0;
  position: relative;
}

/* --- Navbar (Glassmorphism) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  border-bottom: var(--glass-border);
}

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

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.navbar-toggle {
  display: none;
}

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

.navbar-link:hover,
.navbar-link.active {
  color: var(--text-main);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: var(--transition);
}

.navbar-link:hover::after {
  width: 100%;
}

/* --- Hero Section (High Impact) --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  /* navbar offset */
  background: radial-gradient(circle at 50% 0%, #1e202e 0%, var(--bg-body) 60%);
}

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

.hero-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  box-shadow: 0 0 30px rgba(91, 108, 249, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  /* Responsive typography */
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-body);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Sections Common --- */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 4rem;
}

/* --- Cards (Glass Style) --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition);
  height: 100%;
}

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

/* --- Grid Systems --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* "What I Do" Icons */
.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  background: rgba(91, 108, 249, 0.1);
  /* Subtle glowing bg */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

/* --- Skills Tags --- */
.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
  margin: 0.25rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition);
}

.tag:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

/* --- Projects --- */
.project-card {
  overflow: hidden;
  padding: 0;
  /* Remove default card padding for image bleed */
}

.project-image {
  height: 220px;
  width: 100%;
  background: linear-gradient(45deg, #2a2d3e, #181a20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid var(--border-light);
}

.project-content {
  padding: 2rem;
}

/* --- Education Timeline-ish --- */
.edu-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.edu-card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.9rem;
}

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

  .section-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .navbar-toggle {
    display: block;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }

  .navbar-menu {
    position: fixed;
    top: 70px;
    /* Below navbar */
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .container {
    padding: 0 1rem;
  }
}