/* --- General Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    animation: blurIn 0.8s ease-out forwards;
}

@keyframes blurIn {
    0% {
        filter: blur(10px);
        opacity: 0;
    }

    100% {
        filter: blur(0);
        opacity: 1;
    }
}


/* --- Navbar --- */
nav {
    position: relative;
    width: 100%;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f0f0f;
    z-index: 1000;
}



.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    /* Removes the underline */
    cursor: pointer;
    /* Shows the hand icon on hover */
    white-space: nowrap;

}


.logo span {
    color: #00d2ff;
    /* Cyan Accent */
}

/* --- Hero Section --- */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    padding: 0 20px;
    min-height: 100vh;
    /* Keeps hero centered on first screen */
    margin: 0 auto;
}

/* --- Text Content --- */
.text-content {
    flex: 1;
    padding-right: 50px;
}

.text-content h4 {
    font-size: 20px;
    color: #00d2ff;
    font-weight: 500;
    margin-bottom: 10px;
}

.text-content h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.text-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.text-content h3 span {
    color: #00d2ff;
}

/* Cursor Animation */
.cursor {
    display: inline-block;
    background-color: #00d2ff;
    width: 3px;
    height: 35px;
    vertical-align: sub;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.text-content p {
    font-size: 16px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

/* --- Buttons --- */
.btn-box {
    margin-top: 30px;
    /* Space between icons and button */
    display: flex;
}

.btn {
    padding: 12px 28px;
    background: #00d2ff;
    color: #0f0f0f;
    border: 2px solid #00d2ff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 0 10px #00d2ff;
}

.btn:hover {
    background: transparent;
    color: #00d2ff;
    box-shadow: none;
}

/* --- Social Icons (Circles) --- */
.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid #00d2ff;
    border-radius: 50%;
    font-size: 20px;
    color: #00d2ff;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #00d2ff;
    color: #0f0f0f;
    box-shadow: 0 0 10px #00d2ff;
}

/* --- Image Section --- */
.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-bg-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.image-content img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}


@keyframes float {

    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -12px;
    }
}

/* --- Hobbies Section --- */
.hobbies-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
    /* Ensure z-index works if needed */
}

.hobbies-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    height: 600px;
    /* Give it height for absolute positioning to work relative to */
}

.hobbies-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    --fill-amount: 0%;
    font-family: 'Gravitas One', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(5rem, 18vw, 11rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(90deg,
            #00d2ff 0%,
            #00d2ff var(--fill-amount),
            transparent var(--fill-amount),
            transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 210, 255, 0.4);
    width: 100%;
    text-align: center;
    z-index: 0;
}

.hobbies-title.hobbies-full {
    background: none;
    color: #00d2ff;
    -webkit-text-stroke: 0;
}

.hobby-pill {
    position: absolute;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    color: #0f0f0f;
    transform: translate(-50%, -50%);
    background: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    cursor: pointer;
    animation: float 6s ease-in-out infinite;
    text-decoration: none;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-pill:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.8);
}

.hobby-chess {
    top: 28%;
    left: 20%;
    background: #00ff99;
    animation-delay: 0s;
}

.hobby-math {
    top: 28%;
    right: 20%;
    background: #ff8ad4;
    animation-delay: 1s;
}

.hobby-tools {
    bottom: 25%;
    left: 50%;
    background: #ffbf00;
    animation-delay: 2s;
}

.hobby-cinema {
    bottom: 30%;
    right: 25%;
    background: #7b5cff;
    animation-delay: 3s;
}

.hobby-reading {
    top: 50%;
    left: 10%;
    background: #ff3b3b;
    /* Red color as requested */
    animation-delay: 4s;
    color: #fff;
}

/* --- CONNECT PAGE STYLES --- */
.connect-container {
    width: 90%;
    max-width: 900px;
    max-width: 900px;
    margin: 40px auto;
    /* Reduced margin as nav is relative */

    text-align: center;
}

.connect-heading {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
}

.connect-heading span {
    color: #00d2ff;
}

/* Urgent Box */
.urgent-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.urgent-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.urgent-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: 0.3s;
}

.urgent-link i {
    font-size: 24px;
    color: #00d2ff;
}

.urgent-link:hover {
    color: #00d2ff;
    transform: translateY(-2px);
}

/* Split Cards Section */
.split-section {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border-top: 3px solid #333;
    transition: 0.3s;
    text-align: left;
}

/* Card Colors */
.category-card.pro {
    border-top-color: #00d2ff;
}

.category-card.casual {
    border-top-color: #ff007f;
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.category-card p {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 25px;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

/* --- BOX LINK STYLES (New) --- */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.social-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-box i {
    font-size: 22px;
}

.social-box:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

/* Brand Colors on Hover/Icon */
.sb-linkedin i {
    color: #0077b5;
}

.sb-linkedin:hover {
    border-color: #0077b5;
    box-shadow: 0 0 10px rgba(0, 119, 181, 0.2);
}

.sb-github i {
    color: #ffffff;
}

.sb-github:hover {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.sb-insta i {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sb-insta:hover {
    border-color: #d62976;
    box-shadow: 0 0 10px rgba(214, 41, 118, 0.2);
}

.sb-telegram i {
    color: #0088cc;
}

.sb-telegram:hover {
    border-color: #0088cc;
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.2);
}

.sb-snapchat i {
    color: #FFFC00;
    text-shadow: 0 0 2px rgba(255, 252, 0, 0.5);
}

.sb-snapchat:hover {
    border-color: #FFFC00;
    box-shadow: 0 0 10px rgba(255, 252, 0, 0.2);
}

.sb-chess i {
    color: #7fa650;
}

.sb-chess:hover {
    border-color: #7fa650;
    box-shadow: 0 0 10px rgba(127, 166, 80, 0.2);
}

.back-home {
    display: inline-block;
    margin-top: 50px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
}

.back-home:hover {
    color: #fff;
}

/* Responsive */

/* Responsive Design (Mobile) */
/* --- Responsive Design (Mobile Improvements) --- */
/* --- MOBILE FIXES (Final Correct Version) --- */
@media (max-width: 768px) {

    /* 1. CRITICAL FIX: Stack elements vertically (Column) instead of side-by-side */
    body {
        flex-direction: column;
        justify-content: flex-start;
        /* Starts from top */
        padding-top: 0;
        height: auto;
        /* Allows scrolling if content is long */
    }

    /* 2. Navbar Adjustment */
    nav {
        position: relative;
        width: 100%;
        padding: 20px 0;
        justify-content: center;
        margin-bottom: 10px;
        left: auto;
        transform: none;
    }


    /* 3. Hero Section Adjustment */
    .hero-container {
        flex-direction: column-reverse;
        /* Image Top, Text Bottom */
        padding-top: 0;
        margin-bottom: 40px;
    }

    /* 4. Image Resizing */
    .image-content img {
        max-width: 250px;
    }

    .image-bg-glow {
        width: 220px;
        height: 220px;
    }

    /* 5. Text Adjustments */
    .text-content {
        margin-top: 20px;
        padding: 0 15px;
    }

    .text-content h1 {
        font-size: 32px;
    }

    .text-content h3 {
        font-size: 18px;
        white-space: nowrap;
    }

    .btn-box,
    .social-icons {
        justify-content: center;
    }

    /* 6. Hobbies section mobile layout */
    .hobbies-section {
        min-height: auto;
        padding: 40px 16px 60px;
        align-items: flex-start;
        /* Align to top on mobile */
    }

    .hobbies-inner {
        max-width: 100%;
        height: auto;
        /* Reset fixed height */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hobbies-title {
        position: static;
        /* Reset absolute positioning */
        transform: none;
        width: auto;
        font-size: clamp(2.4rem, 10vw, 3.2rem);
        letter-spacing: 0.1em;
        margin-bottom: 20px;
        background: none;
        color: #00d2ff;
        -webkit-text-stroke: 0;
    }

    .hobby-pill {
        position: static;
        display: inline-flex;
        transform: none !important;
        /* Force reset including hover */
        animation: none;
        margin: 5px;
        width: 80%;
        /* Make them wide buttons on mobile for easier tapping */
        justify-content: center;
        max-width: 300px;
    }

    .hobby-pill:hover {
        transform: scale(1.02) !important;
        /* Subtle scale on mobile touch */
    }
}

/* --- NGL ANONYMOUS SECTION --- */
/* --- FORM CONTAINER (Tally) --- */
.form-container {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    /* Cyan Border */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    width: 100%;
    /* Ensure full width within parent */
    min-height: 400px;
    /* Pre-allocate space to avoid layout shift and white flash */
}

.tally-embed-container {
    width: 100%;
    min-height: 300px;
    /* Ensure iframe has space */
    background: linear-gradient(-45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    background-size: 200% 200%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



.form-container:hover {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    transform: translateY(-3px);
}

.form-container h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
}

/* --- MOVIE LIST STYLES (Cinephilia Page) --- */
.movie-list-container {
    width: 90%;
    max-width: 1000px;
    max-width: 1000px;
    margin: 40px auto 50px;
    /* Reduced top margin */

    padding: 0 20px;
}

.page-heading {
    font-size: 24px;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.5;
    color: #e0e0e0;
}

.movie-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.movie-item {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #00d2ff;
}

.movie-poster {
    flex-shrink: 0;
    width: 150px;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.movie-details h2 {
    font-size: 22px;
    margin-bottom: 5px;
    color: #fff;
}

.movie-type {
    font-size: 14px;
    color: #00d2ff;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.movie-details p {
    font-size: 15px;
    color: #b0b0b0;
    line-height: 1.6;
}

/* Mobile Responsiveness for Movie List */
@media (max-width: 600px) {
    .movie-item {
        flex-direction: column;
    }

    .movie-poster {
        width: 100%;
        height: 250px;
        /* Limit height for poster area */
    }

    .movie-details h2 {
        font-size: 20px;
    }
}

/* --- BACK BUTTON (Cinephilia) --- */
.back-link-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 50px 0 80px;
    /* ample space below */
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 40px;
    background: transparent;
    border: 2px solid #00d2ff;
    border-radius: 50px;
    color: #00d2ff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

.back-link i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.back-link:hover {
    background: #00d2ff;
    color: #0f0f0f;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    transform: translateY(-3px);
}

.back-link:hover i {
    transform: translateX(-5px);
}