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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 25%, #fad7a0 50%, #f8c471 75%, #f0b27a 100%);
    color: #2c3e50;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated water ripple background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(52, 152, 219, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(230, 126, 34, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: waterFlow 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes waterFlow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(80px, 80px);
    }
}

/* Sunlight shimmer effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(241, 196, 15, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(230, 126, 34, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    animation: sunShimmer 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sunShimmer {

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

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

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

/* Warm Sunset Header */
header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(230, 126, 34, 0.3);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(230, 126, 34, 0.15),
        0 0 60px rgba(241, 196, 15, 0.1) 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: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(230, 126, 34, 0.3));
}

.site-title a:hover {
    filter: drop-shadow(0 0 30px rgba(230, 126, 34, 0.5));
    letter-spacing: 6px;
}

.site-tagline {
    font-size: 0.85rem;
    color: #d68910;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.3rem;
    font-weight: 300;
}

/* 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 1rem;
    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, #e67e22, #f39c12);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.6);
}

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

#menu a {
    text-decoration: none;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#menu li:hover a {
    color: #e67e22;
    text-shadow: 0 0 20px rgba(230, 126, 34, 0.4);
}

/* Hero Section with Bridge Theme */
.hero-section {
    text-align: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(254, 245, 231, 0.6) 100%);
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #d68910 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 15px;
    position: relative;
    filter: drop-shadow(0 0 40px rgba(230, 126, 34, 0.3));
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 40px rgba(230, 126, 34, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 60px rgba(243, 156, 18, 0.5));
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #d68910;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 2rem;
    text-shadow: 0 0 20px rgba(230, 126, 34, 0.2);
}

/* Futuristic Bridge SVG Animation */
.bridge-svg {
    width: 100%;
    height: 150px;
    margin-top: 3rem;
}

.bridge-cable {
    stroke: #3498db;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCable 3s ease-in-out forwards;
    filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.6));
}

@keyframes drawCable {
    to {
        stroke-dashoffset: 0;
    }
}

.bridge-deck {
    fill: #e67e22;
    opacity: 0;
    animation: fadeInDeck 2s ease-in-out 1s forwards;
    filter: drop-shadow(0 0 8px rgba(230, 126, 34, 0.6));
}

@keyframes fadeInDeck {
    to {
        opacity: 0.8;
    }
}

.bridge-tower {
    fill: #f39c12;
    opacity: 0;
    animation: riseUp 1.5s ease-out 0.5s forwards;
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.6));
}

@keyframes riseUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 0.9;
    }
}

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

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

.country-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 20px;
}

.country-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, #e67e22, #f39c12);
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.6);
}

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

.gallery-grid .bridge-card {
    max-width: 450px;
    width: 100%;
}

/* Bridge Card - Futuristic Design */
.bridge-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    z-index: 1;
}

.bridge-card:hover {
    transform: translateY(-15px) scale(1.02);
    z-index: 10;
}

/* Warm border effect */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 245, 231, 0.9) 100%);
    border-radius: 15px;
    border: 2px solid rgba(230, 126, 34, 0.3);
    box-shadow: 0 10px 40px rgba(230, 126, 34, 0.2),
        0 0 20px rgba(241, 196, 15, 0.1) inset;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.bridge-card:hover .card-container {
    border-color: rgba(230, 126, 34, 0.7);
    box-shadow: 0 20px 60px rgba(230, 126, 34, 0.3),
        0 0 40px rgba(243, 156, 18, 0.2) inset;
}

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

.bridge-card:hover .connection-lines {
    opacity: 1;
}

.connection-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #e67e22, transparent);
    height: 1px;
    width: 100%;
    animation: connectionPulse 2s linear infinite;
}

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

.connection-line:nth-child(2) {
    top: 50%;
    animation-delay: 0.5s;
}

.connection-line:nth-child(3) {
    top: 80%;
    animation-delay: 1s;
}

@keyframes connectionPulse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Holographic scan effect */
.scan-effect {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(230, 126, 34, 0.2),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.bridge-card:hover .scan-effect {
    animation: scan 2s ease-in-out;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

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

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

.bridge-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(241, 196, 15, 0.15) 0%,
            transparent 50%,
            rgba(230, 126, 34, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.bridge-card:hover .bridge-image-wrapper::before {
    opacity: 0.5;
}

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

.bridge-card:hover .bridge-image {
    transform: scale(1.1);
    filter: saturate(1.2) contrast(1.2) brightness(1);
}

/* Bridge Info Overlay */
.bridge-info {
    position: relative;
    padding: 2rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(254, 245, 231, 0.85) 60%,
            transparent 100%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 0 0 15px 15px;
    border-top: 1px solid rgba(230, 126, 34, 0.3);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.bridge-location {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e67e22;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(230, 126, 34, 0.3);
}

.bridge-card:hover .bridge-location {
    color: #d68910;
    text-shadow: 0 0 30px rgba(243, 156, 18, 0.5);
}

/* Corner indicators */
.corner-frame {
    position: absolute;
    z-index: 4;
    pointer-events: none;
}

.corner-tl {
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-top: 3px solid rgba(230, 126, 34, 0.4);
    border-left: 3px solid rgba(230, 126, 34, 0.4);
    transition: all 0.4s ease;
}

.corner-tr {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-top: 3px solid rgba(230, 126, 34, 0.4);
    border-right: 3px solid rgba(230, 126, 34, 0.4);
    transition: all 0.4s ease;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid rgba(230, 126, 34, 0.4);
    border-left: 3px solid rgba(230, 126, 34, 0.4);
    transition: all 0.4s ease;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid rgba(230, 126, 34, 0.4);
    border-right: 3px solid rgba(230, 126, 34, 0.4);
    transition: all 0.4s ease;
}

.bridge-card:hover .corner-frame {
    border-color: rgba(230, 126, 34, 1);
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.6);
}

.bridge-card:hover .corner-tl,
.bridge-card:hover .corner-br {
    width: 40px;
    height: 40px;
}

.bridge-card:hover .corner-tr,
.bridge-card:hover .corner-bl {
    width: 40px;
    height: 40px;
}

/* Footer with Sunset Style */
footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 245, 231, 0.95) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(230, 126, 34, 0.3);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 30px rgba(230, 126, 34, 0.15);
}

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

.footer-title {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(254, 245, 231, 0.8);
    border-radius: 50px;
    padding: 0.5rem;
    border: 2px solid rgba(230, 126, 34, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(230, 126, 34, 0.1) inset;
}

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

#langlist a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

#langlist .highlight {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.4);
}

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

#langlist li:not(.highlight):hover {
    background: rgba(230, 126, 34, 0.2);
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.3);
}

#langlist li:not(.highlight):hover a {
    color: #e67e22;
    text-shadow: 0 0 10px rgba(230, 126, 34, 0.4);
}

.footer-credits {
    color: #d68910;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 2rem;
    font-weight: 400;
}

.footer-credits strong {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* 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(280px, 1fr));
        gap: 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 8px;
    }

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

    .bridge-card {
        height: 350px;
    }

    .bridge-location {
        font-size: 1.5rem;
    }
}

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

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

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

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

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

    .bridge-card {
        height: 320px;
    }

    .bridge-location {
        font-size: 1.3rem;
    }

    .bridge-info {
        padding: 1.5rem;
    }

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