/******************************************************
 * style.css
 * JetBrains-inspired look for personal site
 * changed hosts from github pages to cloudflare 
 ******************************************************/

/* 1) FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Montserrat:wght@600&display=swap');

/* ROOT VARIABLES */
:root {
  /* Color Palette */
  --clr-bg: #1E1E1E;            /* primary dark background */
  --clr-bg-alt: #2B2B2B;        /* secondary background */
  --clr-text: #EEEEEE;          /* near-white text */
  --clr-heading: #FFFFFF;       /* heading text color */
  --clr-accent: #FF007F;        /* bright pink (JetBrains vibe) */
  --clr-accent-hover: #FF4091;  /* lighter pink for hover states */

  /* Spacing & Sizing */
  --header-height: 70px;

  /* Fonts */
  --font-base: 'JetBrains Mono', monospace;
  --font-heading: 'Montserrat', sans-serif;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-base);
  line-height: 1.6;
}

/* HEADER & NAV */
header {
  position: sticky; /* So it sticks on top as you scroll */
  top: 0;
  height: var(--header-height);
  background-color: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid #333;
  z-index: 999;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--clr-accent);
  text-transform: uppercase;
}

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

nav a {
  color: var(--clr-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

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

a {
  color: #3366cc; /* Muted blue */
  text-decoration: none; /* Optional: remove underline */
}

a:hover {
  color: #1a4d99; /* Slightly darker blue on hover */
}

/* MAIN LAYOUT */
main {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* SECTIONS */
section {
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--clr-heading);
}

h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-heading);
}

/* HERO STYLE (for homepage) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 127, 0.1),
    rgba(255, 0, 127, 0)
  );
  border-radius: 8px;
  margin-bottom: 4rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--clr-heading);
}

.hero p {
  font-size: 1.2rem;
  max-width: 710px;
  margin-bottom: 1rem;
}

/* Button style (if you want a CTA on the homepage) */
.cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--clr-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
  transition: background-color 0.2s ease;
}

.cta-btn:hover {
  background-color: var(--clr-accent-hover);
}

/* CARD STYLING (used for experience, projects, etc.) */
.card {
  background-color: var(--clr-bg-alt);
  border-left: 3px solid var(--clr-accent);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: background-color 0.3s ease;
}

.card:hover {
  background-color: #353535;
}

.card-description {
  padding: 1rem;
}

.card-description h2 {
  font-size: 1.8rem;
  color: var(--clr-heading);
  margin-bottom: 1rem;
}

.card-description p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-description h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-description ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-description ul ul {
  list-style: circle;
  margin-left: 1.5rem;
}

/* TECH BADGES */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badges span {
  background-color: var(--clr-bg);
  color: var(--clr-accent);
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-badges span:hover {
  background-color: var(--clr-accent);
  color: var(--clr-heading);
}
/*FOOTER */
footer {
  background-color: var(--clr-bg-alt);
  text-align: center;
  padding: 1rem 2rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* 10) RESPONSIVE DESIGN (simplistic example) */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}

/* PCB Images Container */
.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
  gap: 10px;
}
  
/* PCB Images */
.project-images img {
  width: 100%;
  aspect-ratio: 3 / 4; /* Keeps images in a consistent ratio */
  object-fit: cover; /* Ensures the image fills the frame without distortion */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  image-rendering: auto; /* Forces the browser to render images at better quality */
}
  
/* PCB Hover Effect for Images */
.project-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* BST Images Container */
.bst-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
  gap: 10px;
}
  
 /* BST Images */
.bst-images img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Keeps images in a consistent ratio */
  object-fit: cover; /* Ensures the image fills the frame without distortion */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  image-rendering: auto; /* Forces the browser to render images at better quality */
}
  
/* BST Hover Effect for Images */
.bst-images img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Piezo V1 Images Container */
.piezo-v1-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
  gap: 10px;
}
  
/* Piezo V1 Images */
.piezo-v1-images img {
  width: 100%;
  aspect-ratio: 4 / 5; /* Keeps images in a consistent ratio */
  object-fit: cover; /* Ensures the image fills the frame without distortion */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  image-rendering: auto; /* Forces the browser to render images at better quality */
}

/* Piezo V1 Hover Effect for Images */
.piezo-v1-images img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Pac Images Container */
.pac-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
  gap: 10px;
}
  
/* Pac Images */
.pac-images img {
  width: 100%;
  aspect-ratio: 12 / 16; /* Keeps images in a consistent ratio */
  object-fit: cover; /* Ensures the image fills the frame without distortion */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  image-rendering: auto; /* Forces the browser to render images at better quality */
}
  
/* Pac Hover Effect for Images */
.pac-images img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* CSS for portfolio video hover effect */
.video-container {
  display: flex;
  gap: 1rem;
  position: relative;
}
  
.portfolio-video {
  width: 49.5%;
  border-radius: 8px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  object-fit: cover;
  max-height: 400px;
  max-width: 100%;
  overflow: hidden;
  image-rendering: crisp-edges; /* Improves video quality */
}
  
.portfolio-video:hover {
  transform: scale(1.5); /* Reduced scaling to fit within the card */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10; /* Ensures the hovered video is on top */
}

.portfolio-video-bst {
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1280 / 1848; /* Force the correct aspect ratio */
  border-radius: 8px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  object-fit: cover;
  overflow: hidden;
}

.portfolio-video-bst:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}
  
  
/* Inverse Game App Media Container */
.inverse-media-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Inverse Images and Video Styling */
.inverse-media-item {
  width: 100%;
  aspect-ratio: 9 / 16; /* Consistent mobile screen format */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect for Images and Video */
.inverse-media-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-block;
}

.social-icon {
  width: 40px !important; /* Adjust the size as needed */
  height: 40px !important;
  transition: transform 0.2s ease-in-out;
}

.social-icon:hover {
  transform: scale(1.1);
}