/* ========== GLOBAL STYLES ========== */
body {
    margin: 0;
    font-family: Roboto, sans-serif;
    color: #222;
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== ACCESSIBILITY UTILITIES ========== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
/* ========== HEADER & NAVIGATION ========== */
header {
    position: absolute;
    z-index: 10;
    margin-left: calc(50% - 50vw);
    width: 100vw;
}

header .container {
    display: flex;
    justify-content: space-between;
    padding: 35px;
}

.logo {
    display: flex;
    align-items: center;
    position: fixed;
}

nav {
    width: 100%;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 100;
    text-transform: uppercase;
    font-family: 'Roboto';
    font-size: 1.2em;
}

/* ========== HERO SECTION ========== */
.hero {
    height: 100vh;
    background: linear-gradient(45deg, #ff7f50, #ff4500);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    width: 100vw;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
    opacity: 1;
  transition: opacity 1s ease;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(241,75,15,0.3); /* orange tint */
  animation: overlayShift 20s ease-in-out infinite;
}

@keyframes overlayShift {
  0% {
    background-color: rgba(241,75,15,0.3); /* orange */
  }
  50% {
    background-color: rgba(106,13,173,0.3); /* purple */
  }
  100% {
    background-color: rgba(241,75,15,0.3); /* back to orange */
  }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    top: 6vw;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-family: Roboto;
    font-weight: 100;
    width: 50%;
    font-size: 1.4em;
}

/* ========== SECTIONS ========== */
.section {
    padding: 4rem 2rem;
    text-align: center;
    min-height: 50vh;
}

.home-section {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.inner-page .home-section {
    height: 70vh;
}

/* ========== PROJECTS & CARDS ========== */
.projects {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-card {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1rem;
}

.project-card .overlay h3 {
    font-family: Roboto;
    font-weight: 200;
    font-size: 1.2em;
}

.project-card:hover .overlay {
    opacity: 1;
}

.view-btn {
    position: absolute;
    top: 50%;
    left: 20vw;
    transform: translateY(-50%);
    padding: 0.75em 2em;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #ddd;
    border: 1px solid #888;
    background: #ffffff26;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    font-family: 'Roboto';
    letter-spacing: 1px;
    font-weight: 100;
    text-decoration: none;
}

.view-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.parallax-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 120vh;
    transform: translate(-50%, -50%) translateY(0);
    z-index: 1;
    will-change: transform;
    object-fit: cover;
}

/* For static images on sections 2 and 3 */
.static-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.other-projects {
    background-color: #f5f5f5;
    padding: 2rem;
}

.other-projects h2,
.other-projects h2 a {
    margin-bottom: 1rem;
    text-align: right;
    font-family: 'Roboto';
    font-weight: 200;
    text-decoration: none;
    color: #2f2e2e;
}

.other-projects .projects {
    display: flex;
    margin-left: calc(50% - 50vw);
    width: 100vw;
}

/* ========== ABOUT SECTION ========== */
section.about {
    padding: 4rem 2rem;
    text-align: center;
    min-height: 50vh;
    background-color: #2f2e2e;
    color: #fff;
    padding-top: 130px;
}

section.about .about-img {
    display: flex;
}

.about-content {
    max-width: 600px;
    margin: auto;
}

.about-content p {
    text-align: left;
    font-family: Roboto;
    font-weight: 200;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #fff;
    color: #605e5e;
    text-align: left;
    padding: 2rem;
}

.footer-container {
    max-width: 600px;
    margin: auto;
}

.footer h5 {
    font-family: 'Roboto';
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 0px;
}

.footer p a {
    color: #605e5e;
    text-decoration: none;
    margin-bottom: 0px;
    font-size: 1.2em;
    font-weight: 300;
    font-family: 'Roboto';
}

.footer small {
    font-family: 'Roboto';
    font-weight: 200;
    font-size: 0.9em;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.8rem;
    margin: 0;
}

.social-links a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #F14B0F;
}

/* ========== INNER SECTIONS ========== */
.inner-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
    padding: 80px 15%;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    position: relative;
}

.inner-section:nth-child(odd) {
    background-color: #f2f2f2;
    color: #2f2e2e;
}

.inner-section:nth-child(even) {
    background-color: #222;
    color: #fff;
}

.inner-section.image-container {
    display: flex;
    justify-content: center;
    align-content: center;
}

.inner-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Titles column */
.inner-section h1,
.inner-section h2,
.inner-section h3 {
    grid-column: 1;
    font-weight: 500;
    margin: 0;
    padding-right: 20px;
    border-right: 2px solid currentColor;
    text-align: right;
}

/* Content column */
.inner-section .container {
    grid-column: 2;
}

.inner-section p,
.inner-section ul,
.inner-section img {
    margin-bottom: 20px;
    max-width: 800px;
}

/* Optional list tweaks */
.inner-section ul {
    margin: 20px 0;
    padding-left: 20px;
}

/* ========== CAROUSEL ========== */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    flex-shrink: 0;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    background: #00000054;
}

.carousel-btn svg {
    fill: white;
    width: 20px;
    height: 20px;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .inner-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 8%;
    }

    .inner-section h1,
    .inner-section h2,
    .inner-section h3 {
        border-right: none;
        text-align: left;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .inner-section .container {
        grid-column: 1;
    }
}

/* Extra responsiveness for index, about, and project pages */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-content h1 {
        width: 80%;
        font-size: 1.2em;
    }

    .view-btn {
        left: 10%;
        padding: 0.5em 1.5em;
    }

    .other-projects .projects {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
    }

    .project-card img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .home header {
        position: absolute;
        background: transparent;
    }
    
    .hero {
        height: 100vh;
        padding: 0;
    }

    .hero-content {
        top: 0;
        flex-direction: column;
    }

    .hero-content h1 {
          font-size: 1.1em;
    }

    .section,
    section.about {
        padding: 2rem 1rem;
    }

    .about-content {
        padding: 0 1rem;
    }

    .carousel-btn {
        padding: 6px;
    }

    .footer {
        text-align: center;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .social-links {
        justify-content: center;
    }

  .project-card img {
    object-fit: cover;
    height: 100%;
  }
  
  .view-btn {
      background: #0f0f0f9e;
  }

  header {
    position: relative;
    background: #222;
  }

  .logo {
    position: relative;
  }

  .inner-section p,
  .inner-section ul,
  .inner-section img {
    max-width: 100%;
  }

  header .container {
    align-items: center;
  }

  nav ul {
    justify-content: center;
    flex-direction: row !important;
    margin-bottom: 0;
    border-top: 1px solid white;
    padding-top: 10px;
    font-size: 13px;
  }
}
