/* --- Hero Section --- */
.hero-section {
    position: relative;
    background: url('/images/5images.jpg') center/cover no-repeat;
    filter: grayscale(10%);
    padding: 6rem 0;
    background-blend-mode: luminosity;
    /* darken the color a bit */
    background-color: rgba(97, 109, 203, 1);
    overflow: hidden;
    /* Shift hero up under the transparent navbar */
    margin-top: 0px;
    /* adjust to match .navbar height */
    padding-top: calc(6rem + 100px);
    /* maintain visual space below navbar */
    z-index: 1;
    /* TODO blur the background toward the bottom */
    /* mask-image: linear-gradient(to bottom, transparent, black 0%, black 70%, transparent); */
}

@media (min-width: 768px) {
    .hero-section {
        background-color: color-mix(in srgb, var(--savoy-blue-2) 80%, transparent);
    }
}

.hero-pillars {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 1;
    font-weight: 700;
    color: #fff;
    user-select: none;
    /* good shadow for readability */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-pillars span {
    white-space: nowrap;
}

@media (max-width: 500px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-pillars {
        gap: 1rem;
        font-size: 0.75rem;
        text-align: center;
        margin-top: 5rem;
    }
}

.hero-card {
    max-width: 800px;
    margin: 0 auto;
    margin-top: -6rem;
    /* pull up to overlap navbar */
    /* background: rgba(var(--savoy-blue), 0.3); */
    /* background: rgb(from var(--savoy-blue) r g b / 0.3); */
    /* backdrop-filter: blur(6px); */
    /* -webkit-backdrop-filter: blur(6px); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); */
    padding: 3.5rem 4.5rem;
    /* border-radius: 20px; */
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
    z-index: 2;
}

/* 
.hero-card:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
} */

.hero-card blockquote {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    font-style: italic;
    color: #fff;
    letter-spacing: 0.03em;
    text-align: justify;
    margin: 0 0 1rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-card blockquote::before {
    content: '“';
    font-size: 4rem;
    color: #fff;
    position: absolute;
    left: -2.5rem;
    top: -1rem;
}

.hero-card cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    letter-spacing: 0.05em;
    font-variant: small-caps;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.project-button-container {
    text-align: center;
    margin-top: 2.5rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    border: none;
    font-weight: 600;
    color: var(--savoy-blue);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.hero-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.5s;
    pointer-events: none;
}

.hero-button:hover::before {
    top: 100%;
    left: 100%;
}

.hero-minimal-cta {
    display: none;
}

@media (max-width: 768px) {
    .hero-card {
        display: none;
    }

    .hero-minimal-cta {
        display: flex;
        justify-content: center;
        padding: 4rem 0;
    }

    .hero-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

/* --- Projects Carousel Section --- */
.projects-carousel-section {
    margin: 4rem 0 2rem 0;
    padding: 0 0.5rem;
}

.projects-carousel-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.projects-carousel-header h2 {
    margin: 0;
    font-size: 2.1rem;
    color: var(--savoy-blue);
    letter-spacing: 0.03em;
}

.carousel-scroll-hint {
    display: none !important;
}

.projects-carousel {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--savoy-blue) #e0e0e0;
}

.projects-carousel::-webkit-scrollbar {
    height: 8px;
}

.projects-carousel::-webkit-scrollbar-thumb {
    background: var(--savoy-blue);
    border-radius: 4px;
}

.projects-carousel::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.project-card {
    min-width: 300px;
    max-width: 320px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(97, 109, 203, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-snap-align: start;
    transition: box-shadow 0.14s;
    position: relative;
    border: 1px solid #e6e8f0;
}

.project-card:hover {
    /* Removed scale/translate animation */
    box-shadow: 0 4px 16px rgba(97, 109, 203, 0.10);
}

.project-card-img {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background: #e8eaf6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card-info {
    padding: 1.1rem 1.1rem 1.3rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.project-card-info h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.08rem;
    color: var(--savoy-blue);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.project-card-btn {
    display: inline-block;
    padding: 0.45em 1.2em;
    border-radius: 6px;
    background: var(--savoy-blue);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.01rem;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 4px rgba(97, 109, 203, 0.08);
    transition: background 0.14s, color 0.14s, box-shadow 0.14s;
    margin-top: 0.2rem;
}

.project-card-btn:hover,
.project-card-btn:focus {
    background: var(--royal-blue-web-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(97, 109, 203, 0.13);
    outline: none;
}

@media (max-width: 600px) {
    .projects-carousel {
        gap: 0.5rem;
    }

    .project-card {
        min-width: 85vw;
        max-width: 95vw;
    }

    .projects-carousel-header h2 {
        font-size: 1.3rem;
    }
}

/* --- About Section --- */
.about {
    padding: 50px 20px;
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

h2,
.about-title {
    margin-top: 0;
    color: var(--savoy-blue);
    font-size: 2.4em;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.about p,
.about-container p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-title-mobile {
    display: none;
}

@media (max-width: 768px) {
    .about-title {
        display: none;
    }

    .about-title-mobile {
        display: inline-block;
    }
}

/* --- Contact Card --- */
.contact-card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30vh;
}

.contact-card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    padding: 2rem;
    gap: 2rem;
    text-align: justify;
}

.contact-card-image img {
    width: 220px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.contact-card-info {
    flex: 1;
    min-width: 250px;
}

.contact-card-info h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

.contact-card-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .contact-card-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-card-image img {
        margin: 0 auto;
    }

    .contact-card-info h2 {
        font-size: 1.75rem;
    }
}

/* Remove marquee styles if not used, or keep for future use */
/* Optionally, add a little style for the static prizes gallery */
.prizes-gallery {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: flex-end;
  margin: 0rem 0;
  flex-wrap: wrap;
}
.prize-item {
  text-align: center;
  /* margin-top is set inline for staggered effect */
  flex: 0 0 auto;
}
.prize-item img {
  display: block;
}
.prize-text {
  margin-top: 0rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--savoy-blue);
  filter: brightness(0.7);
  font-weight: 600;
  text-align: center;
}
/* Responsive: stack prizes on small screens */
@media (max-width: 700px) {
  .prizes-gallery {
    gap: 1.2rem;
    flex-wrap: wrap;
  }
  .prize-item {
    margin-top: 0 !important;
    width: 40vw;
    min-width: 120px;
    max-width: 180px;
  }
}

