:root {
    --bg-color: #470000;
    --accent-blue: #2c2c54;
    --text-primary: #ffffff;
    --font-main: 'Inria Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll globally */
}

body {
    background: var(--bg-color);
    background-image: linear-gradient(180deg, #470000 0%, #2a0000 100%);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
}

body.no-scroll,
html.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Background Elements */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Vector Positioning - Stretched */
.vector-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35vh;
    /* Responsive height */
    z-index: 2;
}

.vector-1 svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure it covers the area */
}

.vector-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35vh;
    z-index: 2;
}

.vector-2 svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SVG Styling & Animation */
svg path {
    stroke: #4a4a8a;
    stroke-width: 8px;
    opacity: 0.9;
    fill: none;
    stroke-linecap: round;
    /* CSS Variables set by JS for accurate drawing */
    stroke-dasharray: var(--path-length, 1000);
    stroke-dashoffset: var(--path-length, 1000);
    /* Animation will be triggered by JS */
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Preloader Styles */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Full viewport coverage */
    background: #470000;
    /* Fallback */
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* Increased z-index */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading svg polyline {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.loading svg polyline#back {
    fill: none;
    stroke: #e0464b33;
}

.loading svg polyline#front {
    fill: none;
    stroke: #d2494b;
    stroke-dasharray: 48, 144;
    stroke-dashoffset: 192;
    animation: dash_682 1.4s linear infinite;
}

@keyframes dash_682 {
    72.5% {
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    /* Ensure enough width for movement */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
    /* Behind profile */
    pointer-events: none;
    overflow: visible;
}

.sliding-text {
    font-size: 10vw;
    /* Adjusted size for longer text */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
    padding-right: 50px;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    /* Mobile viewport fix */
}

/* Header */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0px;
    /* Requested 0px */
    margin-bottom: 20px;
    height: 60px;
    /* Small safe margin if needed, but keeping padding 0 based on request */
}

.spider-man-btn {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(40, 40, 90, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 9.5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(5px);
}

.spider-man-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(40, 40, 100, 0.5);
}

.github-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(40, 40, 90, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Profile Section */
.profile-section {
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PROFILE LIQUID GLASS EDGE EFFECT */
.profile-circle {
    width: 45vw;
    max-width: 180px;
    height: 45vw;
    max-height: 180px;
    border-radius: 50%;

    /* Liquid Glass styling */
    background: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Strong Glass Borders */
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-left: 2px solid rgba(255, 255, 255, 0.5);

    /* Glows and Shadows */
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        /* Depth shadow */
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        /* Inner gloss */
        0 0 20px rgba(255, 255, 255, 0.1);
    /* Outer glow */

    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.profile-circle:hover {
    transform: scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2);
}

.profile-img {
    width: 100%;
    height: 300%;
    /* Start zoomed in as requested */
    object-fit: cover;
    transform: scale(1.02);
    /* Slight scale to prevent border clipping issues */
    transition: height 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* Cool smooth easing */
}

.profile-img.loaded {
    height: 100%;
}

/* Text Section */
.text-section {
    width: 100%;
    margin-bottom: 20px;
    margin-top: 10px;
    padding-left: 10px;
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.i-am {
    font-size: 8vw;
    /* Fluid */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: -17px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.name-container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.name {
    font-size: 13vw;
    /* Fluid */
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.role {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Desktop sizing caps */
@media (min-width: 500px) {
    .i-am {
        font-size: 32px;
    }

    .name {
        font-size: 50px;
    }

    .watermark {
        font-size: 90px;
    }

    .profile-circle {
        width: 180px;
        height: 180px;
    }
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 430px;
}

/* ENHANCED LIQUID GLASS EFFECT CARDS */
.glass-card {
    /* Glass Base */
    background: rgba(0, 48, 151, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;

    /* Lighting borders - stronger top/left */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);

    /* Shadows for depth */
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 8px;
    text-decoration: none;
    aspect-ratio: 1/1.1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Glossy Shine Overlay */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.05) 40%,
            transparent 100%);
    border-radius: 20px;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(0, 48, 151, 0.4);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 48, 151, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.icon-wrapper {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 8px;
    width: auto;
    height: auto;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
    z-index: 2;
}

.social-name {
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 700;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Mini Marquee for long text */
.mini-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    /* Fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.mini-sliding-text {
    display: inline-block;
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 700;
    animation: mini-marquee 5s linear infinite;
    padding-right: 20px;
}

@keyframes mini-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half way because text is doubled */
    }
}

/* Bottom elements */
.bottom-wave-container {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    position: relative;
    z-index: 10;
}

.circle-decoration {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c2c54, #1e1e40);
    position: absolute;
    bottom: 60px;
    right: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    /* 50% opacity as requested */
}

.footer-text {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.8;
    letter-spacing: 2px;
}