* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background: #0a0a0a;
}

body.dark-mode .profile-name,
body.dark-mode .link-title,
body.dark-mode .video-heading {
    color: #ffffff;
}

body.dark-mode .link-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .main-link-button {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .main-link-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .social-icon {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-mode .social-icon:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .profile-image {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .video-container {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .link-content i {
    color: #ffffff;
}

body.dark-mode .fade-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.7) 10%, rgba(10, 10, 10, 0.95) 20%, #0a0a0a 30%);
}

body.dark-mode .main-links {
    background: #0a0a0a;
}

/* Navigation Bubble */
.nav-bubble {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 30, 60, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 100px;
    padding: 12px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bubble.scrolled {
    padding: 8px 30px;
    background: rgba(20, 30, 60, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    transition: gap 0.4s ease;
}

.nav-bubble.scrolled .nav-links {
    gap: 24px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-bubble.scrolled .nav-link {
    font-size: 14px;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-button {
    background: linear-gradient(135deg, #56ccf2 0%, #2f80ed 50%, #b24bf3 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(86, 204, 242, 0.3);
    white-space: nowrap;
}

.nav-bubble.scrolled .nav-button {
    font-size: 14px;
    padding: 8px 20px;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.1);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: none;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.1);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(20, 30, 60, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 15px;
    padding: 10px;
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dropdown-item i {
    font-size: 18px;
}

.nav-desktop-only {
    display: flex;
}

.nav-mobile-show {
    display: none;
}

/* Grid Background */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    max-width: 680px;
    width: 100%;
    padding: 120px 20px 40px;
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 20px;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 60px;
    overflow: hidden;
    border: 4px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.profile-image:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    color: #000000;
    font-size: 2.5rem;
    font-weight: 700;
    cursor: default;
    transition: transform 0.3s ease;
    display: inline-block;
}

.profile-name:hover {
    transform: scale(1.1);
}

/* Social Media Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon i {
    position: relative;
    z-index: 1;
    font-weight: 400;
}


/* Main Link Buttons */
.main-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    background: #ffffff;
    padding: 0;
    position: relative;
    z-index: 3;
}

.main-link-button {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    color: #000000;
    padding: 18px 24px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 80px;
}

.main-link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.main-link-button:hover::before {
    left: 100%;
}

.main-link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.08);
}

.link-content {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-content i {
    font-size: 28px;
    color: #000000;
    flex-shrink: 0;
}

.link-text {
    flex: 1;
}

.link-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    color: #000000;
}

.link-subtitle {
    font-weight: 400;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.4;
}

.link-image-container {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.link-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* Video Section */
.video-section {
    margin-top: 40px;
    position: relative;
}

.video-wrapper {
    position: relative;
}

.video-heading {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 50px;
    color: #000000;
    line-height: 1.3;
}

.video-heading .highlight {
    background: linear-gradient(135deg, #56ccf2 0%, #2f80ed 25%, #b24bf3 50%, #56ccf2 75%, #2f80ed 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: enchanted-gradient 3s linear infinite;
    display: inline-block;
}

@keyframes enchanted-gradient {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.fade-overlay {
    position: absolute;
    top: 520px;
    left: 0;
    width: 100%;
    height: calc(100% - 520px);
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.7) 10%, rgba(255, 255, 255, 0.95) 20%, #ffffff 30%);
    pointer-events: none;
    z-index: 0;
}

.video-label {
    position: absolute;
    top: 50%;
    left: -180px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.curved-arrow {
    width: 140px;
    height: 80px;
    color: #667eea;
    animation: wiggle-arrow 3s ease-in-out infinite;
}

.label-text {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
}

@keyframes wiggle-arrow {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(3deg) translateY(-2px);
    }
    50% {
        transform: rotate(-2deg) translateY(2px);
    }
    75% {
        transform: rotate(2deg) translateY(-1px);
    }
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 30px rgba(86, 204, 242, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

/* Latest YouTube Video Section */
.latest-video-section {
    margin-top: 60px;
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.latest-video-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000000;
    transition: color 0.3s ease;
}

body.dark-mode .latest-video-heading {
    color: #ffffff;
}

.latest-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 30px rgba(86, 204, 242, 0.3);
    background: #000000;
}

body.dark-mode .latest-video-container {
    border-color: rgba(255, 255, 255, 0.1);
}

.latest-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-heading {
        font-size: 2.5rem;
    }

    .video-label {
        display: none;
    }

    .curved-arrow {
        display: none;
    }

    .nav-desktop-only {
        display: none !important;
    }

    .nav-mobile-show {
        display: flex;
    }

    .dropdown {
        display: block;
    }

    .nav-bubble {
        flex-direction: row;
        gap: 12px;
        border-radius: 100px;
        padding: 12px 24px;
        width: auto;
        max-width: calc(100% - 40px);
    }

    .nav-links {
        flex-direction: row;
        gap: 12px;
        width: auto;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
    }

    .nav-bubble.scrolled .nav-links {
        gap: 12px;
    }

    .nav-link, .nav-button {
        width: auto;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
    }

    .nav-link {
        font-size: 13px;
    }

    .nav-button {
        font-size: 13px;
        padding: 8px 16px;
    }

    .nav-bubble.scrolled {
        padding: 12px 24px;
    }

    .nav-bubble.scrolled .nav-link {
        font-size: 13px;
    }

    .nav-bubble.scrolled .nav-button {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .video-heading {
        font-size: 2rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .link-title {
        font-size: 14px;
    }

    .link-subtitle {
        font-size: 12px;
    }

    .nav-bubble {
        max-width: calc(100% - 20px);
        top: 10px;
        padding: 10px 12px;
    }

    .nav-bubble.scrolled {
        padding: 10px 12px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-bubble.scrolled .nav-links {
        gap: 6px;
    }

    .nav-link {
        font-size: 11px;
        padding: 6px 8px;
    }

    .nav-bubble.scrolled .nav-link {
        font-size: 11px;
        padding: 6px 8px;
    }

    .nav-button {
        font-size: 11px;
        padding: 6px 12px;
    }

    .nav-bubble.scrolled .nav-button {
        font-size: 11px;
        padding: 6px 12px;
    }

    .theme-toggle {
        padding: 6px 10px;
        font-size: 16px;
    }
}