/* === [NEW STYLES.CSS - DARK MODE THEME] === */
/*
  DESIGN STRATEGY:
  - Identity: Technical Product Manager
  - Theme: Professional Dark Mode (replaces "white")
  - CTA Color: Tech Orange (replaces "blue")
  - Typography: 'Inter' (unchanged)
  - Layout: Component-based (unchanged)
*/

/* 1. GLOBAL RESET & NEW DARK PALETTE */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* New Dark Palette */
  --color-bg: #121212;         /* Page background (Dark) */
  --color-card: #1E1E1E;       /* Card backgrounds (Slightly Lighter Dark) */
  --color-headings: #F5F5F5;   /* Main Headers (Light Gray/White) */
  --color-body: #ADB5BD;       /* Body Text (Muted Gray) */
  --color-muted: #6C757D;      /* Muted Text (Darker Gray for dates) */
  --color-border: #343A40;     /* Card borders */
  
  /* New Action Color */
  --color-primary: #F97316;     /* Tech Orange (CTA, Links) */
  --color-primary-hover: #D9610B;/* Darker orange for hover */
  --color-white: #FFFFFF;      /* For primary button text */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 2. TYPOGRAPHY & HELPERS */
h1, h2, h3, h4, h5 {
  color: var(--color-headings);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; color: var(--color-primary); }

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Helper Class */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
}

/* 3. HEADER & NAVIGATION */
header {
  background-color: var(--color-card); /* Dark card color */
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-headings); /* Light text */
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  color: var(--color-primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: var(--color-headings); /* Light text */
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--color-primary); /* Orange */
  text-decoration: none;
}

/* 4. BUTTONS & CTAs */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-black);
  border-color: var(--color-primary);
}

.btn-secondary {
  /* Ghost button style for dark mode */
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* 5. HERO SECTION (#home) */
#home {
    padding: 120px 20px 60px;  /* Moves content slightly up */
    display: flex;
    align-items: center;       /* Vertical centering */
}

/* Make the text + image align properly */
#home .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
  flex: 2;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-text .sub-headline {
  font-size: 1.25rem;
  color: var(--color-body); /* Muted light gray */
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;   /* Push right */
  max-width: 380px;            /* Allow parent container to grow */
}

.hero-image img {
  width: 350px;                /* Bigger image */
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--color-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

  margin-right: -40px;         /* Gently shift to right */
  margin-top: 10px;            /* Align vertically */
}


.social-media {
  margin-top: 1.5rem;
}

.social-media a {
  color: var(--color-body); /* Muted light gray */
  font-size: 1.75rem;
  margin-right: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.social-media a:hover {
  color: var(--color-primary); /* Orange */
}

.hero-card {

  max-width: 100%;
  margin: 0 auto;
  padding: 48px 60px;
  border: 1.5px solid #FF7A33;
  border-radius: 16px;
  background: #0c0c0c;   /* blends into your dark theme */
  text-align: center;

}

/* 6. ABOUT-SUMMARY SECTION */
#about-summary {
  background-color: var(--color-bg); /* Main dark bg */
}

#about-summary .container {
  max-width: 900px;
  text-align: center;
}

#about-summary h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-headings); /* Light text */
  margin-bottom: 2rem;
}

/* 7. PROJECTS SECTION (PM CASE STUDY FORMAT) */
#projects {
  /* Uses default section padding */
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column for detailed cards */
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  display: flex;
  gap: 30px;
  background-color: var(--color-card); /* Dark card */
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 30px;
  transition: all 0.3s ease;
}
.project-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
  border-color: var(--color-muted);
}

.project-image {
  flex-shrink: 0;
  width: 250px;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.project-content {
  flex-grow: 1;
}

.project-content h4 { /* My Role */
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  margin-bottom: 5px;
}

.project-content h3 { /* Project Title */
  margin-bottom: 1rem;
}

.project-content p { /* The Problem */
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--color-body);
}

.project-content .btn {
  font-size: 0.9rem;
  padding: 8px 16px;
}

/* 8. WORK EXPERIENCE SECTION */
#experience {
  /* Uses default section padding */
}

.experience-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Simple timeline card */
.experience-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.experience-item header {
  position: static; /* Override header styles */
  background: none;
  border: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.experience-item h3 { /* Job Title */
  margin-bottom: 5px;
}
.experience-item h4 { /* Company */
  margin-bottom: 0;
}
.experience-item .date {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: 20px;
}

.experience-item p { /* Description */
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--color-body);
}


/* 9. SKILLS SECTION */
#skills {
  background-color: var(--color-card); /* Dark card */
}

.skills-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category {
  /* Each category is a card */
  background-color: var(--color-bg); /* Darker bg */
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.skill-category h3 {
  color: var(--color-primary); /* Orange */
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background-color: var(--color-card);
  color: var(--color-body);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
}


/* 10. "VIEW ALL" BUTTON */
.view-all-container {
  text-align: center;
  margin-top: 40px;
}


/* 11. FOOTER */
footer {
  background-color: var(--color-card); /* Dark card */
  color: var(--color-body);
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--color-border);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-contact p, .copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-contact a {
  color: var(--color-headings);
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

.copyright {
  text-align: right;
}


/* 12. RESPONSIVE DESIGN */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  /* Mobile Nav (Basic) */
  header nav {
    display: none; /* Simplification for this example. A real one needs a burger menu. */
  }

  /* Hero */
  #home .container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-image {
    max-width: 200px;
  }
  .hero-image img {
    width: 200px;
    height: 200px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .social-media {
    text-align: center;
  }
  
  /* Project Cards */
  .project-card {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .project-image {
    width: 100%;
  }
  .project-image img {
    height: 200px;
  }
  
  /* Experience */
  .experience-item header {
    flex-direction: column;
    align-items: flex-start;
  }
  .experience-item .date {
    margin-left: 0;
    margin-top: 5px;
  }

  /* Footer */
  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  .copyright {
    text-align: center;
  }

  /* --- BUG FIX --- 
     THE CODE BELOW WAS MOVED *OUTSIDE* OF THIS MEDIA QUERY 
  */
}


/* === [FIXED: CODE MOVED HERE] === */

/* 13. PAGE LAYOUT (Sidebar + Content) */
/* This code is now OUTSIDE the 768px media query, so it applies to desktop */
.page-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.sidebar {
    width: 240px; /* A bit wider for clarity */
    flex-shrink: 0;
    /* This makes the sidebar sticky */
    position: sticky;
    top: 100px; /* Adjust based on your header height */
    align-self: flex-start; /* Aligns to the top */
    height: calc(100vh - 120px); /* Stops at the bottom */
}

.sidebar h4 {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-muted);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.sidebar nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.sidebar nav ul li a {
    display: block;
    color: var(--color-body);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar nav ul li a:hover {
    background-color: var(--color-card);
    color: var(--color-primary);
    text-decoration: none;
}

.sidebar nav ul li a.active { /* For active state */
    background-color: var(--color-card);
    color: var(--color-primary);
    font-weight: 600;
}

.main-content {
    flex-grow: 1; /* Takes up the remaining space */
}

/* 14. CASE STUDY DETAIL COMPONENTS */

/* Hero for detail pages */
.case-study-hero {
    background-color: var(--color-card);
    padding: 50px 0;
    border-bottom: 1px solid var(--color-border);
}
.case-study-hero h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}
.case-study-hero p.subtitle {
    font-size: 1.25rem;
    color: var(--color-body);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.case-study-hero img {
    width: 100%; 
    max-width: 900px; 
    margin: 30px auto 0; 
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

/* Main content wrapper */
.case-study-content {
    max-width: 800px;
    margin: 40px auto;
}
.case-study-content h2 { /* Section Headers */
    text-align: left;
    font-size: 2rem;
    color: var(--color-primary);
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}
.case-study-content p, 
.case-study-content ul {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.case-study-content ul {
    margin-left: 20px;
}

/* "At a Glance" Box */
.project-summary-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}
.summary-item h4 {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.summary-item p {
    color: var(--color-headings);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0;
}

/* METRIC HIGHLIGHT (This is what PMs scan for) */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.metric-item {
    background-color: var(--color-card);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
}
.metric-item h3 { /* The Number */
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-headings);
    margin-bottom: 5px;
}
.metric-item p { /* The Label */
    font-size: 1rem;
    color: var(--color-body);
    margin-bottom: 0;
}

/* CALLOUT BOX (For "frames") */
.callout-box {
    background-color: var(--color-card);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    margin: 30px 0;
}
.callout-box p:last-child {
    margin-bottom: 0;
}
/* Use this for challenges */
.callout-box.challenge {
    border-left-color: #F8B425; /* A warning yellow */
}
/* Use this for insights */
.callout-box.insight {
    border-left-color: #007AFF; /* A blue for insights */
}

/* Image Gallery Layouts */
.image-gallery {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}
.image-gallery.two-col {
    grid-template-columns: 1fr 1fr;
}
.image-gallery img {
    border-radius: 8px;
    border: 1px solid var(--color-border);
    width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    /* This is the responsive code that SHOULD have been separate */
    .page-layout {
        flex-direction: column;
    }
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }
    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    /* This is the responsive code that SHOULD have been separate */
    .image-gallery.two-col {
        grid-template-columns: 1fr;
    }
    .metric-grid {
        grid-template-columns: 1fr;
    }
}