* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #0a0e27;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgb(27, 106, 162) 0%, rgb(29, 115, 175) 50%, rgb(33, 131, 201) 100%);
}

.ocean {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400%;
    height: 225px;
}

.wave svg {
    width: 100%;
    height: 100%;
}

.wave:nth-child(1) {
    animation: wave 15s linear infinite;
    opacity: 0.7;
}

.wave:nth-child(2) {
    animation: wave 20s linear infinite reverse;
    opacity: 0.6;
}

.wave:nth-child(3) {
    animation: wave 25s linear infinite;
    opacity: 0.4;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -90px;
    width: 18px;
    height: 18px;
    background-image: url("images/bubble.webp");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: rise 8s infinite ease-in;
}

.bubble:nth-child(1) {left: 10%; width: 13.5px; height: 13.5px; animation-duration: 7s; animation-delay: 0s;}
.bubble:nth-child(2) {left: 20%; width: 9px; height: 9px; animation-duration: 9s; animation-delay: 1s;}
.bubble:nth-child(3) {left: 35%; width: 16px; height: 16px; animation-duration: 6s; animation-delay: 2s;}
.bubble:nth-child(4) {left: 50%; width: 11px; height: 11px; animation-duration: 10s; animation-delay: 0.5s;}
.bubble:nth-child(5) {left: 65%; width: 14.5px; height: 14.5px; animation-duration: 8s; animation-delay: 3s;}
.bubble:nth-child(6) {left: 75%; width: 12.5px; height: 12.5px; animation-duration: 7s; animation-delay: 1.5s;}
.bubble:nth-child(7) {left: 85%; width: 10px; height: 10px; animation-duration: 9s; animation-delay: 2.5s;}
.bubble:nth-child(8) {left: 25%; width: 11.5px; height: 11.5px; animation-duration: 8.5s; animation-delay: 0.8s;}
.bubble:nth-child(9) {left: 45%; width: 15px; height: 15px; animation-duration: 7.5s; animation-delay: 1.8s;}
.bubble:nth-child(10) {left: 90%; width: 9px; height: 9px; animation-duration: 10s; animation-delay: 0.3s;}
.bubble:nth-child(11) {left: 15%; width: 8px; height: 8px; animation-duration: 8s; animation-delay: 1.2s;}
.bubble:nth-child(12) {left: 55%; width: 12.5px; height: 12.5px; animation-duration: 9.5s; animation-delay: 2.2s;}
.bubble:nth-child(13) {left: 70%; width: 10px; height: 10px; animation-duration: 7.8s; animation-delay: 0.7s;}
.bubble:nth-child(14) {left: 30%; width: 14.5px; height: 14.5px; animation-duration: 6.5s; animation-delay: 3.5s;}
.bubble:nth-child(15) {left: 80%; width: 11px; height: 11px; animation-duration: 8.8s; animation-delay: 1.9s;}
.bubble:nth-child(16) {left: 40%; width: 9px; height: 9px; animation-duration: 9.2s; animation-delay: 0.4s;}
.bubble:nth-child(17) {left: 60%; width: 13.5px; height: 13.5px; animation-duration: 7.3s; animation-delay: 2.8s;}
.bubble:nth-child(18) {left: 5%; width: 11.5px; height: 11.5px; animation-duration: 10.5s; animation-delay: 1.4s;}

@keyframes rise {
    0% {
        bottom: -90px;
        transform: translateX(0) scale(1);
        opacity: 0.6;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateX(45px) scale(1.1);
    }
    100% {
        bottom: 110vh;
        transform: translateX(-27px) scale(0.8);
        opacity: 0.3;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.profile-pic {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    object-fit: cover;
    border: 3.6px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 18px;
    box-shadow: 0 9px 27px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 2.7em;
    margin-bottom: 18px;
    text-shadow: 1.8px 1.8px 9px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.08em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
    margin: 0 auto 27px;
    line-height: 1.6;
    padding: 0 18px;
    text-shadow: 0.9px 0.9px 4.5px rgba(0, 0, 0, 0.5);
}

.cta-button {
    padding: 13.5px 36px;
    font-size: 1.08em;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.8px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(9px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2.7px);
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.5);
}

.work-section {
    min-height: 100vh;
    padding: 72px 24px;
    background: rgb(15, 20, 30);
}

.work-title {
    text-align: center;
    font-size: 3.4em;
    color: #fff;
    margin-bottom: 40px;
}

/* Category tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 45px;
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.7em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding-bottom: 10px;
    position: relative;
    transition: color 0.25s ease;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
    color: #fff;
}

.tab-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% + 8px);
    height: 3px;
    border-radius: 2px;
    background: #5da9e9;
    transition: transform 0.25s ease;
}

.tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Category grouping within Work */
.work-category {
    max-width: 1620px;
    margin: 0 auto;
    display: none;
}

.work-category.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1620px;
    margin: 0 auto;
}

.work-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.work-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.work-item:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.work-item.in-view:hover {
    transform: translateY(-6px);
}

.work-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 630px;
    margin: 0 auto;
    width: 100%;
}

.work-details {
    margin-bottom: 18px;
    text-align: center;
    flex: 1;
}

.work-details h2 {
    font-size: 1.35em;
    color: #fff;
    margin-bottom: 9px;
}

.work-details p {
    font-size: 0.9em;
    color: #b0b0b0;
    line-height: 1.6;
}

.work-details a {
    color: #5da9e9;
    text-decoration: none;
}

.work-details a:hover {
    text-decoration: underline;
}

.video-container {
    width: 100%;
}

.video-container .video-wrapper {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: visible;
    border-radius: 13.5px;
    box-shadow: 0 9px 27px rgba(0, 0, 0, 0.5);
    background: #1a1f3a;
    width: 100%;
}

.video-container .video-wrapper .video-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 13.5px;
    overflow: hidden;
    transition: width 0.2s ease, height 0.2s ease, top 0.2s ease, left 0.2s ease;
}

.video-container .video-wrapper:hover .video-inner {
    width: 103%;
    height: 103%;
    top: -1.5%;
    left: -1.5%;
}

.video-container .video-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Placeholder card for empty categories */
.work-item-placeholder .work-details {
    opacity: 0.6;
    font-style: italic;
}

@media (max-width: 1300px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-item:last-child:nth-child(odd) {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-text {
        font-size: 1.8em;
    }

    .hero-description {
        font-size: 0.9em;
    }

    .work-title {
        font-size: 2.2em;
    }

    .category-tabs {
        gap: 27px;
    }

    .tab-btn {
        font-size: 1.3em;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-details h2 {
        font-size: 1.15em;
    }

    .work-details p {
        font-size: 0.855em;
    }
}