/* ============================================
   COMPONENTS - rarescojocariu.ro
   Dependinte: variables.css, style.css
   ============================================ */


/* ===========================================
   1. HEADER / NAVIGATION
   Bara de navigatie fixa cu tranzitie la scroll
   =========================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition:
        background-color var(--transition-base),
        padding var(--transition-base),
        box-shadow var(--transition-base);
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-accent {
    color: var(--color-primary);
}

/* Navigatie principala */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-text-light);
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Link CTA in navigatie */
.nav-link--cta {
    background: var(--color-primary);
    border-radius: 50px;
    color: white;
    padding: 0.5rem 1.5rem;
    transition:
        background-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: #2a42cc;
    transform: translateY(-1px);
    box-shadow: var(--shadow-color);
    color: white;
}

/* Social icons in nav */
.nav-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.8rem;
}

.nav-social a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-base), transform var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-social a:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-social svg {
    width: 18px;
    height: 18px;
}

/* Hamburger (mobil) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition:
        transform var(--transition-base),
        opacity var(--transition-base);
    transform-origin: center;
}

/* Animatie X cand meniul e deschis */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ===========================================
   2. FOOTER
   =========================================== */

.site-footer {
    background: transparent;
    color: var(--color-text-light);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
}

.footer-tagline {
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    font-size: var(--fs-small);
    line-height: 1.6;
}

.footer-nav h4 {
    font-family: var(--font-accent);
    color: white;
    font-size: var(--fs-body);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #8b8fa3;
    text-decoration: none;
    font-size: var(--fs-small);
    transition: color var(--transition-base);
}

.footer-nav a:hover {
    color: white;
}

/* Linkuri sociale */
.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1rem;
    transition:
        border-color var(--transition-base),
        color var(--transition-base),
        background-color var(--transition-base);
}

.social-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(52, 82, 255, 0.15);
}

/* Footer bottom / copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    text-align: center;
    font-size: var(--fs-small);
    color: #8b8fa3;
}


/* ===========================================
   3. HERO SECTION (pagina principala)
   =========================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/bg-hero.webp') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

/* Overlay intunecat peste imaginea de fundal pentru lizibilitate */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    z-index: 1;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.3) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-sm);
}

.hero-eyebrow {
    font-family: 'Calligraffitti', cursive;
    text-transform: none;
    letter-spacing: 1px;
    color: white;
    font-size: var(--fs-h3);
    font-weight: 400;
    margin-bottom: var(--space-sm);
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    color: white;
    margin-bottom: var(--space-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--fs-h3);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Indicator scroll jos */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.scroll-text {
    font-family: var(--font-accent);
    font-size: var(--fs-caption);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.5);
        opacity: 0.4;
    }
}


/* ===========================================
   4. CARDS
   =========================================== */

/* --- Portfolio Card --- */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
}

.portfolio-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.1);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-category {
    font-family: var(--font-accent);
    font-size: var(--fs-caption);
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 1px;
    font-weight: 500;
}

.portfolio-title {
    color: white;
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    margin: 0.5rem 0;
    line-height: 1.3;
}

.portfolio-excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-small);
    line-height: 1.5;
}

/* --- Blog Card --- */
.blog-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: var(--space-md);
}

/* Categorii blog cu coduri de culoare */
.blog-category {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.blog-category--digital {
    background: rgba(52, 82, 255, 0.15);
    color: var(--color-primary);
}

.blog-category--social {
    background: rgba(91, 115, 255, 0.15);
    color: var(--color-accent-alt);
}

.blog-category--branding {
    background: rgba(52, 82, 255, 0.1);
    color: #8899ff;
}

.blog-card h3 {
    margin-bottom: var(--space-xs);
}

.blog-card h3 a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.blog-card h3 a:hover {
    color: var(--color-primary);
}

.blog-excerpt {
    color: var(--color-text-secondary);
    font-size: var(--fs-small);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
    font-size: var(--fs-caption);
    color: var(--color-text-secondary);
}


/* ===========================================
   5. SKILLS MARQUEE
   Banda orizontala cu text animat
   =========================================== */

.marquee-section {
    overflow: hidden;
    padding: var(--space-lg) 0;
    background: transparent;
    border: none;
}

.marquee-track {
    display: flex;
    gap: var(--space-md);
    animation: marquee 25s linear infinite;
    width: max-content;
}

.marquee-tag {
    font-family: var(--font-accent);
    font-size: var(--fs-h3);
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    user-select: none;
}

.marquee-tag .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    margin: 0 var(--space-md);
    vertical-align: middle;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ===========================================
   6. ABOUT PREVIEW (pagina principala)
   =========================================== */

.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    display: block;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 12px;
    right: -12px;
    bottom: 12px;
    border: 3px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.about-text h2 {
    font-size: var(--fs-h2);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.about-text p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.about-link {
    font-family: var(--font-accent);
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: var(--fs-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition:
        gap var(--transition-base),
        color var(--transition-base);
}

.about-link:hover {
    color: #5b73ff;
    gap: 0.75rem;
}


/* ===========================================
   7. CTA SECTION
   =========================================== */

.cta-section {
    background: transparent;
    text-align: center;
    color: white;
    padding: var(--space-xl) 0;
}

.cta-section h2 {
    font-size: var(--fs-h1);
    color: white;
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--fs-h3);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ===========================================
   8. TIMELINE (despre.html)
   =========================================== */

.timeline {
    position: relative;
    padding: var(--space-lg) 0;
}

/* Linia verticala centrala */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    width: 50%;
    padding-right: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    margin-left: 50%;
    padding-left: var(--space-md);
    padding-right: 0;
}

/* Marker circular pe linia temporala */
.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-bg-light);
    position: absolute;
    right: -8px;
    top: var(--space-md);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(52, 82, 255, 0.2);
}

.timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: -8px;
}

.timeline-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    transition:
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.timeline-date {
    font-family: var(--font-accent);
    color: var(--color-primary);
    font-size: var(--fs-small);
    font-weight: 600;
    display: block;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    margin-top: 0.25rem;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.timeline-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--fs-small);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.timeline-content p {
    margin-top: 0.5rem;
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* ===========================================
   9. SKILL BARS
   =========================================== */

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.skill-item {
    margin-bottom: var(--space-sm);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: var(--fs-small);
    color: var(--color-text-primary);
}

.skill-percent {
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--fs-small);
    font-family: var(--font-accent);
}

.skill-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease;
}

.skill-fill.visible {
    /* Largimea se seteaza inline via style="width: XX%" */
}

/* Soft skills (tag-uri) */
.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.soft-skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 2px solid var(--color-accent-alt);
    color: var(--color-accent-alt);
    font-family: var(--font-accent);
    font-size: var(--fs-small);
    font-weight: 500;
    background: transparent;
    cursor: default;
    transition:
        background-color var(--transition-base),
        color var(--transition-base);
}

.soft-skill-tag:hover {
    background: var(--color-accent-alt);
    color: white;
}


/* ===========================================
   10. PORTFOLIO FILTER
   =========================================== */

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    background: transparent;
    font-family: var(--font-accent);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}


/* ===========================================
   11. GALLERY
   Grid masonry-style pentru portofoliu
   =========================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

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

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: var(--fs-small);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}


/* ===========================================
   12. LIGHTBOX
   Vizualizare imagini full-screen
   =========================================== */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-base);
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color var(--transition-base),
        transform var(--transition-base);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-accent);
    font-size: var(--fs-small);
}


/* ===========================================
   13. FORMS
   =========================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Informatii contact (coloana stanga) */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(52, 82, 255, 0.15);
    color: var(--color-primary);
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-info-item h4 {
    font-family: var(--font-accent);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Campuri formular */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: var(--fs-small);
    color: var(--color-text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    background: var(--color-bg-elevated);
    outline: none;
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 82, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Checkbox */
.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group--checkbox input {
    width: auto;
}

.form-group--checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
}

/* Erori formular */
.form-error {
    color: #ff4d4d;
    font-size: var(--fs-small);
    margin-top: 0.25rem;
    display: none;
}

.form-error.visible {
    display: block;
}

/* Mesaj succes */
.form-success {
    background: rgba(52, 82, 255, 0.1);
    color: var(--color-accent-alt);
    border: 1px solid rgba(52, 82, 255, 0.2);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    text-align: center;
    font-family: var(--font-accent);
    font-weight: 500;
}


/* ===========================================
   14. CARPE DIEM (pagina dark theme)
   =========================================== */

.page-carpe-diem {
    background: linear-gradient(160deg, #0a0a0a 0%, #0a1628 35%, #140a28 65%, #0a0a0a 100%) fixed;
    color: var(--color-text-light);
}

.page-carpe-diem .site-header {
    background: transparent;
}

.page-carpe-diem .page-hero {
    background: transparent;
}

/* Track-uri muzica */
.music-track {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-sm);
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base);
}

.music-track:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.music-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 1.2rem;
    transition:
        background-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.music-play-btn:hover {
    background: #2a42cc;
    transform: scale(1.08);
    box-shadow: var(--shadow-color);
}

.music-info {
    flex: 1;
    min-width: 0;
}

.music-info h3 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 0.25rem;
    font-size: var(--fs-body);
}

.music-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-small);
    margin-bottom: 0;
}

.music-duration {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-small);
    font-family: var(--font-accent);
    flex-shrink: 0;
}

/* Card-uri poezie */
.poetry-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base);
}

.poetry-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.poetry-card::before {
    content: '\201C';
    font-size: 6rem;
    color: var(--color-primary);
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.3;
    font-family: 'Georgia', serif;
    line-height: 1;
}

.poetry-card h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
    position: relative;
}

.poetry-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--fs-body);
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

/* Grid arta */
.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.art-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-slow);
    cursor: pointer;
}

.art-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.art-item:nth-child(odd) {
    transform: rotate(-2deg);
}

.art-item:nth-child(even) {
    transform: rotate(2deg);
}

.art-item:hover {
    transform: rotate(0) scale(1.05);
    z-index: 10;
}

/* Citat inspiratie */
.inspiration-quote {
    text-align: center;
    padding: var(--space-xl) 0;
}

.inspiration-quote blockquote {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
    border: none;
    padding: 0;
}

.inspiration-quote cite {
    display: block;
    margin-top: var(--space-sm);
    font-family: var(--font-accent);
    font-style: normal;
    color: var(--color-accent);
    font-size: var(--fs-body);
    font-weight: 500;
}


/* ===========================================
   15. BLOG POST (articol singular)
   =========================================== */

.post-header {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-md);
}

.post-header img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-md);
}

.post-content {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.post-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.post-content h3 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-md);
    margin: var(--space-md) 0;
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: var(--fs-h3);
    line-height: 1.5;
}

.post-content ul,
.post-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
    color: var(--color-text-secondary);
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content img {
    border-radius: var(--border-radius);
    margin: var(--space-md) 0;
}

/* Tag-uri articol */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: var(--space-lg) 0;
}

.post-tag {
    padding: 0.35rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    background: transparent;
    font-family: var(--font-accent);
    font-size: var(--fs-caption);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base);
}

.post-tag:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Navigare intre articole */
.post-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    margin-top: var(--space-lg);
}

.post-nav a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    max-width: 45%;
    transition: color var(--transition-base);
}

.post-nav a span:first-child {
    font-family: var(--font-accent);
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
}

.post-nav a span:last-child {
    font-family: var(--font-heading);
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    font-weight: 600;
    transition: color var(--transition-base);
}

.post-nav a:hover span:last-child {
    color: var(--color-primary);
}

.post-nav a:last-child {
    text-align: right;
    align-items: flex-end;
}


/* ===========================================
   16. DOWNLOAD CV BANNER
   =========================================== */

.cv-banner {
    background: var(--gradient-accent);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    text-align: center;
    color: white;
}

.cv-banner h3 {
    font-size: var(--fs-h2);
    color: white;
    margin-bottom: var(--space-sm);
}

.cv-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
    font-size: var(--fs-body);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* ===========================================
   17. CERTIFICATION CARDS
   =========================================== */

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.cert-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
    line-height: 1;
}

.cert-card h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.cert-card p {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.cert-card .cert-year {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--font-accent);
    font-size: var(--fs-caption);
    font-weight: 600;
    color: var(--color-primary);
}


/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    /* About */
    .about-preview {
        gap: var(--space-lg);
    }

    /* Timeline */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: calc(30px + var(--space-md) + 8px);
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: calc(30px + var(--space-md) + 8px);
    }

    .timeline-marker {
        left: 22px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-marker {
        left: 22px;
    }

    /* Skills */
    .skills-grid {
        gap: var(--space-lg);
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* Certifications */
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Art grid */
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery */
    .gallery-item--wide,
    .gallery-item--large {
        grid-column: span 1;
    }

    .gallery-item--large {
        grid-row: span 1;
    }
}


/* --- Tablet & Mobile: Meniu hamburger (max-width: 1023px) --- */
@media (max-width: 1023px) {

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        align-items: center;
        justify-content: center;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-link--cta {
        text-align: center;
        margin-top: var(--space-sm);
    }

    .nav-social {
        margin-left: 0;
        margin-top: var(--space-sm);
        gap: 1rem;
    }

    .nav-social svg {
        width: 22px;
        height: 22px;
    }

    body.menu-open {
        overflow: hidden;
    }
}


/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Hero */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: var(--fs-body);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* About */
    .about-preview {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-image::after {
        top: -8px;
        left: 8px;
        right: -8px;
        bottom: 8px;
    }

    /* Cards */
    .portfolio-card-image img {
        height: 220px;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Blog */
    .blog-card-image img {
        height: 180px;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    /* Certifications */
    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-section h2 {
        font-size: var(--fs-h2);
    }

    /* Art grid */
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .art-item:nth-child(odd),
    .art-item:nth-child(even) {
        transform: none;
    }

    .art-item:hover {
        transform: scale(1.03);
    }

    /* Music track */
    .music-track {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .music-play-btn {
        width: 44px;
        height: 44px;
    }

    /* Post navigation */
    .post-nav {
        flex-direction: column;
        gap: var(--space-md);
    }

    .post-nav a {
        max-width: 100%;
    }

    .post-nav a:last-child {
        text-align: left;
        align-items: flex-start;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 200px;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }
}


/* --- Mobile mic (max-width: 480px) --- */
@media (max-width: 480px) {

    /* General spacing */
    .section {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    /* Hero */
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .scroll-indicator {
        display: none;
    }

    /* Marquee - mai mic pe mobil */
    .marquee-tag {
        font-size: var(--fs-body);
    }

    .marquee-tag .dot {
        width: 6px;
        height: 6px;
        margin: 0 var(--space-sm);
    }

    /* CV Banner */
    .cv-banner {
        padding: var(--space-md);
    }

    .cv-banner h3 {
        font-size: var(--fs-h3);
    }

    /* Post content */
    .post-content blockquote {
        padding-left: var(--space-sm);
        font-size: var(--fs-body);
    }

    /* Art grid */
    .art-grid {
        grid-template-columns: 1fr;
    }

    /* Inspiration quote */
    .inspiration-quote blockquote {
        font-size: var(--fs-h3);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    /* Footer */
    .footer-bottom {
        font-size: var(--fs-caption);
    }

    .social-links {
        justify-content: center;
    }
}
