/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    --bg-color: #080808;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-red: #ff2a2a;
    --accent-red-glow: rgba(255, 42, 42, 0.4);
    --accent-green: #00ff88;
    --font-primary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.mt-4 {
    margin-top: 2rem;
}

/* ==========================================================================
   Utility Classes (Glassmorphism & Layout)
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-glow);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    border: 1px solid var(--accent-red);
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.btn-primary:hover {
    background-color: transparent;
    box-shadow: 0 6px 20px var(--accent-red-glow);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red-glow);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-red);
}

/* Nav Status Badge */
.nav-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-text {
    display: flex;
    align-items: center;
}

.hide-mobile {
    display: block; 
    max-width: 100px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s ease, opacity 0.4s ease;
}

/* Base style for big pulsing dots */
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block; 
    flex-shrink: 0; 
}

.red-dot {
    background-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
    animation: pulse-red 2s infinite;
}

.green-dot {
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-green 2s infinite;
}

/* Big Dot Animations */
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 42, 42, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 42, 0); }
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap; /* Fixes text wrapping for items like "Om Mig" */
}

.nav-links a:hover {
    color: var(--accent-red);
    text-shadow: 0 0 8px var(--accent-red-glow);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-weight: 900;
    line-height: 1.1;
}

.primary-huge {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 0.5rem;
}

.primary-sub {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-muted);
    font-weight: 400;
}

.secondary-name {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-top: 4rem; 
    margin-bottom: 0.5rem;
}

.secondary-sub {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
}

.text-accent {
    color: var(--accent-red);
    text-shadow: 0 0 20px var(--accent-red-glow);
}

.glow-orb {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 42, 42, 0.15) 0%, rgba(8, 8, 8, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Career Section
   ========================================================================== */
.career-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.career-badge {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 250px;
    cursor: default;
}

.career-badge:hover {
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px var(--accent-red-glow);
    transform: translateY(-5px);
}

.career-badge h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.career-badge .company {
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.role-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Art Section (Masonry Gallery)
   ========================================================================== */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 768px) {
    .masonry-grid { column-count: 2; }
}
@media (min-width: 1024px) {
    .masonry-grid { column-count: 3; }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.masonry-img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.masonry-item:hover .masonry-img {
    transform: scale(1.05);
}

.masonry-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 0 0 transparent;
    transition: box-shadow 0.4s ease;
    pointer-events: none;
    border-radius: 12px;
}

.masonry-item:hover::after {
    box-shadow: inset 0 0 0 2px var(--accent-red);
}

/* ==========================================================================
   Lightbox Styles
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--accent-red);
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 90%;
    position: relative;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    user-select: none;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 2001;
}

.prev-btn:hover, .next-btn:hover {
    color: var(--accent-red);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* ==========================================================================
   Skills Section
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start; 
}

.project-card {
    display: flex;
    flex-direction: column;
    cursor: default; 
    align-items: flex-start;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.skills-list {
    color: var(--text-muted);
    margin-bottom: 1rem; 
    font-size: 0.95rem;
    padding-left: 1.2rem;
    width: 100%; 
}

.skills-list li {
    margin-bottom: 0.5rem;
}

/* Custom Bullet List for Certificates */
.cert-list {
    list-style: none;
    padding-left: 0;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.cert-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.bullet-green {
    background-color: var(--accent-green);
    box-shadow: 0 0 5px var(--accent-green);
    animation: pulse-green-bullet 2s infinite;
}

.bullet-red {
    background-color: var(--accent-red);
    box-shadow: 0 0 5px var(--accent-red);
    animation: pulse-red-bullet 2s infinite;
}

/* Custom Bullet Animations */
@keyframes pulse-green-bullet {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

@keyframes pulse-red-bullet {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(255, 42, 42, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 42, 0); }
}

.hidden-skill {
    display: none;
}

.expand-btn {
    background: transparent;
    border: none;
    color: var(--accent-red);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.expand-btn:hover {
    color: #fff;
}

.source-link {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.valid-tag {
    color: var(--accent-green);
}

.project-card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px var(--accent-red-glow);
    transform: translateY(-5px);
}

/* ==========================================================================
   CV Section
   ========================================================================== */
.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.simplified-contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 3rem;
    align-items: stretch;
}

.contact-photo-container {
    padding: 1rem; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; 
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 450px;
    margin-bottom: 2rem;
}

.contact-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s ease;
    width: 100%;
}

.contact-item:hover {
    border-color: var(--accent-red);
}

.icon-accent {
    color: var(--accent-red);
}

.copy-btn {
    position: absolute;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.copy-btn:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 1.3rem;
}

.social-links a:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness
   ========================================================================== */

/* Gracefully shrink gaps on tablets so items don't overlap before mobile menu triggers */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-left {
        gap: 1rem;
    }
    .nav-right-controls {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-left {
        gap: 1rem;
    }

    .hide-mobile {
        max-width: 0;
        opacity: 0;
    }

    .nav-status {
        padding: 0.3rem 0.8rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(8, 8, 8, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        left: 0;
    }

    .cv-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .simplified-contact {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: row; 
    }
    
    .copy-btn {
        right: 1rem;
    }

    .prev-btn { left: -10px; font-size: 2rem; }
    .next-btn { right: -10px; font-size: 2rem; }
    #lightbox-img { max-width: 85%; }
}

@media (max-width: 380px) {
    .nav-status {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */
.nav-right-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    padding: 0.2rem;
    overflow: hidden;
}

.lang-switcher button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.lang-switcher button:hover {
    color: var(--text-main);
}

.lang-switcher button.active {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-red-glow);
}

@media (max-width: 768px) {
    .nav-right-controls {
        gap: 1rem;
    }
    
    .lang-switcher button {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 450px) {
    .nav-container {
        gap: 10px;
    }
    .logo {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Custom Link Styles for About Section
   ========================================================================== */
.about-link {
    color: var(--accent-red);
    text-decoration: underline;
    text-decoration-color: var(--accent-red);
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.about-link:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

/* ==========================================================================
   Favorites Section
   ========================================================================== */
.favorites-category {
    margin-bottom: 2rem;
}

.favorites-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}