@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* Teme */
:root {
    --bg-primary: #f7f2e9;
    --bg-secondary: #f0e8dc;
    --bg-tertiary: #e5d9cc;
    --text-primary: #4a4a4a;
    --text-secondary: #7c6a5d;
    --text-muted: #9e7d6b;
    --accent: #b87b5d;
    --accent-dark: #9e6b4f;
    --shadow-light: #fff4e6;
    --shadow-dark: #d4c9b8;
    --border-light: rgba(255,255,255,0.5);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #8a8a8a;
    --accent: #b87b5d;
    --accent-dark: #9e6b4f;
    --shadow-light: #3d3d3d;
    --shadow-dark: #1a1a1a;
    --border-light: rgba(255,255,255,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Pattern subtil */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    color: var(--accent);
}

/* Theme toggle */
.theme-toggle {
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--accent-dark);
}

.theme-toggle i {
    pointer-events: none;
}

/* Live clock */
.live-clock {
    background: var(--bg-tertiary);
    padding: 10px 20px;
    border-radius: 40px;
    font-family: 'Quicksand', monospace;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-clock i {
    color: var(--accent);
    font-size: 16px;
}

/* Navigare */
.navbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 12px 28px;
    background: var(--bg-secondary);
    border-radius: 40px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.nav-link:hover {
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    transform: translateY(2px);
    color: var(--accent);
}

.nav-link.active {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 5px 5px 10px var(--accent-dark), -5px -5px 10px var(--shadow-light);
}

/* Card-uri */
.card {
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
}

.card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 30px;
    border-bottom: 2px dashed var(--text-muted);
    padding-bottom: 15px;
}

/* Profile section */
.profile-section {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.avatar-placeholder {
    width: 160px;
    height: 160px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--accent);
    box-shadow: 8px 8px 15px var(--shadow-dark), -8px -8px 15px var(--shadow-light);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.8;
    opacity: 0.9;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
}

.tag i {
    color: var(--accent);
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.project-item {
    background: var(--bg-tertiary);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 8px 8px 15px var(--shadow-dark), -8px -8px 15px var(--shadow-light);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    background: var(--bg-secondary);
}

.project-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 15px;
}

.project-item h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.project-item p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: var(--accent);
    font-size: 13px;
    border-top: 1px dashed var(--text-muted);
    padding-top: 12px;
}

/* Links list */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-secondary);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    transition: all 0.3s ease;
    gap: 20px;
}

.link-item:hover {
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    transform: translateX(5px);
}

.link-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.link-content {
    flex: 1;
}

.link-title {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    margin-bottom: 3px;
    color: var(--text-secondary);
}

.link-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0 10px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--text-muted);
    margin-top: 40px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-name {
        font-size: 32px;
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 14px;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }
}