/* --- VARIABLES --- */
        :root {
            /* DARK MODE (DEFAULT) */
            --primary-bg: #0f172a;
            --accent-color: #0ea5e9;
            --gold-color: #fbbf24;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            
            /* Background Gradients & Orbs */
            --bg-grad-1: rgb(16, 36, 70);
            --bg-grad-2: rgb(15, 23, 42);
            --orb-1-color: rgba(14, 165, 233, 0.2);
            --orb-2-color: rgba(8, 145, 178, 0.15);

            /* Glassmorphism */
            --glass-bg: rgba(255, 255, 255, 0.05);
            --card-bg: rgba(30, 41, 59, 0.6);
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-hover: rgba(255, 255, 255, 0.1);
            --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        }

        /* LIGHT MODE OVERRIDES */
        [data-theme="light"] {
            --primary-bg: #f8fafc;
            --accent-color: #0284c7; /* Darker blue for contrast */
            --text-main: #1e293b;
            --text-muted: #64748b;

            /* Light Gradients */
            --bg-grad-1: #e0f2fe;
            --bg-grad-2: #f1f5f9;
            --orb-1-color: rgba(14, 165, 233, 0.25);
            --orb-2-color: rgba(251, 191, 36, 0.2);

            /* Light Glass */
            --glass-bg: rgba(255, 255, 255, 0.8);
            --card-bg: rgba(255, 255, 255, 0.65);
            --glass-border: rgba(255, 255, 255, 0.6);
            --glass-hover: rgba(255, 255, 255, 0.9);
            --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
        }

        /* --- RESET & BASIC --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--primary-bg);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow-x: hidden;
            position: relative;
        }

        /* --- ANIMATED BACKGROUND --- */
        .bg-gradient {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: radial-gradient(circle at 10% 20%, var(--bg-grad-1) 0%, var(--bg-grad-2) 90%);
            transition: background 0.5s ease;
        }

        .orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            z-index: -1;
            animation: float 10s infinite ease-in-out alternate;
            transition: background 0.5s ease;
        }

        .orb-1 {
            width: 300px;
            height: 300px;
            background: var(--orb-1-color);
            top: -50px;
            left: -50px;
        }

        .orb-2 {
            width: 400px;
            height: 400px;
            background: var(--orb-2-color);
            bottom: -100px;
            right: -100px;
            animation-delay: -5s;
        }

        @keyframes float {
            0% { transform: translate(0, 0); }
            100% { transform: translate(30px, 50px); }
        }

        /* --- THEME TOGGLE BUTTON --- */
        .theme-toggle-btn {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 100;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            font-size: 1.2rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .theme-toggle-btn:hover {
            transform: scale(1.1) rotate(15deg);
            background: var(--glass-hover);
        }

        /* --- CONTAINER --- */
        .container {
            width: 100%;
            max-width: 480px;
            padding: 3rem 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 1;
        }

        /* --- PROFILE SECTION --- */
        .profile-section {
            text-align: center;
            margin-bottom: 2.5rem;
            width: 100%;
            margin-top: 1rem; /* Space for toggle button on mobile */
        }

        .avatar-wrapper {
            position: relative;
            width: 120px;
            height: 120px;
            margin: 0 auto 1.5rem;
        }

        .my-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
            transition: transform 0.3s ease;
        }
        
        /* Light mode avatar border adjustment */
        [data-theme="light"] .my-photo {
            border-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 10px 25px rgba(14, 165, 233, 0.2);
        }

        .avatar-wrapper:hover .my-photo {
            transform: scale(1.05);
            border-color: var(--accent-color);
        }

        h1.title {
            font-family: 'Outfit', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            letter-spacing: -0.5px;
            background: linear-gradient(to right, var(--text-main), var(--text-muted));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        p.slogan {
            font-size: 0.95rem;
            color: var(--text-muted);
            line-height: 1.5;
            font-weight: 400;
            padding: 0 10px;
        }

        /* --- SOCIAL MEDIA ROW --- */
        .social-row {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .social-btn {
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            color: var(--text-main);
            text-decoration: none;
            font-size: 1.25rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--card-shadow);
        }

        .social-btn:hover {
            background: var(--glass-hover);
            transform: translateY(-3px);
            color: var(--accent-color);
            border-color: var(--accent-color);
            box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
        }

        /* --- LINKS LIST --- */
        .links-list {
            width: 100%;
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .link-card {
            position: relative;
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            cursor: pointer;
            box-shadow: var(--card-shadow);
        }

        .link-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--accent-color);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .link-card:hover {
            transform: scale(1.02);
            background: var(--glass-hover);
            border-color: rgba(14, 165, 233, 0.3);
        }

        .link-card:hover::before {
            opacity: 1;
        }

        .link-icon-box {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(14, 165, 233, 0.1);
            border-radius: 10px;
            margin-right: 1rem;
            font-size: 1.2rem;
            color: var(--accent-color);
            transition: background 0.3s ease;
        }

        .link-card:hover .link-icon-box {
            background: var(--accent-color);
            color: #fff;
        }

        .link-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .link-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-main);
        }

        .link-subtitle {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .link-action-btn {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: var(--text-muted);
            font-size: 1rem;
            transition: all 0.2s ease;
            z-index: 2; /* Ensure clickable */
        }
        
        .link-action-btn:hover {
            background: rgba(125, 125, 125, 0.2);
            color: var(--text-main);
        }

        /* --- FOOTER --- */
        .footer {
            margin-top: 3rem;
            text-align: center;
            opacity: 0.6;
            font-size: 0.8rem;
            color: var(--text-main);
        }

        .footer img {
            height: 30px;
            margin-bottom: 0.5rem;
            filter: grayscale(100%) brightness(200%);
        }
        
        [data-theme="light"] .footer img {
            filter: grayscale(100%) brightness(0%); /* Dark logo for light mode */
        }

        /* --- TOAST --- */
        #toast-container {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            pointer-events: none;
        }

        .toast {
            background: var(--primary-bg);
            color: var(--text-main);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-size: 0.9rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- PRELOADER --- */
        #preloader {
            position: fixed;
            inset: 0;
            background: var(--primary-bg);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loader {
            width: 48px;
            height: 48px;
            border: 3px solid rgba(125, 125, 125, 0.2);
            border-radius: 50%;
            border-top-color: var(--accent-color);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .hidden {
            opacity: 0;
            visibility: hidden;
        }