/* Reset & Base Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* SLEEK CUSTOM SCROLLBARS */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.8);
}

html {
    background-color: #0f172a; /* Match the dark theme so overscroll is not white */
}

body {
    font-family: 'Poppins', sans-serif;
    /* Animated Deep Space Gradient */
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #1e1b4b, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #f8fafc;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Allows physical clicks to pass down to elements */
}

/* Center Layout Wrapper */
#wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 1;
    position: relative;
    width: 100%;
}

/* =========================================================================
   3. MAIN CARD & MODAL (RELIABLE OVERLAY MENU)
   ========================================================================= */

/* The Glassmorphism Card Main Container */
#main {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 950px;
    width: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 50px;
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* =========================================================================
   MODAL / POPUP OVERLAY SETTINGS
   ========================================================================= */
   
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 9, 20, 0.85); /* Deep dark fade */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box Redesign - Ultimate Premium Feel */
.modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.4); /* Purple glow border */
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 45px;
    width: 90%;
    max-width: 550px;
    transform: translateY(40px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle Animated Background Glow inside Modal */
.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    animation: rotateGlow 15s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-content > * {
    position: relative;
    z-index: 1;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Left Side: Visual Profile Details */
.profile-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 50px;
    /* Vanilla-Tilt pop effect */
    transform: translateZ(30px);
}

.avatar-container {
    position: relative;
    margin-bottom: 25px;
}

.avatar img {
    border-radius: 50%;
    width: 190px;
    height: 190px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Glowing ring pulse */
.avatar-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #818cf8;
    border-radius: 50%;
    animation: pulseRing 2.5s infinite;
    opacity: 0;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

h1 {
    font-size: 2.2em;
    font-weight: 700;
    /* Beautiful vivid gradient text */
    background: linear-gradient(135deg, #a5b4fc, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.location {
    color: #94a3b8;
    font-weight: 300;
    font-size: 1.1em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Social Icons Overhaul */
.social-icons {
    display: flex;
    gap: 15px;
    list-style: none;
}

.social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.2em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Liquid filling hover effect */
.social-icons li a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
    z-index: -1;
}

.social-icons li a.wa::before {
    background: #25D366;
}

.social-icons li a.tg::before {
    background: #0088cc;
}

.social-icons li a.ig::before {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icons li a.fb::before {
    background: #1877F2;
}

.social-icons li a:hover::before {
    top: 0;
}

.social-icons li a:hover {
    transform: translateY(-8px) scale(1.15);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Right Side: Identity Core About Me */
.content-side {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-side h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 25px;
    line-height: 1.2;
}

.content-side h2 .prefix {
    display: block;
    font-size: 0.5em;
    color: #a5b4fc;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Dynamic Greeting Animation Styles */
#dynamic-greeting {
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

/* The Call to Action "Flip" Button */
.flip-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4), inset 0 2px 0 rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-self: flex-start;
    margin-top: 30px;
}

.flip-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6), inset 0 2px 0 rgba(255,255,255,0.4);
}

.flip-btn i {
    transition: transform 0.4s ease;
}

.flip-btn:hover i {
    transform: translateX(5px);
}

/* New Bio Container Section in Modal */
.bio-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* Redesigned AI/Identity Banner inside Modal */
.modal-identity-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px dashed rgba(139, 92, 246, 0.5);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.modal-identity-banner img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #a5b4fc;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.modal-identity-banner p {
    color: #f8fafc;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.4;
}

.modal-identity-banner span {
    color: #c084fc;
    font-weight: 600;
}

.bio-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 20px;
    border: 1px inset rgba(255, 255, 255, 0.05);
}

.bio-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.bio-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bio-item strong {
    color: #a5b4fc;
    font-size: 0.85em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bio-item span {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    text-align: left;
}

.badge-age {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
    color: #fff !important;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em !important;
    font-weight: 700 !important;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 5px 15px rgba(244, 63, 94, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Direct Contact CTA Buttons */
.contact-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.contact-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.contact-btn i {
    font-size: 1.3em;
}

.btn-wa {
    background: linear-gradient(135deg, #128c7e, #25D366);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.5);
}

.btn-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}

.btn-ig:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(220, 39, 67, 0.5);
}

/* Interactive Quote Container */
.typed-container {
    min-height: 150px;
    max-height: 150px; /* Lock height to prevent jumping */
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    font-size: 1.15em;
    line-height: 1.8;
    color: #cbd5e1;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Decorative Quote Mark */
.typed-container::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.05);
}

.typed-cursor {
    font-size: 1.2em;
    color: #a5b4fc;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.date-est {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Premium Animated Footer */
#footer {
    text-align: center;
    padding: 15px 30px;
    z-index: 10;
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Forcing Absolute Centering for Desktop */
    display: block;
    margin: 0 auto;
    width: fit-content;
    max-width: 90%;
    transition: all 0.4s ease;
}

#footer:hover {
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

#footer p {
    color: #94a3b8;
    font-size: 0.9em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.pulse-heart {
    color: #ef4444; /* Vivid Red */
    font-size: 1.1em;
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
}

#footer span {
    font-weight: 700;
    background: linear-gradient(135deg, #a5b4fc, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* =========================================================================
   ADVANCED PREMIUM FEATURES: PRELOADER & CUSTOM CURSOR
   ========================================================================= */

/* 1. Initialization Splash Screen (Preloader) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050810;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-brand {
    font-size: 2.5em;
    font-weight: 800;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #a5b4fc, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseLogo 2s infinite alternate;
}

@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(165, 180, 252, 0.4)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(244, 114, 182, 0.8)); }
}

.progress-bar-container {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 10px;
    box-shadow: 0 0 10px #a855f7;
    animation: loadProgress 2.5s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

.loader-text {
    font-size: 0.85em;
    color: #94a3b8;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: blinkText 1s infinite alternate;
}

@keyframes blinkText {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Custom cursor disabled - using default browser cursor */
.cursor-dot,
.cursor-outline {
    display: none;
}



@media screen and (max-width: 850px) {
    #main {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        gap: 20px;
    }

    /* Remove Desktop Vertical Border and Tilt Properties */
    .profile-side {
        border-right: none;
        padding-right: 0;
        transform: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
        width: 100%;
    }

    /* Ensure children inside profile are perfectly centered */
    .location {
        justify-content: center;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Center text and button on the right side */
    .content-side {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .flip-btn {
        align-self: center; /* Override desktop's flex-start */
        margin-top: 20px;
        width: 100%; /* Full width on mobile */
        justify-content: center;
    }

    /* Center action buttons container on mobile */
    .action-buttons {
        justify-content: center !important;
        align-items: stretch !important;
        flex-direction: column !important;
        width: 100%;
    }

    .action-buttons .flip-btn {
        width: 100%;
        text-align: center;
        margin-top: 0 !important;
    }

    .modal-content {
        padding: 40px 20px;
        width: 95%;
    }

    .contact-actions {
        flex-direction: column;
    }
}
