@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Oxanium', 'Arial', sans-serif;
    background: linear-gradient(135deg, #e0f2f7 0%, #b3e5f0 25%, #80d3e8 50%, #4dbfe0 75%, #1aadd8 100%);
    color: #0a3d52;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Dynamic wave interference pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(29, 173, 216, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(77, 191, 224, 0.06) 0%, transparent 50%);
    background-size: 200px 200px, 250px 250px;
    background-position: 0 0, 100px 100px;
    pointer-events: none;
    z-index: 0;
    animation: waveInterference 35s linear infinite;
}

@keyframes waveInterference {
    0% {
        background-position: 0 0, 100px 100px;
    }

    100% {
        background-position: 200px 200px, 300px 300px;
    }
}

/* Energy pulse effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(29, 173, 216, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 80%, rgba(77, 191, 224, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(128, 211, 232, 0.12) 0%, transparent 55%);
    animation: energyPulse 16s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes energyPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 0.85;
        transform: scale(1.08);
    }
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Futuristic Header with Wave Energy */
header {
    background: rgba(255, 255, 255, 0.90);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    border-bottom: 3px solid rgba(29, 173, 216, 0.75);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 40px rgba(29, 173, 216, 0.4),
        0 0 80px rgba(77, 191, 224, 0.25) inset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
    min-width: 200px;
}

.site-title a {
    text-decoration: none;
    font-size: 2.4rem;
    font-weight: 800;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0891b2 0%, #1dadd8 50%, #4dbfe0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 12px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(29, 173, 216, 0.7));
}

.site-title a:hover {
    filter: drop-shadow(0 0 45px rgba(77, 191, 224, 0.95));
    letter-spacing: 16px;
}

.site-tagline {
    font-size: 0.95rem;
    color: #0891b2;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 400;
    font-family: 'Rajdhani', sans-serif;
}

/* Navigation Menu */
#menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

#menu li {
    margin: 0 1.3rem;
    font-size: 1rem;
    line-height: 2.5rem;
    position: relative;
}

#menu li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0891b2, #1dadd8);
    transition: width 0.4s ease;
    box-shadow: 0 0 20px rgba(29, 173, 216, 1);
}

#menu li:hover::before {
    width: 100%;
}

#menu a {
    text-decoration: none;
    color: #0a3d52;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

#menu li:hover a {
    color: #0891b2;
    text-shadow: 0 0 25px rgba(29, 173, 216, 0.8);
}

/* Hero Section with Wave Energy */
.hero-section {
    text-align: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(179, 229, 240, 0.55) 100%);
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0891b2 0%, #1dadd8 50%, #4dbfe0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 25px;
    position: relative;
    filter: drop-shadow(0 0 50px rgba(29, 173, 216, 0.7));
    animation: titleSurge 4s ease-in-out infinite;
}

@keyframes titleSurge {

    0%,
    100% {
        filter: drop-shadow(0 0 50px rgba(29, 173, 216, 0.7));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 75px rgba(77, 191, 224, 1));
        transform: scale(1.025);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #0891b2;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 2rem;
    text-shadow: 0 0 30px rgba(29, 173, 216, 0.6);
    font-family: 'Rajdhani', sans-serif;
}

/* Dynamic Wave SVG Animation */
.wave-svg {
    width: 100%;
    height: 340px;
    margin-top: 3rem;
}

.wave-crest {
    fill: none;
    stroke: #1dadd8;
    stroke-width: 4;
    opacity: 0;
    animation: surgeCrest 3s ease-out forwards;
    filter: drop-shadow(0 0 15px rgba(29, 173, 216, 0.8));
    stroke-linecap: round;
}

.wave-crest:nth-child(2) {
    stroke: #4dbfe0;
    stroke-width: 3;
    animation-delay: 0.4s;
}

.wave-crest:nth-child(3) {
    stroke: #80d3e8;
    stroke-width: 2.5;
    animation-delay: 0.8s;
}

@keyframes surgeCrest {
    from {
        opacity: 0;
        stroke-dasharray: 2000;
        stroke-dashoffset: 2000;
    }

    to {
        opacity: 0.9;
        stroke-dasharray: 2000;
        stroke-dashoffset: 0;
    }
}

.wave-body {
    fill: #b3e5f0;
    opacity: 0;
    animation: surgeBody 2.8s ease-out 1s forwards;
}

@keyframes surgeBody {
    from {
        opacity: 0;
        transform: translateY(80px) scaleY(0);
        transform-origin: bottom;
    }

    to {
        opacity: 0.35;
        transform: translateY(0) scaleY(1);
    }
}

.wave-foam {
    fill: #ffffff;
    opacity: 0;
    animation: foamBurst 2s ease-out 1.5s forwards;
}

@keyframes foamBurst {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 0.8;
        transform: scale(1);
    }
}

.splash-particle {
    fill: #4dbfe0;
    opacity: 0;
    animation: splashUp 4s ease-out infinite;
}

.splash-particle:nth-child(1) {
    animation-delay: 0s;
}

.splash-particle:nth-child(2) {
    animation-delay: 1.3s;
}

.splash-particle:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes splashUp {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    25% {
        opacity: 0.9;
    }

    50% {
        transform: translate(30px, -120px) scale(0.7);
        opacity: 0.7;
    }

    75% {
        opacity: 0.3;
    }
}

.energy-line {
    stroke: #1dadd8;
    stroke-width: 2;
    fill: none;
    opacity: 0;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: energyFlow 3.5s ease-in-out 2s infinite;
}

.energy-line:nth-child(1) {
    animation-delay: 2s;
}

.energy-line:nth-child(2) {
    animation-delay: 2.5s;
}

@keyframes energyFlow {

    0%,
    100% {
        opacity: 0;
        stroke-dashoffset: 600;
    }

    50% {
        opacity: 0.8;
        stroke-dashoffset: 0;
    }
}

.crest-highlight {
    fill: #ffffff;
    opacity: 0;
    animation: cresthHighlight 3s ease-in-out 2.5s infinite;
}

@keyframes cresthHighlight {

    0%,
    100% {
        opacity: 0;
        transform: translateX(0);
    }

    50% {
        opacity: 0.7;
        transform: translateX(50px);
    }
}

/* Wave Gallery Section */
.wave-gallery {
    max-width: 1600px;
    margin: 3rem auto;
    padding: 0 2rem 4rem;
}

.region-section {
    margin-bottom: 4rem;
}

.region-title {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0891b2 0%, #1dadd8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 25px;
}

.region-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 85%;
    background: linear-gradient(180deg, #0891b2, #1dadd8);
    box-shadow: 0 0 25px rgba(29, 173, 216, 1);
    border-radius: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    justify-items: center;
}

.gallery-grid .wave-card {
    max-width: 480px;
    width: 100%;
}

/* Wave Card - Energy meets Technology */
.wave-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    z-index: 1;
}

.wave-card:hover {
    transform: translateY(-20px) scale(1.03);
    z-index: 10;
}

/* Dynamic energy border effect */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.93) 0%, rgba(179, 229, 240, 0.90) 100%);
    border-radius: 16px;
    border: 2px solid rgba(29, 173, 216, 0.65);
    box-shadow: 0 10px 50px rgba(29, 173, 216, 0.4),
        0 0 30px rgba(77, 191, 224, 0.25) inset;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.wave-card:hover .card-container {
    border-color: rgba(29, 173, 216, 1);
    box-shadow: 0 25px 70px rgba(29, 173, 216, 0.6),
        0 0 50px rgba(77, 191, 224, 0.4) inset;
}

/* Wave surge lines */
.surge-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.wave-card:hover .surge-lines {
    opacity: 1;
}

.surge-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(29, 173, 216, 0.6), transparent);
    animation: waveSurge 2.5s ease-in-out infinite;
}

.surge-line:nth-child(1) {
    top: 15%;
    animation-delay: 0s;
}

.surge-line:nth-child(2) {
    top: 35%;
    animation-delay: 0.8s;
}

.surge-line:nth-child(3) {
    top: 55%;
    animation-delay: 1.6s;
}

.surge-line:nth-child(4) {
    top: 75%;
    animation-delay: 0.4s;
}

.surge-line:nth-child(5) {
    top: 90%;
    animation-delay: 1.2s;
}

@keyframes waveSurge {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0) scaleX(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px) scaleX(1.1);
    }
}

/* Crash effect */
.crash-effect {
    position: absolute;
    top: 0;
    left: -100%;
    right: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(29, 173, 216, 0.5),
            rgba(77, 191, 224, 0.4),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.wave-card:hover .crash-effect {
    animation: wavecrash 2.2s ease-out;
}

@keyframes wavecrash {
    0% {
        left: -100%;
        right: 100%;
    }

    50% {
        left: 0;
        right: 0;
    }

    100% {
        left: 100%;
        right: -100%;
    }
}

/* Image Container */
.wave-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
}

/* Portrait orientation - manually add this class to portrait images */
.wave-image-wrapper.portrait {
    aspect-ratio: 3/4;
}

.wave-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(29, 173, 216, 0.18) 0%,
            transparent 50%,
            rgba(77, 191, 224, 0.18) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.wave-card:hover .wave-image-wrapper::before {
    opacity: 0.8;
}

.wave-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.95) contrast(1.12) brightness(1.05);
}

.wave-card:hover .wave-image {
    transform: scale(1.22);
    filter: saturate(1.25) contrast(1.18) brightness(1.1);
}

/* Wave Info Overlay */
.wave-info {
    position: relative;
    padding: 2rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(179, 229, 240, 0.85) 60%,
            transparent 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(29, 173, 216, 0.65);
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.wave-location {
    font-size: 1.9rem;
    font-weight: 800;
    font-family: 'Orbitron', monospace;
    color: #0891b2;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 30px rgba(29, 173, 216, 0.7);
}

.wave-card:hover .wave-location {
    color: #1dadd8;
    text-shadow: 0 0 45px rgba(77, 191, 224, 1);
}

/* Dynamic frame corners */
.dynamic-frame {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    transition: all 0.5s ease;
}

.dyn-tl {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-top: 3px solid rgba(29, 173, 216, 0.75);
    border-left: 3px solid rgba(29, 173, 216, 0.75);
    border-radius: 8px 0 0 0;
}

.dyn-tr {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-top: 3px solid rgba(29, 173, 216, 0.75);
    border-right: 3px solid rgba(29, 173, 216, 0.75);
    border-radius: 0 8px 0 0;
}

.dyn-bl {
    bottom: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid rgba(29, 173, 216, 0.75);
    border-left: 3px solid rgba(29, 173, 216, 0.75);
    border-radius: 0 0 0 8px;
}

.dyn-br {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid rgba(29, 173, 216, 0.75);
    border-right: 3px solid rgba(29, 173, 216, 0.75);
    border-radius: 0 0 8px 0;
}

.wave-card:hover .dynamic-frame {
    border-color: rgba(29, 173, 216, 1);
    box-shadow: 0 0 25px rgba(29, 173, 216, 1);
}

.wave-card:hover .dyn-tl,
.wave-card:hover .dyn-br {
    width: 50px;
    height: 50px;
}

.wave-card:hover .dyn-tr,
.wave-card:hover .dyn-bl {
    width: 50px;
    height: 50px;
}

/* Footer with Wave Energy Style */
footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(179, 229, 240, 0.92) 100%);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    border-top: 3px solid rgba(29, 173, 216, 0.75);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 40px rgba(29, 173, 216, 0.4);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.4rem;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0891b2 0%, #1dadd8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 50px;
    padding: 0.5rem;
    border: 2px solid rgba(29, 173, 216, 0.65);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(15px);
    margin-bottom: 2rem;
    box-shadow: 0 0 40px rgba(29, 173, 216, 0.3) inset;
}

#langlist li {
    display: inline-block;
    list-style: none;
    margin: 0.3rem;
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

#langlist a {
    text-decoration: none;
    color: #0a3d52;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
}

#langlist .highlight {
    background: linear-gradient(135deg, #0891b2, #1dadd8);
    box-shadow: 0 0 30px rgba(29, 173, 216, 0.75);
}

#langlist .highlight a {
    color: #ffffff;
    font-weight: bold;
}

#langlist li:not(.highlight):hover {
    background: rgba(29, 173, 216, 0.32);
    box-shadow: 0 0 25px rgba(29, 173, 216, 0.65);
}

#langlist li:not(.highlight):hover a {
    color: #0891b2;
    text-shadow: 0 0 20px rgba(29, 173, 216, 0.75);
}

.footer-credits {
    color: #0891b2;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-top: 2rem;
    font-weight: 400;
    font-family: 'Rajdhani', sans-serif;
}

.footer-credits strong {
    background: linear-gradient(135deg, #0891b2 0%, #1dadd8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-family: 'Orbitron', monospace;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .site-branding {
        margin-bottom: 1rem;
    }

    #menu {
        justify-content: center;
    }

    #menu ul {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .hero-title {
        font-size: 4rem;
        letter-spacing: 15px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 6px;
    }

    .wave-card {
        }

    .wave-location {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 600px) {
    .site-title a {
        font-size: 1.8rem;
        letter-spacing: 5px;
    }

    .site-tagline {
        font-size: 0.8rem;
    }

    #menu li {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 5px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .wave-card {
        }

    .wave-location {
        font-size: 1.4rem;
    }

    .wave-info {
        padding: 1.5rem;
    }

    .region-title {
        font-size: 2rem;
    }
}
