@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --navy: #1e3a5f;
  --navy-dark: #15304f;
  --text: #1e3a5f;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-label: #94a3b8;
  --bg-white: #fff;
  --bg-light: #f8fafc;
  --bg-tag: #f0f4f8;
  --bg-hero: linear-gradient(165deg, #fafbfc 0%, #f0f4f8 40%, #e8edf4 100%);
  --border: #e8edf2;
  --border-light: #e2e8f0;
  --border-input: #d4dbe4;
  --shadow-chat: 0 12px 48px rgba(30,58,95,0.18);
  --shadow-btn: 0 4px 20px rgba(30,58,95,0.35);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg-white); }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 48px; }
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.navbar-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 4px 0;
  border: none;
  background: none;
  text-decoration: none;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--navy);
  animation: lineGrow 0.3s ease forwards;
}

/* --- HERO SECTION --- */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  background: var(--bg-hero);
}

.hero-decoration-1 {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(30,58,95,0.06);
}

.hero-decoration-2 {
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(30,58,95,0.04);
}

.hero-content {
  max-width: 720px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.cred-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-input);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.3px;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- BUTTONS --- */
.btn-primary {
  padding: 14px 32px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--navy-dark);
}

.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* --- SECTIONS COMMON --- */
.section-about, 
.section-experience, 
.section-skills {
  padding: 100px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 12px;
  display: block;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.2;
}

.section-divider {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-divider::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
}

/* --- ABOUT --- */
.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-paragraphs p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* --- EXPERIENCE --- */
.section-experience .section-heading {
  margin-bottom: 48px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.exp-card {
  border-left: 2px solid var(--border-light);
  padding-left: 28px;
  position: relative;
  transition: border-color 0.3s ease;
}

.exp-card:hover {
  border-color: var(--navy);
}

.exp-card::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.exp-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-label);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.exp-company {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.exp-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-points li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.exp-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-label);
}

/* --- SKILLS --- */
.section-skills .section-heading {
  margin-bottom: 48px;
}

.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.skill-group h3.skill-category {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  opacity: 0.7;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-tag);
  color: var(--navy);
  transition: all 0.25s ease;
  display: inline-block;
}

.skill-tag:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* --- CONTACT --- */
.section-contact {
  padding: 100px 48px 120px;
  background: var(--bg-light);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-subtext {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto 32px;
  text-align: left;
}

.contact-form-group {
    margin-bottom: 16px;
}

.contact-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
}

.contact-input, .contact-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    background: #fff;
    transition: border-color 0.2s;
}

.contact-input:focus, .contact-textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.contact-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.25s ease;
}

.contact-submit-btn:hover {
    background: var(--navy-dark);
}

.contact-location {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-label);
}

/* --- FOOTER --- */
.site-footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-label);
}

.footer-creds {
  font-weight: 500;
}

/* --- CHATBOT --- */
.chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.chat-toggle:hover {
  transform: scale(1.08);
}

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-chat);
  display: flex;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: slideUp 0.3s ease;
}

.chat-header {
  padding: 16px 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  padding: 10px 14px;
  max-width: 82%;
  font-size: 13.5px;
  line-height: 1.55;
  font-family: 'DM Sans', sans-serif;
  white-space: pre-wrap;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-tag);
  color: var(--navy);
  border-radius: 14px 14px 14px 4px;
}

.chat-typing {
  align-self: flex-start;
  background: var(--bg-tag);
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  outline: none;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: #fafbfc;
}

.chat-send {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.chat-send:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  .navbar-links {
    display: none;
  }
  
  .section-hero, 
  .section-about, 
  .section-experience, 
  .section-skills, 
  .section-contact {
    padding: 60px 20px;
  }
  
  .hero-ctas, 
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  
  .exp-header {
    flex-direction: column;
  }
  
  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .chat-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 88px;
  }
}
