/* Root Color Variables */
:root {
    --bg-dark: #f4f4f6;
    --bg-card: #ffffff;
    --text-light: #f0f0f0;
    --text-dark: #38383b;
    --accent: #07b3da;
    --border-color: #ffffff;
    --font: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;
    letter-spacing: .03em;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font);
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header Styling */
.site-header {
  background-color: #141416; /* Dark header background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  height:70px;
  padding-left:50px;
  align-items: center;
  z-index: 1001;
}

nav {
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 1rem;
}

.site-header ul li a {
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 14px;
}

.site-header ul li a:hover {
    color: var(--light);
    border-bottom: 2px solid var(--accent); /* Active link underline */
    border-radius: 2px;
    transition: opacity .2s;
    width: calc(100% - 6px);
}

.site-header ul li a.active {
    color: var(--light);
    border-bottom: 2px solid var(--accent); /* Active link underline */
    border-radius: 2px;
    transition: opacity .2s;
    width: calc(100% - 6px);
}

.site-header .container
{
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo
{
    height:70px;
    width:70px;
    min-width: 70px;
    background: url(../images/logo.png) no-repeat;
    background-size: contain;
}

.desktop-nav
{
    opacity:1;
    height: auto;
}
.mobile-nav
{
    opacity:0;
    height: 0;
}

@media (max-width: 900px)
{
    .desktop-nav
    {
        opacity:0;
        height: 0;
    }
    .mobile-nav
    {
        opacity:1;
        height: auto;
    }
    .site-header .container p
    {
        text-transform: uppercase;
    }
    .site-header .container
    {
        justify-content: initial;
    }
    
    .hamburger-menu {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 30px;
      height: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background: none;
      border: none;
      cursor: pointer;
      z-index: 1001;
      padding: 0;
    }

    .hamburger-menu span {
      display: block;
      height: 4px;
      width: 100%;
      background-color: #fff;
      border-radius: 2px;
      transition: all 0.4s ease;
      transform-origin: center;
    }

    /* Animated to 'X' */
    .hamburger-menu.active span:nth-child(1) {
      transform: translateY(10px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
      transform: translateY(-10px) rotate(-45deg);
    }


    .dropdown-menu .submenu a {
        padding-left: 20px;
    }	
    
    .dropdown-menu {
      position: relative;
      top: 0;
      left: 0;
      width: 100vw;           /* full viewport width */
      height: auto;           /* auto height based on content */
      background-color: #f4f4f6;
      opacity: 0;
      max-height: 0;
      pointer-events: none;
      transform: translateY(-100%);
      transition: opacity 0.5s ease, max-height 0s ease, transform 1s ease;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;  /* align items at top */
      align-items: baseline;
      z-index: 1000;
      padding-top: 20px;  /* optional spacing */
    }

    .dropdown-menu.active {
      opacity: 1;
      max-height: 300px;  /* adjust max height as needed */
      pointer-events: auto;
      transform: translateY(0);
    }

	.dropdown-menu ul {
		list-style: none;
		display: contents;
		gap: 15px;
		position: relative;
		padding-inline-start: 0px;
	}

	.dropdown-menu li {
		position: relative;
		margin-bottom:20px;
	}

	.dropdown-menu a {
		text-decoration: none;
        color: var(--text-dark);
		padding: 10px;
		border-radius: 5px;
		transition: background-color 0.3s, transform 0.3s;  
        line-height: 1.1428571429;
        font-weight: 600;
        font-family: SF Pro Display, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
	}
    
	.dropdown-menu a:hover
	{	
        color: #000000;
    }

	.dropdown-menu li
	{			
		height:30px;
		align-items: center;
		display: flex;
		text-transform: uppercase;    
		color: #fff;
		font-size: 16px;
		line-height: 1;
		text-transform: uppercase;
		text-decoration: none;
		text-shadow: 0 0 1px rgba(0, 0, 0, 0.62);
		font-weight:600;
		position:relative;
	}
    
}




/* Hero Section */
.hero {
  text-align: center;
  background-color: var(--bg-card);
  color: var(--text-light);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  margin-top: 0px;
  position: relative;
}

.hero .container
{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 5rem 2rem;
}

.hero .overview
{
    max-width: 600px;
}

.hero .logo {
  flex: 0 0 300px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: url(../images/chris_photo.png) no-repeat center center / cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
  padding: 0.5rem;
  border: 1px solid #ddd;
}


.hero .logo:hover {
  transform: scale(1.03);
}


.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #141416;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


.cta-button {
  padding: 1rem 2.5rem;                 /* a bit wider horizontally */
  background-color: var(--accent);
  color: #fff;
  font-size: 1.3rem;                   /* slightly larger */
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(7, 179, 218, 0.6);  /* subtle glow */
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
  cursor: pointer;
  user-select: none;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #055f73;  /* a darker shade of accent */
  box-shadow: 0 6px 15px rgba(7, 179, 218, 0.9);
  transform: translateY(-3px);
  outline: none;
}

.cta-button:active {
  background-color: #034550;
  box-shadow: 0 3px 6px rgba(7, 179, 218, 0.5);
  transform: translateY(0);
}


/* Section Styling */
.section {
    padding: 2rem;
    margin-top:40px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-dark);
  text-transform: uppercase;
}

/* Card Grid Layout */
.card-grid {
  display: flex;
  flex-wrap:wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 40px;
}

.card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  position: relative;
  cursor: pointer;
  width:800px;
}

.card h3 {
  margin-top: 0;
  margin-bottom:10px;
  color: var(--accent);
}

.card-content .title {
    font-weight: 500;
    color: #444;
    font-size: 1.1rem;
    margin: 0;
}

.card-content .content {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    margin-top:10px;
}

.card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent);
  color: #fff;
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

.card-content 
{
    padding: 1.5rem;
    padding-bottom: 1rem;
    height:auto;
}
.card img
{
  width: 100%;          /* full width of the card-content container */
  height: auto;         /* keep aspect ratio */
  border-radius: 8px;   /* optional: rounded corners like your cards */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* subtle shadow for pop */
  display: block;       /* removes inline spacing */
  object-fit: cover;    /* ensure it covers the container nicely */
  transition: transform 0.3s ease;
}

.card img:hover {
  transform: scale(1.05); /* subtle zoom on hover */
}



@media (max-width: 900px)
{
    .card
    {
        width:100vw;
        border:none;
        border-radius:0;
    }
    .section
    {
        padding:0;
    }

}

/* Misc */
.go-to-top
{
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 10px;
    right: 20px;
    background-color: #141416;
    color: #ffffff;
    font-size: 2rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.go-to-top:hover {
    opacity: 1; /* Fully visible on hover */
    transform: scale(1.1); /* Slight enlargement on hover */
}

.go-to-top:active {
    transform: scale(0.9); /* Click feedback */
}

/* Footer */

footer {
  background-color: #141416;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  color: var(--text-light);   
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  height:100px;
  align-items:center;
  justify-content:center;
  display:flex;
  text-transform: uppercase;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #141416 0%, #1a1a1d 100%);
  color: #ffffff;
  padding-bottom:1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background-color: rgba(7, 179, 218, 0.1);
  border: 1px solid var(--accent);
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(7, 179, 218, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #f0f0f0;
  font-weight: 500;
}

/* Skills Section */
.skills-section {
  background-color: var(--bg-dark);
}

.skills-section h2 {
  color: var(--text-dark);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.skill-category {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.skill-category p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #141416 0%, #1a1a1d 100%);
  text-align: center;
  padding: 3rem 2rem;
}

.cta-content h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-content p {
  color: #f0f0f0;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button.cta-secondary {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.cta-button.cta-secondary:hover {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 15px rgba(7, 179, 218, 0.9);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button,
  .cta-button.cta-secondary {
    width: 100%;
  }
}

/* Dashboard Section */
.dashboard-container {
  background-color: var(--bg-card);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto 2rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 1.5rem;
    border-radius: 0;
    margin: 0 0 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    padding: 1rem;
  }
}

.dashboard-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1rem;
}

.dashboard-header h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.dashboard-subtitle {
  color: #999;
  margin: 0;
  font-size: 0.95rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.metric-card:hover {
  box-shadow: 0 4px 12px rgba(7, 179, 218, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.metric-detail {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: rgba(7, 179, 218, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.metric-breakdown {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #888;
  flex-wrap: wrap;
}

.metric-breakdown span {
  background-color: #f0f0f0;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
}

.efficiency-badge {
  display: inline-block;
  background-color: #d4edda;
  color: #155724;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #c3e6cb;
}

@media (max-width: 900px) {
  .dashboard-container {
    padding: 1.5rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-value {
    font-size: 1.5rem;
  }
  
  .charts-container {
    grid-template-columns: 1fr;
  }
  
  .story-section {
    grid-template-columns: 1fr;
  }
}

/* Charts Container */
.charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.chart-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  height: 400px;
  overflow: hidden;
}

.chart-box h4 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.chart-box p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.chart-box canvas {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: calc(100% - 70px) !important;
}

@media (max-width: 768px) {
  .charts-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .chart-box {
    height: 300px;
    padding: 1rem;
    border-radius: 8px;
  }

  .chart-box h4 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
  }

  .chart-box p {
    font-size: 0.75rem;
    margin: 0.25rem 0;
  }

  .chart-box canvas {
    top: 60px;
    height: calc(100% - 60px) !important;
  }
}

@media (max-width: 480px) {
  .charts-container {
    padding: 0;
  }

  .chart-box {
    height: 250px;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
  }

  .chart-box h4 {
    font-size: 0.85rem;
  }

  .chart-box p {
    font-size: 0.7rem;
  }

  .chart-box canvas {
    top: 50px;
    height: calc(100% - 50px) !important;
  }
}

/* Story Section */
.story-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.story-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(7, 179, 218, 0.1);
}

.story-card h4 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.story-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.story-card strong {
  color: var(--accent);
  font-weight: 600;
}