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

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #161f30;
  --bg-tertiary: #1f2c45;
  --bg-glass: rgba(11, 15, 25, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --max-width: 800px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-tertiary);
}

/* Selection colors */
::selection {
  background-color: rgba(139, 92, 246, 0.3);
  color: #fff;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Glassmorphic Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  transition: var(--transition-smooth);
}

.logo:hover {
  filter: brightness(1.2);
}

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

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition-smooth);
}

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

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

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

/* Main Content Area */
main {
  flex-grow: 1;
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.85rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  position: relative;
}

h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Link Aesthetics */
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Card aesthetics */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.3);
}

/* Skills/Pills Grid */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.pill {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.pill:hover {
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

/* Specific Page styling */
.hero {
  margin-bottom: 3.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Work Experience Timelines */
.experience-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--bg-tertiary);
  margin-bottom: 3rem;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px var(--accent-primary);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.job-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.job-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Contact List */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.contact-label {
  font-weight: 600;
  min-width: 100px;
}

/* Footer Styling */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background-color: var(--bg-primary);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

footer a {
  color: var(--text-muted);
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
  h1 {
    font-size: 2.25rem;
  }
  
  .nav-wrapper {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1.25rem;
  }
  
  .experience-header {
    flex-direction: column;
    gap: 0.25rem;
  }
}
