/*RESET & VARIABLES*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f0c1f;
    --bg-card: rgba(20, 15, 45, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a8a8c0;
    
    /* GOLD & SILVER ACCENTS */
    --accent-primary: #fbbf24;
    --accent-secondary: #9ca3af;
    --accent-glow: rgba(251, 191, 36, 0.4);
    --border-glow: rgba(251, 191, 36, 0.3);
    --chip-bg: rgba(255, 255, 255, 0.08);
    --chip-hover: rgba(251, 191, 36, 0.15);
}

body.light {
    --bg-dark: #f0f0f8;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1a2e;
    --text-secondary: #6b6b8a;
    
    /* GOLD & SILVER for Light Mode */
    --accent-primary: #d97706;
    --accent-secondary: #6b7280;
    --accent-glow: rgba(217, 119, 6, 0.2);
    --border-glow: rgba(217, 119, 6, 0.2);
    --chip-bg: rgba(0, 0, 0, 0.05);
    --chip-hover: rgba(217, 119, 6, 0.12);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    position: relative;
}

/*ANIMATED GRADIENT BACKGROUND*/
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb1 {
    width: 400px;
    height: 400px;
    background: #fbbf24;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb2 {
    width: 500px;
    height: 500px;
    background: #d4d4d8;
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb3 {
    width: 300px;
    height: 300px;
    background: #f59e0b;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/*STATS CARD*/
.stats-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid var(--border-glow);
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    background: var(--border-glow);
}

/*THEME TOGGLE*/
.theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

/*PROFILE HEADER*/
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fbbf24, #d4d4d8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light .name {
    background: linear-gradient(135deg, #d97706, #6b7280);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.badge-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: var(--chip-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    backdrop-filter: blur(5px);
}

/*QUOTE WIDGET*/
.quote-widget {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid var(--border-glow);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.quote-icon {
    color: var(--accent-primary);
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.quote-widget p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quote-widget span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/*FEATURED SECTION*/
.featured-section {
    margin-bottom: 2rem;
}

.featured-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

   .featured-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(156, 163, 175, 0.1));
    border-radius: 1.5rem;
    border: 1px solid var(--border-glow);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.featured-icon {
    width: 48px;
    height: 48px;
    background: var(--chip-bg);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.featured-info {
    flex: 1;
}

.featured-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.featured-info p {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.featured-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-arrow {
    transform: translateX(5px);
    color: var(--accent-primary);
}

/*LINKS GRID*/
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.link-chip {
    background: var(--chip-bg);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.25s ease;
}

.link-chip i {
    font-size: 1.1rem;
}

.link-chip:hover i {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 8px var(--accent-primary);
}

/* Platform colors on hover */
.link-chip.github:hover i { color: #ffffff; text-shadow: 0 0 8px #fff; }
.link-chip.linkedin:hover i { color: #0a66c2; }
.link-chip.twitter:hover i { color: #1da1f2; }
.link-chip.portfolio:hover i { color: var(--accent-primary); }
.link-chip.medium:hover i { color: #000; }
body.light .link-chip.medium:hover i { color: #000; }
.link-chip.spotify:hover i { color: #1db954; }
.link-chip.email:hover i { color: var(--accent-primary); }
.link-chip.instagram:hover i { color: #e4405f; }

/*FOOTER*/
.footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glow);
}

.footer p {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.footer .fa-heart {
    color: #ec4899;
}

.last-updated {
    margin-top: 0.5rem;
    font-size: 0.6rem !important;
}

/*NAVIGATION HEADER*/
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-glow);
}

.nav-logo a {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.nav-logo a:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/*PAGE HEADER (for Projects page)*/
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/*PROJECTS GRID*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid var(--border-glow);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.project-icon {
    width: 55px;
    height: 55px;
    background: var(--chip-bg);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tech span {
    background: var(--chip-bg);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-glow);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.live-btn {
    background: var(--accent-primary);
    color: #1a1a2e;
}

.live-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.code-btn {
    background: var(--chip-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
}

.code-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/*BACK TO HOME LINK*/
.back-home {
    text-align: center;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-primary);
}

/*AUTH PAGES (LOGIN/REGISTER)*/
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid var(--border-glow);
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/*Input Groups*/
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.input-group label i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--chip-bg);
    border: 1px solid var(--border-glow);
    border-radius: 1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/*Error Message*/
.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    border-radius: 0.75rem;
    padding: 0.75rem;
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 0.75rem;
    padding: 0.75rem;
    color: #10b981;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

/*DASHBOARD PAGE*/
.dashboard-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.welcome-card {
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid var(--border-glow);
    padding: 2rem;
}

.welcome-icon {
    font-size: 3.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.welcome-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.welcome-card p {
    color: var(--text-secondary);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid var(--border-glow);
    padding: 1.5rem;
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.dashboard-btn {
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dashboard-btn.primary {
    background: var(--accent-primary);
    color: white;
}

.dashboard-btn.primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.dashboard-btn.secondary {
    background: var(--chip-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
}

.dashboard-btn.secondary:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.logout-link {
    color: #ef4444 !important;
}

.logout-link:hover {
    color: #ef4444 !important;
    opacity: 0.8;
}

@media (max-width: 500px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}
/*RESPONSIVE UPDATES*/
@media (max-width: 500px) {
    .main-nav {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}
/*RESPONSIVE*/
@media (max-width: 500px) {
    .container {
        padding: 1rem 1rem 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}