:root {
    --primary-gold: #D4AF37;
    --gold-light: #F4E4C1;
    --gold-dark: #B8941E;
    --black-pure: #000000;
    --black-soft: #0A0A0A;
    --black-medium: #1A1A1A;
    
    --bg-color: #F5F5F5;
    --text-color: #1A1A1A;
    --text-muted: #666666;
    --nametext-color: #000000;
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 30px rgba(212, 175, 55, 0.2);
    --accent-color: #D4AF37;
    --border-color: rgba(212, 175, 55, 0.22);
    --border-color-hover: rgba(212, 175, 55, 0.6);
    --nav-bg: rgba(245, 245, 245, 0.88);
    --icon-bg: rgba(212, 175, 55, 0.08);
    --tag-bg: rgba(212, 175, 55, 0.08);
    --badge-bg: rgba(212, 175, 55, 0.15);
}

.dark-mode {
    --bg-color: #0A0A0A;
    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;
    --nametext-color: #F4E4C1;
    --card-bg: #141414;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    --card-shadow-hover: 0 10px 30px rgba(212, 175, 55, 0.25);
    --accent-color: #D4AF37;
    --border-color: rgba(212, 175, 55, 0.25);
    --border-color-hover: rgba(212, 175, 55, 0.7);
    --nav-bg: rgba(10, 10, 10, 0.88);
    --icon-bg: rgba(212, 175, 55, 0.12);
    --tag-bg: rgba(212, 175, 55, 0.12);
    --badge-bg: rgba(212, 175, 55, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Minimalist futuristic grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.dark-mode body::before {
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.07) 1px, transparent 1px);
}

/* Ambient pulsating gold glow */
body::after {
    content: '';
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
}

.dark-mode body::after {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Top Branding Navigation Bar */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    background: #0A0A0A;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.dark-mode .nav-brand {
    background: #141414;
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-brand:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px) scale(1.02);
}

.nav-brand img {
    height: 26px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-brand:hover img {
    transform: scale(1.04);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--nametext-color);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--icon-bg);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--accent-color);
    color: #FFFFFF;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
    background: var(--icon-bg);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.theme-toggle-btn:hover {
    transform: rotate(30deg) scale(1.08);
    background: var(--accent-color);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.dark-mode .theme-toggle-btn:hover {
    color: #000000;
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.4s ease;
}

/* Main Container */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 84px;
}

.container {
    max-width: 660px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 50px;
    position: relative;
    z-index: 1;
}

/* Profile Header Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

/* Profile Image with Pulsing Ambient Glow */
.profile-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.profile-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: avatarPulse 4s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes avatarPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.profile-image {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.profile-image:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 36px rgba(212, 175, 55, 0.4);
}

.profile-name {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--nametext-color) 20%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Skills/Tags List */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.skill-tag {
    background: var(--tag-bg);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.dark-mode .skill-tag:hover {
    color: #000000;
}

/* Links Container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

/* Modern Portfolio-Style Link Cards */
.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent);
    transition: width 0.4s ease;
    z-index: 0;
}

.link-card:hover::before {
    width: 100%;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--border-color-hover);
    border-top-color: var(--accent-color);
}

/* Link Icon Box */
.link-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--icon-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.link-icon-box svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-color);
    transition: transform 0.3s ease;
}

.link-card:hover .link-icon-box {
    background: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.link-card:hover .link-icon-box svg {
    fill: #FFFFFF;
}

.dark-mode .link-card:hover .link-icon-box svg {
    fill: #000000;
}

/* Link Content Text */
.link-content {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.link-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.link-title {
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.2px;
    color: var(--nametext-color);
    transition: color 0.3s ease;
}

.link-card:hover .link-title {
    color: var(--accent-color);
}

.link-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--badge-bg);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

.link-badge.coming-soon {
    background: rgba(150, 150, 150, 0.15);
    color: var(--text-muted);
    border-color: rgba(150, 150, 150, 0.25);
}

.link-description {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.link-card:hover .link-description {
    color: var(--text-color);
}

/* Link Action Indicator Arrow */
.link-action {
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.link-action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.link-card:hover .link-action {
    opacity: 1;
    transform: translateX(3px) translateY(-3px);
}

/* Social Links Section */
.social-section {
    margin-bottom: 24px;
    text-align: center;
}

.social-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-color);
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
}

.social-title::before,
.social-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--border-color);
}

.social-title::before {
    right: 100%;
    margin-right: 10px;
}

.social-title::after {
    left: 100%;
    margin-left: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--icon-bg);
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease, fill 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: var(--accent-color);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.dark-mode .social-btn:hover {
    color: #000000;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px 20px;
    position: relative;
    border-top: 1px solid transparent;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

.footer-text span {
    color: var(--accent-color);
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .main-wrapper {
        padding-top: 74px;
    }

    .container {
        padding: 20px 16px 40px;
    }

    .profile-image {
        width: 90px;
        height: 90px;
    }

    .profile-image-bg {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-title {
        font-size: 0.88rem;
    }

    .link-card {
        padding: 14px 16px;
    }

    .link-icon-box {
        width: 38px;
        height: 38px;
        margin-right: 12px;
    }

    .link-icon-box svg {
        width: 18px;
        height: 18px;
    }

    .link-title {
        font-size: 0.95rem;
    }

    .link-description {
        font-size: 0.78rem;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }

    .social-btn svg {
        width: 16px;
        height: 16px;
    }
}
