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

body {
    font-family: 'M PLUS Rounded 1c', 'Quicksand', sans-serif;
    overflow-x: hidden;
    background: #04161a;
    color: #fff;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55) contrast(1.08) blur(3px);
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) { background-image: url('../images/bg01.webp'); }
.slide:nth-child(2) { background-image: url('../images/bg02.webp'); }
.slide:nth-child(3) { background-image: url('../images/bg03.webp'); }
.slide:nth-child(4) { background-image: url('../images/bg04.webp'); }
.slide:nth-child(5) { background-image: url('../images/bg05.webp'); }

/* ── Contrast scrim ── */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(60% 55% at 50% 46%, rgba(0,100,120,0.34) 0%, rgba(4,22,26,0) 70%),
        linear-gradient(180deg, rgba(4,22,26,0.62) 0%, rgba(4,22,26,0.30) 30%, rgba(4,22,26,0.34) 64%, rgba(4,22,26,0.72) 100%);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ── Logo – teal glow ── */
.logo {
    max-width: 380px;
    width: 100%;
    height: auto;
    margin-bottom: 1.6rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease forwards 0.2s;
    filter: drop-shadow(0 0 26px rgba(86,183,196,0.45)) drop-shadow(0 4px 14px rgba(0,0,0,0.4));
    box-sizing: border-box;
}

/* ── Subtitle – Quicksand + teal tint ── */
.subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cdeef2;
    margin-bottom: 2.8rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease forwards 0.8s;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease forwards 1.2s;
    max-width: 340px;
    margin: 0 auto;
}

/* ── Link items – teal hover ── */
.link-item {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(205, 238, 242, 0.22);
    border-radius: 16px;
    padding: 1.15rem 1.6rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-4px);
    background: rgba(86, 183, 196, 0.18);
    border-color: rgba(86, 183, 196, 0.7);
    box-shadow: 0 12px 30px rgba(0,0,0,0.32), 0 0 22px rgba(86,183,196,0.28);
}

/* ── Internal links – pink accent ── */
.link-item.internal {
    border: 1px solid rgba(224, 135, 140, 0.28);
    border-left: 3px solid rgba(224, 135, 140, 0.85);
}

.link-item.internal:hover {
    background: rgba(224, 135, 140, 0.16);
    border-color: rgba(224, 135, 140, 0.9);
    box-shadow: 0 12px 30px rgba(0,0,0,0.32), 0 0 22px rgba(224,135,140,0.3);
}

.link-text-group {
    display: flex;
    flex-direction: column;
}

.link-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.link-subtext {
    display: block;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.link-item:hover .link-subtext {
    max-height: 1.2rem;
    margin-top: 0.2rem;
    opacity: 1;
}

.link-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.link-arrow.external {
    font-size: 1rem;
    color: #7fd6e0;
}

.link-arrow.internal {
    font-size: 1.1rem;
    color: #f0b3b6;
}

.link-item:hover .link-arrow {
    transform: translateX(5px);
}

/* ── Social links ── */
.social-links {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 4;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 1.6s;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(205, 238, 242, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(86, 183, 196, 0.22);
    border-color: rgba(86, 183, 196, 0.7);
    transform: translateY(-3px);
}

.social-link img {
    filter: brightness(1) contrast(1);
    transition: all 0.3s ease;
}

/* ── Tools Modal – teal border ── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 16, 20, 0.78);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(20, 40, 46, 0.55);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(86, 183, 196, 0.4);
    border-radius: 22px;
    padding: 2.6rem 2rem 2.2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.86);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 1.8rem;
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #cdeef2;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(86, 183, 196, 0.2);
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: left;
}

.tool-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(205, 238, 242, 0.2);
    border-radius: 14px;
    padding: 1.25rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
    transition: left 0.5s ease;
}

.tool-item:hover::before {
    left: 100%;
}

.tool-item:hover {
    background: rgba(86, 183, 196, 0.16);
    border-color: rgba(86, 183, 196, 0.7);
    transform: translateY(-2px);
}

.tool-name {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* ── Slide indicators ── */
.slide-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 4;
}

.indicator {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #56b7c4;
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(86, 183, 196, 0.7);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .content { padding: 1rem; }
    .logo { max-width: 300px; margin-bottom: 1.2rem; }
    .links-container { gap: 0.9rem; max-width: 300px; }
    .link-item { padding: 1rem 1.4rem; }
    .social-links { bottom: 1rem; right: 1rem; }
}
