@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-dark: #0b0f19;
  --bg-card: rgba(22, 30, 49, 0.65);
  --bg-card-hover: rgba(30, 41, 69, 0.85);
  --primary: #0ea5e9; /* Sky blue */
  --primary-glow: rgba(14, 165, 233, 0.15);
  --accent: #14b8a6; /* Teal */
  --accent-glow: rgba(20, 184, 166, 0.15);
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #64748b;
  
  /* Layout & Glassmorphism */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(14, 165, 233, 0.3);
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px -10px rgba(0, 0, 0, 0.7);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  /* Max width container */
  --max-width: 1100px;
}

/* Reset and Core Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
body::before, body::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

body::before {
  top: 10%;
  left: -100px;
  background: var(--primary);
}

body::after {
  bottom: 20%;
  right: -100px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--accent);
}

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

/* Header & Nav */
header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-subtitle {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-main) 40%, var(--text-body));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 700px;
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  color: var(--text-body);
}

.hero-avatar-container {
  flex-shrink: 0;
  position: relative;
}

.hero-avatar {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.25);
  background-color: var(--bg-card);
}

.hero-avatar-container::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 1px dashed var(--primary);
  opacity: 0.4;
  animation: rotate-slow 25s linear infinite;
  pointer-events: none;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0b0f19;
  border: none;
  box-shadow: 0 4px 20px -4px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px -2px var(--primary-glow);
  filter: brightness(1.1);
  color: #0b0f19;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

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

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Core Competencies Grid */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* Highlight / Story Section */
.story-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-content h3 {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.story-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.story-highlight-box {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(14, 165, 233, 0.08));
  border: 1px dashed var(--accent);
  padding: 2rem;
  border-radius: var(--radius-md);
}

.story-highlight-box p {
  margin: 0;
  font-style: italic;
  font-weight: 500;
  color: var(--text-main);
}

/* Portfolio Filters & Cards */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0b0f19;
  border-color: transparent;
  transform: translateY(-1px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.portfolio-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.tag-audio {
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary);
}

.tag-video {
  background: rgba(20, 184, 166, 0.15);
  color: var(--accent);
}

.portfolio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.portfolio-card h3 a {
  color: var(--text-main);
}

.portfolio-card h3 a:hover {
  color: var(--primary);
}

.portfolio-meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.portfolio-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: auto;
}

/* Contact Area */
.contact-section {
  background: linear-gradient(180deg, var(--bg-dark), rgba(14, 165, 233, 0.05));
  border-top: 1px solid var(--border-color);
  padding: 6rem 0;
  text-align: center;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  background: #060910;
  margin-top: auto;
}

footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Experience Timeline Styles */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.timeline-title h3 {
  font-size: 1.3rem;
  color: var(--text-main);
}

.timeline-company {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 0.5rem;
}

.timeline-list li {
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-body);
}

.timeline-list li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2.5rem;
  }
  
  .hero-avatar {
    width: 200px;
    height: 200px;
  }
  
  .hero-desc {
    margin-bottom: 2rem;
  }
  
  .btn-group {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .story-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .competency-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 1.5rem 0;
    gap: 1rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
}
