/* ===================================
   GLOBAL STYLES & RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #020202;
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 1rem;
    letter-spacing: 0.02rem;
    line-height: 1.3;
    padding: 4rem 1rem 0;
}

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --fs-xxl: clamp(1.7rem, 12vw, 6rem);
    --fs-250: clamp(1rem, 6vw, 2.5rem);
    --fs-212: clamp(1rem, 5vw, 2.125rem);
    --fs-150: clamp(1rem, 3.5vw, 1.5rem);
    --fs-137: clamp(1rem, 3vw, 1.375rem);
    --fs-125: clamp(0.875rem, 2.75vw, 1.25rem);
    --fs-112: clamp(1rem, 2.5vw, 1.125rem);
    --fs-100: clamp(1rem, 2vw, 1rem);
    
    --color-primary: #1e90ff;
    --color-primary-light: #a7d7ff;
    --color-primary-dark: #0d2137;
    --color-bg: #020202;
    --color-text: white;
    
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

h1 {
    font-size: var(--fs-xxl);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02rem;
    text-align: center;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

h2 {
    font-size: var(--fs-125);
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 0.5rem;
}

h3 {
    font-size: var(--fs-150);
    font-weight: bold;
    margin: 1.125rem 0;
}

h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
}

p {
    font-size: var(--fs-112);
    font-weight: 400;
    margin: 1.125rem 0;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    gap: 2rem;
    padding: 1rem;
    background-color: var(--color-bg);
}

.site-name {
    font-size: 1.5rem;
    letter-spacing: 0.15rem;
    line-height: 1.15;
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: flex-end;
}

.site-name:hover {
    color: white;
}

.site-certifications {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

/* Menu Toggle */
#menu-toggle {
    cursor: pointer;
    height: 2rem;
    width: 2rem;
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* Fullscreen Menu */
#fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility 0s 0.3s;
    z-index: 2;
}

#fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-fast), visibility 0s;
}

#fullscreen-menu nav {
    height: 100%;
}

#fullscreen-menu ul {
    height: 100%;
    display: flex;
    list-style: none;
    flex-direction: column;
    text-align: center;
    justify-content: space-evenly;
}

#fullscreen-menu a {
    font-size: 2rem;
}

#menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#menu-close img {
    height: 2rem;
    width: 2rem;
}

/* ===================================
   LAYOUT CONTAINERS
   =================================== */
.xxl-heading {
    display: flex;
    flex-direction: column;
}

.xxl-subheading {
    text-align: center;
    margin: 0 auto 2rem;
}

.main-container,
.wheelhouse-container,
.experience-container,
.footer-container {
    display: flex;
    flex-direction: column;
    max-width: clamp(2rem, 80vw, 40rem);
    margin: 0 auto;
}

.footer-container {
    margin-bottom: 4rem;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */
.hero-video {
    display: block;
    border-radius: 1rem;
    max-height: 100%;
    margin: 2rem 0;
}

.hero-heading {
    font-size: var(--fs-212);
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
    margin: 1rem 0;
}

.wheelhouse-heading,
.relevant-experience-heading,
.experience-heading {
    font-size: var(--fs-212);
    font-weight: bold;
    text-align: left;
}

.wheelhouse-heading {
    margin: 2.6rem 0 3.6rem;
}

.relevant-experience-heading {
    margin: 0 0 3.6rem;
}

.experience-heading {
    margin: 1.125rem 0;
}

.skill-heading {
    margin: 1.125rem 0;
    font-size: 1.375rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--transition-fast);
}

a.skill-heading {
    display: block;
}

a.skill-heading:hover {
    color: var(--color-primary);
}

.project-heading {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 1.125rem 0;
}

.blue-divider {
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light), var(--color-primary));
    margin: 1.125rem 0;
}

/* ===================================
   BUTTONS
   =================================== */
.button-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 6rem 0;
}
.projects-button,
.resume-button {
  width: 12.5rem;
  height: 3.125rem;
  border-radius: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  line-height: 3.125rem;
  letter-spacing: 0.05rem;
  cursor: pointer;
  border: none;
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(to bottom right, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
  transition: all var(--transition-medium); /* Changed from transform to all */
}
  
.projects-button::before,
.resume-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6495ed, var(--color-primary-light)); /* Updated to match primary button */
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}
  
.projects-button:hover,
.resume-button:hover {
  transform: translateY(-5px) scale(1.05); /* Added the upward movement */
  color: white;
  box-shadow: 0 10px 30px rgba(30, 144, 255, 0.5); /* Added shadow on hover */
}
  
.projects-button:hover::before,
.resume-button:hover::before {
  opacity: 1;
}
/* ===================================
   FOOTER
   =================================== */
.good-fit-heading {
    margin-top: 4rem;
    text-align: left;
    font-size: var(--fs-250);
    font-weight: 700;
}

.footer-site-name {
    display: inline-flex;
    align-items: flex-end;
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: 0.15rem;
    font-weight: bold;
    margin: 5.125rem 0 1rem;
}

.footer-site-name:hover {
    color: white;
}

.footer-body {
    font-size: var(--fs-100);
    font-weight: 400;
    line-height: 1.3;
    max-width: 22rem;
}

.glimmer-link {
    background-image: linear-gradient(
        to right,
        #1c7ed6 0%,
        var(--color-primary) 25%,
        var(--color-primary-light) 50%,
        var(--color-primary) 75%,
        #1c7ed6 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: glimmer 3s linear infinite;
}

@keyframes glimmer {
    to {
        background-position: -200% center;
    }
}

.glimmer-link:hover {
    animation: none;
    background-image: none;
    color: white;
    -webkit-text-fill-color: white;
    text-decoration-color: white;
}

/* ===================================
   PROJECTS PAGE
   =================================== */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===================================
   WEB & GRAPHIC DESIGN PAGE
   =================================== */
.project-showcase {
    margin: 3rem 0;
}

.project-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.2);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.project-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 144, 255, 0.3);
}

.project-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-fast);
}

.project-image-container:hover .project-screenshot {
    transform: scale(1.02);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-image-container:hover .project-overlay {
    opacity: 1;
}

.overlay-link {
    color: white;
    font-size: var(--fs-125);
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid var(--color-primary);
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
}

.overlay-link:hover {
    background: var(--color-primary);
    transform: scale(1.05);
}

/* Project Features */
.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-features li {
    font-size: var(--fs-112);
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.project-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.3), rgba(167, 215, 255, 0.2));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    cursor: default;
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.5), rgba(167, 215, 255, 0.3));
    border-color: var(--color-primary-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

/* Project Links & Buttons */
.project-links {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
margin: 4rem 0 2rem; /* Add space above and below */

}

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  border-radius: 0.25rem; /* Changed from 0.5rem to match projects-button */
  font-size: 1.25rem;
  font-weight: 600; /* Changed from 700 to match projects-button */
  text-align: center;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05rem; /* Changed from 0.1rem to match projects-button */
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all var(--transition-medium); /* Changed from --transition-fast */
}
  
.project-button.primary {
  background: linear-gradient(to bottom right, var(--color-primary-dark), var(--color-primary), var(--color-primary-light)); /* Matches projects-button gradient */
  color: white;
  border: none; /* Removed the border */
  box-shadow: none; /* Removed the shadow at rest */
}
  
.project-button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6495ed, var(--color-primary-light)); /* Keep your hover gradient */
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}
  
.project-button.primary:hover {
  transform: translateY(-5px) scale(1.05); /* Keep your current hover animation */
  color: white;
  box-shadow: 0 10px 30px rgba(30, 144, 255, 0.5); /* Shadow appears on hover */
}
  
.project-button.primary:hover::before {
  opacity: 1;
}
  
.project-button i {
  font-size: 1.125rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .project-links {
        flex-direction: column;
    }

    .project-button {
        width: 100%;
        padding: 1.125rem 2rem;
        font-size: 1.125rem;
    }

    .tech-stack {
        gap: 0.75rem;
    }

    .tech-tag {
        font-size: 0.875rem;
        padding: 0.6rem 1.2rem;
    }
}

/* ===================================
   VIDEO CONTAINERS (Film & Video Page)
   =================================== */
.video-container {
    margin: 2rem 0;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.2);
    transition: box-shadow var(--transition-fast);
}

.video-responsive:hover {
    box-shadow: 0 15px 40px rgba(30, 144, 255, 0.3);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}