:root {
    --primary-color: #16a34a;
    --primary-hover: #15803d;
    --secondary-color: #1d4ed8;
    --secondary-hover: #1e40af;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    line-height: 1.6;
    color: var(--text-main);
}

/* Sidebar & Layout */
#sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
    #sidebar {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 16rem;
    }
}

/* Visibility states */
.app-section,
#app-container,
#auth-page,
#landing-page {
    display: none;
}

#landing-page.active-view {
    display: flex;
}

#auth-page.active-view {
    display: flex;
}

#app-container.active-view {
    display: flex;
}

.nav-link.active {
    background-color: #f0fdf4;
    color: var(--primary-color);
    font-weight: 600;
    border-right: 4px solid var(--primary-color);
}

/* Loader */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Landing Page Specifics */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.btn-primary-landing {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-landing:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-landing {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary-landing:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.feature-icon-landing {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card-hover-effect {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
}

.card-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: var(--primary-color);
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

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

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

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* CV Styles for Modal */
.cv-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

/* Profile Editor Styles */
#profile-editor-container input:focus,
#profile-editor-container textarea:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.tag-item {
    transition: all 0.2s ease;
}

.tag-item:hover {
    transform: scale(1.05);
}

.exp-item,
.edu-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-item:hover,
.edu-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.animate-fade-in {
    animation: fadeInSection 0.4s ease-out forwards;
}

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

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


.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}