/* Global Vars */
:root {
    --bg-dark: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-purple: #bb86fc;
    --accent-pink: #ff7597;
    --accent-blue: #00d4ff;
    --accent-orange: #ffab40;
    --font-main: 'Outfit', sans-serif;
}

[data-theme="light"] {
    --bg-dark: #f0f2f5;
    --bg-gradient: linear-gradient(135deg, #e0e7ff, #f0f4f8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    /* More opaque for light mode */
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-purple: #9d4edd;
    /* Darker purple for contrast */
    --accent-blue: #0096c7;
    /* Invert card backgrounds for readability */
}

/* Fix text colors inside inputs for light mode */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .background-mesh::before {
    /* Different overlay for light mode */
    background-image:
        radial-gradient(circle at 20% 30%, rgba(157, 78, 221, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 199, 0.1) 0%, transparent 40%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    /* Fallback */
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Mesh Animation */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.background-mesh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(187, 134, 252, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.15) 0%, transparent 40%);
    filter: blur(40px);
}

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

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

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    height: 90vh;
    /* Fixed height for dashboard feel, auto on mobile */
}

/* Glassmorphism Generic */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Profile Sidebar */
.profile-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(187, 134, 252, 0.4);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--accent-purple);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #00ff88;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
    box-shadow: 0 0 10px #00ff88;
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    display: inline-block;
}

.contact-info,
.dashboard-actions {
    width: 100%;
    margin-bottom: auto;
    /* Pushes content up */
}

.info-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.info-item:hover {
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.4);
}

.info-item i {
    font-size: 1.2rem;
    color: var(--accent-purple);
}

.info-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Main Content Area */
.content-area {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--accent-purple);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

.views-container {
    flex: 1;
    position: relative;
    padding: 2rem;
    overflow-y: auto;
    /* Allow scrolling within content if needed */
}

.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-pink), transparent);
}

.bio {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #ddd;
    max-width: 800px;
}

.mt-large {
    margin-top: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s;
    cursor: default;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.icon-box.purple {
    background: rgba(187, 134, 252, 0.2);
    color: var(--accent-purple);
}

.icon-box.orange {
    background: rgba(255, 171, 64, 0.2);
    color: var(--accent-orange);
}

.icon-box.pink {
    background: rgba(255, 117, 151, 0.2);
    color: var(--accent-pink);
}

.icon-box.blue {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-blue);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Form */
.contact-intro {
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent-pink);
    font-style: italic;
    font-weight: 500;
}

.contact-form {
    max-width: 600px;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    width: fit-content;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(187, 134, 252, 0.4);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        height: auto;
        padding: 1rem;
    }

    .profile-card {
        flex-direction: column;
        flex-wrap: nowrap;
        text-align: center;
        align-items: center;
        padding: 2rem 1rem;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
        margin-right: 0;
    }

    .profile-header {
        margin-right: 0;
        width: 100%;
    }

    .contact-info {
        display: none;
        /* Hide dense info on mobile top view, maybe move to bottom? */
    }

    .dashboard-actions {
        display: flex;
        flex-direction: column;
        /* Stack buttons vertically for better space */
        gap: 0.8rem;
        width: 100%;
        margin-top: 1rem;
    }

    .dashboard-actions .submit-btn {
        margin-bottom: 0 !important;
        font-size: 0.95rem;
        padding: 1rem;
        width: 100% !important;
        /* Full width */
    }

    .social-links {
        margin-top: 0;
        justify-content: center;
        /* Center social icons */
    }

    /* Mobile Navigation Bar */
    .nav-tabs {
        display: flex;
        width: 100%;
        margin: 1.5rem 0;
        background: transparent;
        /* Remove container bg on mobile for cleaner look */
        border: none;
        padding: 0;
        border-radius: 0;
        overflow-x: visible;
        /* No scroll, allow wrap */
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .nav-btn {
        flex: 0 0 auto;
        /* Don't force stretch */
        justify-content: center;
        padding: 0.8rem 1.2rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.05);
        /* Individual button backgrounds */
        white-space: nowrap;
        font-size: 0.9rem;
        margin: 0;
    }

    .nav-btn.active {
        background: var(--accent-purple);
        color: #000;
        box-shadow: 0 4px 15px rgba(187, 134, 252, 0.4);
    }
}

@media (max-width: 600px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .avatar-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .profile-header {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

/* hCaptcha Customization */
.h-captcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    transition: transform 0.2s;
}

.h-captcha iframe {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ... existing styles ... */

/* REFINED PROFILE STYLES */
.avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 2rem;
    padding: 5px;
    /* Space for gradient border */
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(187, 134, 252, 0.3);
    animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(187, 134, 252, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
    }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    /* Creates separation from gradient */
    object-fit: cover;
    background: var(--bg-dark);
}

.status-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #00ff88;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.5);
    z-index: 2;
}

/* REFINED NAVIGATION STYLES */
/* Remove old nav styling to override cleanly */
.nav-tabs {
    display: inline-flex;
    /* Shrink to fit content */
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 50px;
    /* Pill shape container */
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 1.5rem 2rem;
    /* Add margin around it */
    gap: 0;
    /* Removing gap, using padding on items */
    width: fit-content;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    /* Pill shape buttons */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    /* For links */
    margin: 0;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    /* Subtle hover */
}

/* Active State - Soft Glow Pill */
.nav-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn.active i {
    color: var(--accent-purple);
}

/* Responsive fixes for new nav */