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

body {
    overflow: hidden;
    background: #121212;
    color: #ffffff;
    height: 100vh;
    width: 100vw;
    font-family: 'Montserrat', sans-serif;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

    /* this stops pinch‐zoom & panning on the WebGL canvas */
    touch-action: none;
}
#canvas-container canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1A2030;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-logo {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    animation: subtle-scale 2s infinite alternate;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-bar-container {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0056b3, #007bff);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.loading-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Subtle scale animation */
@keyframes subtle-scale {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.nav-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-link {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 5px;
    cursor: pointer;
}

.nav-link:hover {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

#progress-timeline {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.timeline-marker {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-marker.active {
    transform: scale(1.4);
    background: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.8);
}

/* Navigation Hints */
.navigation-hints {
    position: fixed;
    top: 108px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1s ease, transform 1s ease;
}

.navigation-hints.visible {
    opacity: 1;
    transform: translateX(0);
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.hint-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hint-icon.pinch {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007bff"><path d="M8 13v5a1 1 0 0 0 2 0v-5a1 1 0 0 0-2 0zm8-1v6a1 1 0 0 1-2 0v-6a1 1 0 0 1 2 0zm-6-2a1 1 0 0 1-1-1V5a1 1 0 0 1 2 0v4a1 1 0 0 1-1 1zm4 0a1 1 0 0 1-1-1V5a1 1 0 0 1 2 0v4a1 1 0 0 1-1 1z"/></svg>');
}

.hint-icon.scroll {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007bff"><path d="M12 2a2 2 0 0 0-2 2v4a2 2 0 1 0 4 0V4a2 2 0 0 0-2-2zm0 10a2 2 0 0 0-2 2v4a2 2 0 1 0 4 0v-4a2 2 0 0 0-2-2z"/></svg>');
}

.hint-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #ffffff;
}

/* ────────────────────────────────────────────────────────────
   3) FRAMES – allow only single‐finger vertical pan (no zoom)
──────────────────────────────────────────────────────────── */
.frame {
    /* only vertical (Y) scrolling; pinch‐zoom and two‐finger pan are blocked */
    touch-action: pan-y;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80vw;
    max-width: 800px;
    max-height: 85vh;
    padding: 2.5rem 3rem;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
    overflow-y: auto;
    margin-top: 60px;
}


.frame-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.frame-exiting {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
    pointer-events: none;
}

.raw-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: min(500px, 50vw);
    height: min(500px, 50vw);
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    pointer-events: none;
    z-index: 50;
    will-change: transform, opacity;
    margin-top: 60px;
}

.raw-logo-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.raw-logo-exiting {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
    pointer-events: none;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 2rem;
    position: relative;
    padding-top: 60px;
}

.header-text {
    flex: 1;
    text-align: start;
    width: 100%;
    margin-bottom: 2rem;
}

.profile-pic-container {
    width: min(140px, 15vw);
    height: min(140px, 15vw);
    flex-shrink: 0;
    position: absolute;
    top: 20px;
    right: 20px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #007bff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5);
}

.frame h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.frame h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.frame p {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.skill-badges {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 18px;
    font-size: 0.85rem;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-bottom: 8px;
}

.badge:hover {
    transform: scale(1.08);
    background: rgba(0, 123, 255, 0.4);
}

/* Video Container */
.video-container {
    overflow: hidden;
    -ms-touch-action: none; /* IE10+ */
    touch-action: none;     /* disable all touch gestures (scroll, pinch, etc.) on video */
}



/* ────────────────────────────────────────────────────────────
   4) VIDEO WRAPPER – swallow ALL native gestures in here
──────────────────────────────────────────────────────────── */
.responsive-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    -ms-touch-action: none;
    touch-action: none;
}


.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    -ms-touch-action: none;
    touch-action: none;
}



.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.contact-form button {
    padding: 14px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.social-orbs {
    position: fixed;
    top: 80px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 100;
}

/* assuming each orb container has a specific class */
.orb.linkedin {
    border-radius: 6px;
}

.orb.instagram {
    border-radius: 16px;
}

.orb.vimeo {
    border-radius: 32px;
}


.orb {
    width: 45px;
    height: 45px;
    background-size: contain;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
}

.orb:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.5);
}

.linkedin {
    background: url('assets/linkedin-logo.png') center/cover;
}

.instagram {
    background: url('assets/instagram-logo.png') center/cover;
}

.vimeo {
    background: url('assets/social/vimeo-logo1.png') center/cover;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.frame-locked {
    animation: pulse 2s infinite;
}

.raw-logo-locked {
    animation: pulse 2s infinite;
}

/* Immersive Mode */
.immersive-mode .nav-bar,
.immersive-mode #progress-timeline,
.immersive-mode .social-orbs,
.immersive-mode .navigation-hints {
    opacity: 0;
    pointer-events: none;
}

/* Cursor Styles */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.custom-cursor.active {
    width: 40px;
    height: 40px;
    background: rgba(0, 229, 255, 0.5);
}

.custom-cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
}

/* Device-Specific Hints */
.touch-device .hint-item.scroll-hint {
    display: none;
}

.non-touch-device .hint-item.pinch-hint {
    display: none;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
    margin-top: 1rem;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        padding: 10px 20px;
    }

    .nav-links {
        gap: 15px;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .frame {
        width: 90vw;
        padding: 1.5rem 2rem;
        max-height: 85vh;
        margin-top: 80px;
        margin-bottom:120px
    }

    .raw-logo {
        width: 50%;
        height: 50%;
        margin-top: 80px;
        margin-bottom:120px
        margin-right:80px
        margin-left:80px

    }

    .profile-pic-container {
        width: min(110px, 25vw);
        height: min(110px, 25vw);
        top: 20px;
        right: 20px;
    }

    .header-content {
        padding-top: 120px;
    }

    .social-orbs {
        top: 160px;
        flex-direction: row;
        gap: 12px;
    }

    #progress-timeline {
        width: 180px;
    }

    .tooltip {
        top: 120px;
    }

    .contact-form button {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        padding: 10px 15px;
    }

    .nav-logo {
        font-size: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .frame {
        width: 90vw;
        padding: 1.5rem 2rem;
        max-height: 60vh;
        margin-top: 40px; /* Reduced from 80px to move the frame up */
        margin-bottom: 80px;
        touch-action: pan-y;
    }

    .social-orbs {
        top: 108px;
        gap: 10px;
    }

    .orb {
        width: 32px;
        height: 32px;
    }

    #progress-timeline {
        width: 150px;
    }

    .profile-pic-container {
        width: min(90px, 20vw);
        height: min(90px, 20vw);
        top: 16px; /* Adjusted to match the new padding-top of .header-content */
    }

    .header-content {
        padding-top: 16px; /* Reduced from 100px to move content up */
    }
}

}
