@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --bgim: url("background4.jpeg") no-repeat center / cover;
    --max-width: 900px;
    --bg: #caf0f8;
    --muted: #9ca3af;
    --fg: #000000;
    --fg2: black;
    --bg2: #e9f5ff;
    font-family: "Google Sans Code", monospace;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    --hg: rgb(46, 183, 183);
    --bg3: linear-gradient(to bottom, #82c9d0a9, #4161928f);
    --line: #8492a6c0;
    --a: rgb(24, 76, 104);
}

body.dark-mode {
    --bgim: url("background3.jpeg") no-repeat center / cover;
    --bg: #03045e;
    --fg: #ffffff;
    --fg2: white;
    --muted: #555;
    --bg2: #1f3540;
    --hg: #4d57ea;
    --bg3: linear-gradient(to bottom, #0f5f63a4, #0b16458f);
    --line: #53565bc0;
    --a: rgb(10, 28, 38);

}

body {
    font-family: "Google Sans Code", monospace;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    background: var(--bg);
    color: var(--fg);
    background: var(--bgim);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.hidden {
    display: none;
}

.navbar {
    margin-top: 15px;
    transform: rotate(-1deg);
    backdrop-filter: blur(10px);
    background-color: var(--bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    align-items: center;
    transition: transform .15s ease, box-shadow .15s ease;
    transition:
        transform 0.3s cubic-bezier(.25, .46, .45, .94),
        box-shadow 0.3s cubic-bezier(.25, .46, .45, .94);
}

.navbar-button {
    color: var(--fg2);
    font-family: "Google Sans Code", monospace;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    background: var(--bg);
    border: none;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-button a {
    color: var(--fg);
    text-decoration: none;
    padding: 14px 20px;
    font-size: 14px;

}

.navbar:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 10px 05px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.navbar-button:hover {
    cursor: pointer;
    background: #48cae46f;
    border-radius: 5px;
    transform: scale(1.07);
}

.toggle_button {
    width: 2%;
    height: 2%;
    cursor: pointer;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
    border: none;
    background: var(--fg2);
}

.toggle_button:hover {
    transform: scale(1.05);
    background: white;
}

.content {
    display: block;
    box-sizing: border-box;
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    padding: 1rem;
}

li::marker {
    content: "‣ ";
    color: var(--fg);
}

.club-link {
    text-decoration: none;
    color: var(--a);
}

.club-link:hover {
    text-decoration: underline;
    transform: scale(1.07);
}

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


.project-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s;
    transform: rotate(-2deg);
    background-color: #00b4d83a;
    backdrop-filter: blur(5px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.project-card .context-tag {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 500;
    background-color: #d1c4e9;
    color: #4527a0;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 10px 0 20px 0;
}

.project-card:nth-child(even) {
    transform: rotate(2deg);
}

.project-card:hover {
    transform: scale(1.1) rotate(0deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img {
    border-radius: 10px;
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

@keyframes pulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 1.5rem;
}

.project-content p {
    color: #4b5563;
    font-size: 1.1rem;
}

.project-repo {
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    margin-bottom: 8px;
    text-decoration: none;
    padding: 3px 8px;
    color: var(--fg);
    background: gray;

}

footer {
    position: relative;
    background: linear-gradient(to bottom, #0096c7, #023e8a);
    overflow: hidden;
    padding-top: 170px;
}

.ocean {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2300bfff" fill-opacity="0.5"/></svg>') repeat-x;
    animation: wave-animation 15s linear infinite;
}

.wave2 {
    bottom: -20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2300a8e8" fill-opacity="0.7"/></svg>') repeat-x;
    animation: wave-animation 20s linear infinite reverse;
}

.wave3 {
    bottom: -40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%230099d1" fill-opacity="0.9"/></svg>') repeat-x;
    animation: wave-animation 25s linear infinite;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }

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

.footer-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    color: white;
    font-size: 1.1rem;
}

.footer-content p {
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-links {
    text-decoration: none;
    color: white;
}

.footer-links:hover {
    text-decoration: underline;
    transform: scale(1.07);
}

.footer-content form {
    max-width: 420px;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-content label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-content input,
.footer-content textarea {
    width: 94%;
    padding: 10px 12px;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.95rem;
    backdrop-filter: blur(6px);
}

.footer-content input:focus,
.footer-content textarea:focus {
    border-color: #90e0ef;
    box-shadow: 0 0 0 2px rgba(144, 224, 239, 0.3);
}

.footer-content button {
    width: 100%;
    margin-top: 0.6rem;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #48cae4, #00b4d8);
    color: #023e8a;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 180, 216, 0.4);
}

.footer-content ::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.type {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid currentColor;
    animation:
        blink_1 1s steps(1, end) infinite,
        typing 2s steps(63, end) forwards;
}

@keyframes typing {
    0% {
        width: 0
    }

    100% {
        width: 63ch
    }
}

.type_2 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid currentColor;
    animation:
        blink_1 1s steps(1, end) infinite,
        typing_2 1s steps(37, end) forwards;
    animation-delay: 4s;
    animation-fill-mode: both;
}

@keyframes typing_2 {
    0% {
        width: 0
    }

    100% {
        width: 37ch
    }
}

.type_3 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid currentColor;
    animation:
        blink_1 1s steps(1, end) infinite,
        typing_3 1s steps(26, end) forwards;
    animation-delay: 7s;
    animation-fill-mode: both;
}

@keyframes typing_3 {
    0% {
        width: 0
    }

    100% {
        width: 26ch
    }
}

.type_1 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid currentColor;
    animation:
        blink_1 1s steps(1, end) infinite,
        typing_1 4s steps(99, end) forwards;
    animation-delay: 10s;
    animation-fill-mode: both;
}

@keyframes typing_1 {
    0% {
        width: 0
    }

    100% {
        width: 99ch
    }
}

.type_4 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid currentColor;
    animation:
        blink_1 1s steps(1, end) infinite,
        typing_4 4s steps(100, end) forwards;
    animation-delay: 15s;
    animation-fill-mode: both;
}

@keyframes typing_4 {
    0% {
        width: 0
    }

    100% {
        width: 100ch
    }
}


@keyframes blink_1 {
    0% {
        border-color: transparent
    }

    50% {
        border-color: var(--fg);
    }

    100% {
        border-color: transparent
    }
}

.delay-text {
    opacity: 0;
    animation: slide-in 0.8s ease-out forwards;
    animation-delay: 2s;
}


.delay-text_2 {
    opacity: 0;
    animation: slide-in 0.8s ease-out forwards;
    animation-delay: 5s;
}

.delay-text_3 {
    opacity: 0;
    animation: slide-in 0.8s ease-out forwards;
    animation-delay: 8s;
}

.delay-text_4 {
    opacity: 0;
    animation: slide-in 0.8s ease-out forwards;
    animation-delay: 14s;
}

.delay-text_5 {
    opacity: 0;
    animation: slide-in 0.8s ease-out forwards;
    animation-delay: 19s;
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

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

.image {
    animation: slide-in 0.8s ease-out forwards;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.home-image {
    width: 300%;
    height: auto;
    margin-top: 5px;
    animation: bouncing 3s ease-out infinite;
}

@keyframes bouncing {

    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.3));
    }

    50% {
        transform: translateY(-30px);
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    }
}

#skipOverlay {
    border-radius: 8px;
    background-color: #00b4d899;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 375px;
    left: 0;
    right: 0;
    color: var(--fg);
    padding: 15px;
    text-align: center;
    font-size: 1em;
    animation: bouncing 3s ease-out infinite;
}

.favicon-link {
    text-decoration: none;
    color: var(--a);
}

.favicon-link:hover {
    transform: scale(1.8);
    text-decoration: underline;
}

.highlight {
    background: linear-gradient(#0077b6, #0077b6);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    animation: highlighted 1.5s ease-out 1s forwards;
    padding: 2px 4px;
}

@keyframes highlighted {
    to {
        background-size: 100% 100%;
        color: white;
    }
}

.skill {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 auto;
}

.skill-tech,
.skill-tool,
.skill-robotics {
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.skill-tech {
    background: #48cae4b1;
}

.skill-tool {
    background: #0095c7d4;
}

.skill-robotics {
    background: #023e8ab1;
}

.skill-tech:hover,
.skill-tool:hover,
.skill-robotics:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.popup {
    position: fixed;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #00b4d83a;
    backdrop-filter: blur(5px);
    color: var(--fg);
    padding: 20px;
    border-radius: 10px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff6b6b;
}

.popup.show {
    display: block;
}


.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}


.destination-card {
    background: #00b4d83a;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--fg);
    display: block;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.destination-card:hover .card-image::before {
    background: rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--fg);
}

.card-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    /* background: linear-gradient(135deg, #48cae442 0%, #0095c76f 100%); */
    background: #0095c76f;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    transition: opacity 0.3s;
    /* font-weight: bold; */
    font-size: 0.9rem;
}

.read-more:hover {
    opacity: 0.8;
}




.music-widget {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
    max-width: 350px;
    font-family: Courier, monospace;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    backdrop-filter: blur(10px);
}

.music-widget:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--hg);
    font-size: 12px;
    font-weight: bold;
}

.status-icon {
    width: 14px;
    height: 14px;
}

.track-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.album-art {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    border: 1px solid var(--line);
    object-fit: cover;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    color: var(--fg);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    display: block;
}

.track-name:hover {
    color: var(--hg);
    text-decoration: underline;
}

.track-artist {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-album {
    color: var(--muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-indicator {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--hg);
}

.equalizer {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 12px;
}

.bar {
    width: 2px;
    background: var(--hg);
    border-radius: 2px;
    animation: bounce 1s ease-in-out infinite;
}

.bar:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.bar:nth-child(2) {
    height: 12px;
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    height: 6px;
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

.loading {
    text-align: center;
    padding: 30px;
    color: var(--muted);
    font-size: 12px;
}

.spinner {
    border: 2px solid var(--line);
    border-top: 2px solid var(--hg);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.error-state {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}