@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@200;300;400;600;700&display=swap');

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

.email b {
    display: none;
}

.contact-value.email a:link,
.contact-value.email a:visited {
    color: white;
}

.contact-value.email a:hover,
.contact-value.email a:active {
    color: lightgray; 
}

/* Responsive padding */
.section,
.featured-projects-grid,
.all-projects-grid,
.skills-grid,
.contact-grid {
    padding-left: 5vw;
    padding-right: 5vw;
    max-width: 100%;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    background: #1e1e1e;
    color: white;
    line-height: 1.4;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(
    240deg,
    #2d2d30 0%,
    #434345 30%,
    #2d2d30 60%,
    #3b3b3e 100%
  );
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 12px 5vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  width: 60px;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: scale(1.1);
}
    
.nav-links {
  list-style: none;
  display: flex;
  gap: 50px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  opacity: 1;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.nav-links a:hover {
    transform: translateY(-4px);
}

.nav-spacer {
  height: 70px;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
    font-size: 0.9rem;
  }
}


/* Windows-style Colors (Original Windows 8 Theme Plan)*/ 
.blue { background: #0078d4; }
.green { background: #107c10; }
.orange { background: #ff8c00; }
.purple { background: #5c2d91; }
.red { background: #e81123; }
.teal { background: #008272; }
.yellow { background: #ffb900; color: #000; }
.pink { background: #e3008c; }
.dark { background: #2d2d30; }
.lime { background: #bad80a; color: #000; }
.navy { background: #002050; }
.gray { background: #2d2d30; }
.gray-gradient {
    background: linear-gradient(
      135deg,
      #2d2d30 0%,
      #3a3a3d 100%
    );
}
.crimson { background: #a4262c; }

/* Hero Section */
.hero {
    min-height: auto;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    padding: 0;
}

/* Hero Grid */
.hero-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 20px;
    padding: 20px 5vw;
}

/* Hero Main */
.hero-main {
    width: 100%;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-main h1 {
    margin-top: 20px;
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-main .subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.hero-main .description {
    font-size: 1.75rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
}

.me-pic {
    border-radius: 50%;
}

.subtitle {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  animation: fadeSlideIn 1s ease-out forwards;
  animation-delay: 0.3s
}

.description {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  animation: fadeSlideInOpaque 1s ease-out forwards;
  animation-delay: 0.8s;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    visibility: visible;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

/* (Was Originally Ospaque) */
@keyframes fadeSlideInOpaque {
  0% {
    opacity: 0;
    transform: translateY(30px);
    visibility: visible;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}


/* Hero Tiles */
.hero-tile {
    width: 100%;
    display: flex;
    justify-content: center;
    max-width: 50%;
    margin: 0 auto 40px;
    padding: 20px;
    aspect-ratio: auto;
    height: auto;
    border-radius: 10px;
    background: linear-gradient(
      135deg,
      #2d2d30 0%,
      #38383c 40%,
      #2d2d30 100%
    );
}

.hero-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.hero-tile .number {
    font-size: 2rem;
    font-weight: 200;
    margin-bottom: 10px;
}

.hero-tile .label {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Section Base */
.section {
    padding: 40px 0;
    margin: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 200;
    padding: 30px 5vw;
    background: linear-gradient(
      145deg,
      #2d2d30 0%,
      #434345 30%,
      #2d2d30 60%,
      #3b3b3e 100%
    );
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: left;
}

/* Featured Projects */
.featured-projects-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 0 5vw;
    width: 100%;
    margin-top: 5%;
}

.featured-project {
    background: linear-gradient(
      135deg,
      #2d2d30 0%,
      #38383c 40%,
      #2d2d30 100%
    );
    width: 75%;
    padding: 40px 20px;
    display: flex;
    border-radius: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.featured-project:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.featured-project .project-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.featured-project .project-info {
    flex: 1;
}

.featured-project .project-image {
    flex: 0 0 40%;
    max-width: 40%;
    margin-right: 20px;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.featured-project .project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.project-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 1;
}

.project-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.1;
}

.project-title b {
    display: none;
}

.project-description {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 1;
    margin-bottom: 20px;
    line-height: 1.4;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-pill {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 5px;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    border-radius: 5px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* LightBox */
.lightboxOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightboxImg, .lightboxVid {
  width: auto;
  height: auto;
  max-width: 85vw;     
  max-height: 85vh;   
  border-radius: 12px;
  object-fit: contain;
  margin: auto;
  display: block;
}

.lightboxClose {
  position: absolute;
  top: 20px;
  right: 60px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
  transition: opacity 0.2s ease;
}

.lightboxClose:hover {
  opacity: 0.7;
}

/* Skills Grid */
.skills-grid {
    margin-top: 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 5vw;
    width: 100%;
    justify-content: center;
}

.skill-tile {
    flex: 1 1 calc(50% - 20px);  
    padding: 30px 20px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(
       135deg,
       #2d2d30 0%,
       #38383c 40%,
       #2d2d30 100%
    );
    border-radius: 10px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    min-width: 0;
    justify-content: flex-start;
}

.skill-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 1;
}

.skill-name {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.skill-description {
    font-size: 1rem;
    font-weight: 300;
    opacity: 1;
    line-height: 1.3;
    margin-bottom: 10px;
}

.skill-tech {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.75;
    line-height: 1.3;
}


/* Contact Grid */
.contact-grid {
    margin-top: 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 5vw;
    width: 100%;
    justify-content: center;
    margin-bottom: 5%;
}

.contact-tile {
    flex: 1 1 calc(50% - 20px);
    max-width: 620px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    text-align: center;
    color: white;
    background: linear-gradient(
      135deg,
      #2d2d30 0%,
      #38383c 40%,
      #2d2d30 100%
    );
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    min-width: 0;
}

.contact-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: white;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 1;
}

.contact-label {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 300;
    opacity: 1;
}

.project-video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.project-video:hover {
  transform: scale(1.0);
}

.project-image:hover {
  transform: scale(1.02);
}

.project-link-inline {
  color: var(--primary-light);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link-inline:hover {
  color: var(--secondary);
}

.credit {
  display: block;                
  font-size: 0.9rem;            
  color: var(--text-secondary);  
  opacity: 0.8;                 
  margin-top: 0.5rem;          
}

.featured-projects-grid > .featured-project:last-child {
  margin-bottom: 0; 
}



/* === Responsive Adjustments === */
@media (max-width: 1200px) {
  html {
    font-size: 90%;
  }

  /* Profile Image */
  .me-pic {
    width: 10rem;
  }

  /* Hero Section */
  .hero-main h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .hero-main .subtitle {
    font-size: 1.75rem;
    margin-bottom: 15px;
  }

  .hero-main .description {
    font-size: 1.5rem;
    max-width: 75%;
    line-height: 1.4;
  }

  /* Section Title */
  .section-title {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding: 25px 5vw;
    box-sizing: border-box;
    margin-bottom: 40px;
    font-size: 2rem;
  }

  /* Featured Projects */
  .featured-project {
    flex-direction: column;
    width: 100%;
    padding: 18px 14px;
    margin-bottom: 15px; 
    gap: 14px;
  }

  .featured-project .project-content {
    flex-direction: column;
    gap: 12px;
  }

  .featured-project .project-image {
    width: 75%;
    max-width: 100%;
    margin-top: 10px;
  }

  .featured-project .project-image img {
    border-radius: 8px;
  }

  .project-icon {
    font-size: 2.25rem;
    display: none;
  }

  .project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 325;
  }

  .project-title b {
    display: inline;
}

  .project-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.3;
  }

  .project-tech {
    gap: 8px;
    margin-bottom: 10px;
  }

  .tech-pill {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .project-links {
    gap: 8px;
  }

  .project-link {
    padding: 8px 12px;
    font-size: 1rem;
  }

  /* Skills Grid */
  .skills-grid {
    gap: 25px;
    margin-top: 30px; 
  }

  .skill-tile {
    flex: 1 1 calc(50% - 15px);
    max-width: 280px;
    padding: 16px 12px;
    gap: 8px;
  }

  .skill-icon {
    font-size: 2.2rem;
    margin-bottom: 0px;
  }

  .skill-name {
    font-size: 1.35rem;
    margin-bottom: 0;
  }

  .skill-description {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .skill-tech {
    font-size: 0.9rem;
  }

  /* Contact Grid */
  .contact-grid {
    gap: 25px;
  }

  .contact-tile {
    flex: 1 1 calc(50% - 15px);
    max-width: 280px;
    padding: 16px 12px;
    gap: 8px;
  }

  .contact-icon {
    font-size: 2.2rem;
    margin-bottom: 0px;
  }

  .contact-label {
    font-size: 1.35rem;
    margin-bottom: 0px;
  }

  .contact-value {
    font-size: 1.1rem;
  }

  /* Navbar */
  .nav-links {
    gap: 24px;
    font-size: 0.85rem;
  }

  .lightboxClose {
    right: 20px;
  }

  /* Section Spacing */
  .section {
    padding: 40px 4vw;
  }
}

/* === Mobile Styles === */
@media (max-width: 480px) {
  html {
    font-size: 80%;
  }
  .section {
    padding: 30px 3vw;
  }

  .me-pic {
    width: 10rem;
  }

  .nav-logo img {
    width: 40px;
    border-radius: 5px;
    transition: transform 0.3s ease;
  }

  .hero-main h1 {
    font-size: 1.75rem;
    margin-bottom: 15px;
  }

  .hero-main .subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .hero-main .description {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.75rem;
    padding: 15px 4vw;
    margin-bottom: 40px;
  }

  /* Projects */
  .featured-project {
    padding: 15px 10px;
    margin-bottom: 10px;
    gap: 10px;
  }

  .project-title {
    font-size: 1.5rem;
    margin-top: 5px;
  }

  .project-description {
    font-size: 1rem;
  }

  .tech-pill {
    font-size: 0.75rem;
    padding: 5px 8px;
  }

  .project-link {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  /* Skills */
  .skills-grid {
    gap: 18px;
  }

  .skill-tile {
    padding: 14px 10px;
    max-width: 100%;
  }

  .skill-icon {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .skill-name {
    font-size: 1.25rem;
    margin-bottom: 0;
  }

  .skill-description {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .skill-tech {
    font-size: 0.9rem;
  }

  /* Contact */
  .contact-grid {
    gap: 18px;
  }

  .contact-tile {
    padding: 14px 10px;
    max-width: 100%;
  }

  .contact-icon {
    font-size: 2rem;
  }

  .contact-label {
    font-size: 1.25rem;
  }

  .contact-value {
    font-size: 0.95rem;
  }

  /* Navbar */
  .nav-links {
    gap: 14px;
    font-size: 0.8rem;
  }

  .nav-links a{
    font-size: 1.25rem;
  }
}

@media (hover: none) {
  .nav-links a:hover,
  .project-link:hover,
  .tech-pill:hover,
  .contact-tile:hover {
    transform: none;
  }
}