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

:root {
  /* Existing Brand Colors */
  --primary-color: #A81313;
  --secondary-color-1: #6fBCCB;
  --secondary-color-2: #4576AB;

  /* Modern Stripe-Inspired Additions */
  --text-primary: #1a1f36; /* Slate gray, softer than pure black */
  --text-secondary: #4f566b;
  --bg-color: #f7fafc; /* Very light cool gray */
  --card-bg: #ffffff;

  /* Accent Colors for Gradients */
  --grad-1: rgba(168, 19, 19, 0.08); /* Primary faded */
  --grad-2: rgba(111, 188, 203, 0.12); /* Secondary 1 faded */
  --grad-3: rgba(69, 118, 171, 0.08); /* Secondary 2 faded */

  /* Shadows & Borders */
  --bento-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --bento-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-light: rgba(0, 0, 0, 0.05);
  --radius-lg: 16px;
  --radius-md: 12px;

  /* Layout constraints */
  --max-width: 1100px;
}

/* Global Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Animated Mesh Gradient Background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, var(--grad-1), transparent 25%),
    radial-gradient(circle at 85% 30%, var(--grad-2), transparent 25%),
    radial-gradient(circle at 50% 80%, var(--grad-3), transparent 25%);
  animation: backgroundDrift 20s ease-in-out infinite alternate;
}

@keyframes backgroundDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}

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

a:hover {
  color: var(--secondary-color-1);
}

/* Typography Scale */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 1.05rem; }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

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

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
}

.hero-text {
  flex: 1;
}

.tagline {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-text p {
  font-size: 1.15rem;
  max-width: 600px;
}

.hero-image-wrapper {
  flex-shrink: 0;
  position: relative;
}

/* Soft glow border effect */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color-1), var(--secondary-color-2), var(--primary-color));
  opacity: 0.3;
  z-index: -1;
  filter: blur(10px);
}

.profile-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  background-color: #fff;
  border: 4px solid #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.bento-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--bento-shadow);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bento-hover-shadow);
}

.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }

/* Interactive Accordion for Experience */
.exp-card {
  cursor: pointer;
  position: relative;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.exp-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.exp-role {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.exp-icon {
  color: var(--secondary-color-1);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.exp-card.active .exp-icon {
  transform: rotate(45deg); /* Turns plus into a close mark essentially */
}

.exp-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  opacity: 0;
}

.exp-card.active .exp-details {
  max-height: 1000px;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.exp-details ul {
  list-style-type: none;
  padding-left: 0;
}

.exp-details li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.exp-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color-1);
  font-size: 1.2rem;
  line-height: 1;
}

/* Generic Lists (Education, Skills) */
.bento-list {
  list-style: none;
}
.bento-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}
.bento-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.bento-list strong {
  color: var(--text-primary);
  font-size: 1.05rem;
}
.bento-list em {
  color: var(--text-secondary);
  font-style: normal;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(168, 19, 19, 0.2);
}

.btn:hover {
  background-color: #8c0f0f; /* Darker primary */
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 8px rgba(168, 19, 19, 0.3);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--bento-shadow);
}
.btn-secondary:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color-1);
}

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

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }
  .hero-text p {
    margin: 0 auto 1.5rem;
  }
  .col-span-8, .col-span-6, .col-span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  .bento-card { padding: 1.5rem; }
  .nav-links { gap: 1rem; }
}
