:root {
  --font-default: "lato", sans-serif;
  --font-primary: "Bebas Neue", sans-serif;
  --font-secondary: "lato", sans-serif;
  --color-background: #F5F5F5;
  --color-primary: #1C1C1C;
  --color-secondary: #2A2D34;
  --color-accent: #E10600;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-default);
  color: var(--color-secondary);
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

canvas#badgeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--color-primary);
}

p, li, ul {
  font-family: var(--font-secondary);
  color: var(--color-secondary);
}

/* Header Layout */
.header {
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
  width: 100vw;         
  box-sizing: border-box; 
  overflow-x: hidden;
}


.container-xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
}

/* NAVBAR RIGHT ALIGNMENT */
.navbar {
  margin-left: auto;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-right: 3rem;
  padding: 0;
}

.navbar a {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--color-accent);
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem;
  }

  .navbar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .navbar ul {
    flex-direction: column;
    align-items: flex-end; 
    width: auto;
    padding-right: 2rem;
  }

  .navbar li {
    margin-bottom: 0.75rem;
  }
}

.hero {
  padding: 1rem 2rem;
  margin-bottom: 6rem;
  text-align: center;
  background-color: var(--color-background);
}

.hero h1 {
  font-size: 3.5rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero p {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--color-accent);
}

section {
  padding: 6rem 2rem;
  margin: 0 auto;  
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--color-primary);
}

.section-header h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-background);
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 50px;
  transition: 0.3s;
}
.btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
}

.scroll-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  background: var(--color-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  cursor: pointer;
}
.scroll-top.active {
  display: flex;
}
.scroll-top:hover {
  background: var(--color-accent);
}

.portfolio-container {
  margin-top: 4rem; 
  column-count: 3;
  column-gap: 30px;
  padding: 40px 0;
}

@media (max-width: 1024px) {
  .portfolio-container {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .portfolio-container {
    column-count: 1;
  }
}

.portfolio-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h4 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.portfolio-info p {
  font-size: 1rem;
  line-height: 1.5;
}

.portfolio-flters {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.portfolio-flters li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-primary);
  transition: 0.3s;
}
.portfolio-flters li.filter-active,
.portfolio-flters li:hover {
  background: var(--color-primary);
  color: var(--color-background);
}

[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.6s;
  transition-timing-function: ease-out;
}
[data-aos].aos-animate {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .navbar ul {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 992px) {
  .portfolio-container {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .portfolio-container {
    column-count: 1;
  }
}


.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.pass-image {
  max-width: 350px;
  height: auto;
  display: block;
  box-shadow: none;
}

/* Slide in from left and tilt left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-60px) rotate(0deg);
  animation: slideAndTiltLeft 1.1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes slideAndTiltLeft {
  to {
    opacity: 1;
    transform: translateX(0) rotate(-5deg);
  }
}

.pass-image:hover {
  animation: rockSlightly 0.6s ease-in-out infinite alternate;
}

@keyframes rockSlightly {
  0% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(5deg);
  }
}


.hero-text {
  flex: 1 1 50%;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-family: var(--font-secondary);
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
  text-transform: none;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero-iframe {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* Mobile layout */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    padding-top: 2rem;
  }
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--color-background);
  border-top: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding: 1rem 0;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: scroll-left 20s linear infinite;
  font-family: var(--font-primary);
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.about-section {
  padding: 2rem 2rem;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.about-left {
  flex: 1 1 65%;
  padding-left: 20px;
}

.about-right {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-pass-img {
  width: 300px !important;
  height: auto !important;
  max-width: none !important;
  display: block;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(150%) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

.floating-pass {
  animation: slideInRight 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

.about-photo-wrapper {
  text-align: center;
}

.resume-btn {
  margin-top: 1rem;
  display: inline-block;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-align: center;
  text-transform: uppercase;
}

.about-photo-wrapper .resume-btn {
  margin: 2;
}
.about-pass-wrapper img {
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: rotate(-2deg);
  border: 2px solid var(--color-primary);
}


.about-left {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.about-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-right img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-container {
  margin-top: 1.5rem;
}

.dropdown-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  background-color: #fff;
  margin-top: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dropdown-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary);
  position: relative;
}

.dropdown-toggle .arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.dropdown-toggle.active .arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  padding: 1rem 1.5rem;
  display: none;
  font-family: var(--font-secondary);
  color: var(--color-secondary);
}

.dropdown-toggle.active + .dropdown-content {
  display: block;
}


.skills-section {
  margin-top: 2rem;
}

.skills-section h4 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.skills-logos.single-image {
  text-align: center;
  margin: 20px 0;
}

.skills-banner-img {
  max-width: 100%;
  height: auto;
}


.resume-btn {
  display: inline-block;
  margin: 2rem 0;
}

.cert-carousel h4 {
  margin-bottom: 1rem;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.carousel-track img {
  height: 40px;
  flex-shrink: 0;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  align-items: flex-start;
}

.contact-text {
  flex: 1 1 45%;
}

.contact-text p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form button {
  align-self: flex-start;
}


@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-form button {
    width: 100%;
  }
}

.form-box {
  background-color: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  flex: 1 1 45%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column-reverse;
    align-items: center;
  }
}

.back-btn {
  display: block;
  margin: 2rem;
  font-size: 1rem;
  text-transform: uppercase;
  font-family: var(--font-primary);
  color: var(--color-accent);
}

.project-header {
  padding: 0;
  background-color: var(--color-background);
  text-align: center;
}
.project-header h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
}
.project-subtitle {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-top: 0.5rem;
}

.project-overview .two-column {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.project-overview img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
}

.project-gallery {
  padding: 6rem 2rem;
  margin-left: 2rem;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.gallery-grid img {
  height: auto; 
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.gallery-grid img:last-child {
  height: auto; 
  width: auto;   
  object-fit: fill;
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding-top: 10px;
}

.video-gallery video {
  width: 300px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-reflection {
  padding: 3rem 2rem;
}

/* Ensure all images scale nicely */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Limit image width inside specific sections */
.project-overview img,
.project-deliverables img {
  max-width: 300px;
  margin-bottom: 1rem;
}

/* Two-column layout tweak */
.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.two-column img {
  flex: 1 1 300px;
  max-width: 750px;
}

.two-column div {
  flex: 1 1 400px;
}

.cover-image {
  max-width: 250px;
  height: auto;
  display: block;
  flex-shrink: 0;
}


/* Gallery grid for social media mockups */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.gallery-grid-2 img {
  width: 500px; 
  height: auto;
  border-radius: 8px; 
  object-fit: cover;
}

.image-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.image-row img {
  width: 100%;
  max-width: 48%;
  height: auto;
}

.gallery-slide {
  width: 100%;
  margin: 20px auto;
  display: flex;
  justify-content: center;
}

.gallery-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}


.image-caption-wrapper {
  display: inline-block;
  text-align: center;
}

.image-caption-wrapper img {
  display: block;
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 0 auto 0.5rem;
  padding: 20px;
}


.slide-caption {
  margin-top: 2rem;
  margin-left: 4rem;
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.5;
  max-width: 800px;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.fun-fact-box {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background-color: transparent;
}

.fun-fact-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.fun-fact-box p {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  color: var(--color-secondary);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

/* Hockey page photography grid – scoped so other pages don't change */
.hockey-photography .hockey-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.hockey-photography .hockey-photo-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;          /* keeps things neat without weird stretching */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hockey-photography .hockey-photo-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.project-gallery .gallery-grid {
  gap: 2.5rem; /* was ~1–1.5rem */
}
 
.large-slide .image-caption-wrapper img {
  max-width: 1000px;  /* try 900px–1100px */
  width: 100%;
  padding: 0;         /* remove extra padding */
}

.large-stories .large-story-image {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.large-stories .large-story-image img {
  max-width: 1000px;   
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
