@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap&family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('themes.css');
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', 'JetBrains Mono', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none
}

#hidden {
    display: none
}

.theme-switcher-container {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 1000
}

#theme-switcher {
    background: var(--btn-gradient, #333);
    color: var(--text-primary, #fff);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s, transform 0.1s
}

#theme-switcher:hover {
    background: var(--btn-gradient-hover, #444);
    color: var(--accent-primary, #ff2d94);
    transform: scale(1.08)
}

h1,
h2,
h3,
.hero h1,
section h2,
.project-card h3 {
    font-family: 'Nunito', 'Inter', Arial, sans-serif !important
}

.hero h1,
section h2 {
    font-family: 'Orbitron', 'Inter', sans-serif;
    color: var(--accent-primary)
}

.content-scroll {
    margin: auto;
    width: 70vw;
    min-height: 100vh;
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 6.5rem;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 2
}

section {
    background: var(--bg-card);
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px var(--shadow-color);
    padding: 2rem 2rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1.5px solid var(--border-color)
}

.hero {
    display: flex;
    gap: 2rem;
    align-items: center;
    text-align: left;
    background: transparent;
    box-shadow: none;
    border: none;
    padding-bottom: 0
}

.hero img {
    width: 300px;
    height: 300px;
    min-width: 300px;
    min-height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    background: var(--bg-card);
    display: block
}

.hero-name {
    display: flex;
    margin-left: 2vw;
    flex-direction: column;
    gap: 1rem
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem
}

.hero .intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
    max-width: 65ch;
    word-spacing: 0.1em
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
    justify-content: center
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease
}

.tag:hover,
.tag.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 8px var(--accent-primary)
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s
}

a:hover {
    color: var(--accent-primary)
}

.cta-btn {
    display: inline-block;
    padding: 0.8em 2em;
    font: 600 1.1rem/1 inherit;
    color: #fff;
    background: var(--btn-gradient);
    border: none;
    border-radius: 2em;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 4px var(--glow-color);
    transition: background 0.2s
}

.cta-btn:hover {
    background: var(--btn-gradient-hover)
}

.btn {
    padding: 0.5em 1.3em;
    border-radius: 2em;
    border: none;
    background: var(--btn-gradient);
    color: #fff;
    font: 500 1rem/1 inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s
}

.btn:hover {
    background: var(--btn-gradient-hover)
}

.btn-secondary {
    background: var(--tag-gradient);
    color: var(--tag-text)
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: #fff
}

.about p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.1em
}

.decore b {
    color: var(--accent-primary);
    font-weight: 600
}

.decore i {
    font-style: italic;
    color: var(--text-muted)
}

.tweets p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0
}

.projects .project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.2rem 1.2rem 1rem;
    box-shadow: 0 1px 4px var(--shadow-color);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start
}

.project-content {
    flex: 1;
    min-width: 0
}

.project-card h3 {
    margin: 0 0 0.5rem;
    color: var(--accent-secondary);
    font-size: 1.2rem
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.2rem
}

.project-card iframe {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 1.2rem;
    border-radius: 0.5rem;
    aspect-ratio: 16/9;
    height: auto;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 2px 8px var(--shadow-color)
}

.project-image {
    flex-shrink: 0;
    margin: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    width: 200px;
    height: 140px
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease
}

.project-card:hover .project-image img {
    transform: scale(1.02)
}

.project-card.hidden {
    display: none
}

/* Post metadata styles for RSS feed */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem
}

.post-type {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.post-type.ctf {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff
}

.post-type.pentesting {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #1a1a2e
}

.post-type.blog {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #1a1a2e
}

.post-type.chitchat {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
    color: #1a1a2e
}

.post-type.github {
    background: linear-gradient(135deg, #6e5494, #24292e);
    color: #fff
}

.post-date {
    color: var(--text-muted);
    font-size: 0.8rem
}

/* GitHub repo styles */
.repo-language {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem
}

.repo-language .lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block
}

.repo-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem
}

.repo-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem
}

/* Project sections */
.project-section {
    margin-bottom: 2rem
}

.section-title {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color)
}

.see-more-container {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 1rem;
    background: var(--bg-card);
    border-radius: 0.75rem;
    border: 1px dashed var(--border-color)
}

.see-more-text {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem
}

/* Loading and error states */
.loading-placeholder,
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1rem
}

.loading-placeholder::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite
}

@keyframes spin {
    to { transform: rotate(360deg) }
}

.error-message a {
    color: var(--accent-primary);
    text-decoration: underline
}

.project-links {
    display: flex;
    gap: 1rem
}

.link-preview {
    display: flex;
    flex-direction: column;
    margin: 0 auto 1.2rem;
    padding: 0.2rem 0 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    max-width: 600px;
    background: var(--bg-card);
    box-shadow: 0 2px 8px var(--shadow-color)
}

.link-info {
    display: flex;
    margin-right: 1rem;
    gap: 0.5rem
}

.link-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem
}

.link-info p {
    font-size: 0.85rem;
    color: gray;
    margin-bottom: 0.5rem
}

.link-preview img {
    width: 150px;
    height: 100%;
    padding-top: 1rem;
    object-fit: cover
}

.tweet-cards {
    column-count: 2;
    column-gap: 20px;
    width: 100%;
    margin-top: 20px
}

.tweet-cards blockquote {
    display: inline-block;
    width: 100% !important;
    margin: 0 0 20px;
    box-sizing: border-box;
    break-inside: avoid
}

.twitter-tweet {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 10px !important;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow-color)
}

/* Highlights section */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem
}

.highlight-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--shadow-color)
}

.highlight-icon {
    font-size: 2rem;
    line-height: 1
}

.highlight-content h4 {
    margin: 0 0 0.5rem;
    color: var(--accent-secondary);
    font-size: 1rem
}

.highlight-content .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0
}

.highlight-content .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0
}

.highlight-content .platforms {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0
}

.highlight-content .platforms a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s
}

.highlight-content .platforms a:hover {
    color: var(--accent-secondary);
    text-decoration: underline
}

.htb-badge {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 6px;
    margin-top: 0.5rem;
    transition: transform 0.2s
}

.htb-badge:hover {
    transform: scale(1.02)
}

.htb-card {
    grid-column: span 2
}

.htb-content {
    width: 100%;
    text-align: center
}

.htb-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem
}

/* Animated CV Download Button */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    margin-top: 1.25rem;
    padding: 0.6rem 1.2rem;
    background: var(--btn-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px var(--shadow-color)
}

.btn-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btn-shimmer 2s infinite
}

.btn-cv:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--glow-color)
}

.btn-cv-icon {
    font-size: 1.2rem
}

.btn-cv-text {
    letter-spacing: 0.5px
}

.btn-cv-arrow {
    animation: bounce-down 1s infinite;
    font-weight: bold
}

@keyframes btn-shimmer {
    0% { left: -100% }
    100% { left: 100% }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(4px) }
}

.contact p,
.contact a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-decoration: none
}

.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%
}

.contact-left,
.contact-right {
    flex: 1;
    min-width: 0
}

.contact-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem
}

.email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    word-break: break-word
}

.email svg {
    flex-shrink: 0
}

.email a {
    overflow-wrap: break-word
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin: 0;
    flex-wrap: wrap
}

.social-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    fill: var(--accent-secondary);
    transition: all 0.3s ease
}

.social-icon:hover {
    fill: var(--accent-primary);
    transform: scale(1.1)
}

@media (max-width:1200px) {
    .content-scroll {
        padding: 2rem
    }
}

@media (max-width:900px) {
    .hero {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        text-align: center
    }
    .hero img {
        width: 120px;
        max-width: 120px;
        height: 120px;
        margin: 0 auto
    }
    .content-scroll {
        margin: 0;
        width: 100vw;
        padding: 2.5rem 1.5rem
    }
    .theme-switcher-container {
        top: 1rem;
        right: 1rem
    }
    .tweet-cards {
        column-count: 1
    }
    .hero .intro,
    .about p {
        text-align: left;
        word-spacing: normal
    }
}

@media (max-width:600px) {
    html {
        font-size: 15px
    }
    .content-scroll {
        padding: 1.5rem 1.2rem;
        gap: 1.5rem
    }
    .project-card iframe {
        border-radius: 0.3rem
    }
    section {
        padding: 1rem 0.5rem 0.7rem;
        margin-bottom: 1rem
    }
    .hero img {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px
    }
    .hero h1 {
        font-size: 1.5rem
    }
    .hero .intro {
        font-size: 1rem;
        word-spacing: normal;
        letter-spacing: normal;
        text-align: left;
        line-height: 1.5
    }
    .about p {
        font-size: 1rem;
        text-align: left;
        word-spacing: normal;
        line-height: 1.5
    }
    .project-card {
        padding: 0.7rem 0.5rem 0.5rem;
        flex-direction: column
    }
    .project-image {
        width: 100%;
        height: auto;
        max-height: 150px;
        order: -1
    }
    .btn {
        font-size: 0.95rem;
        padding: 0.4em 1em
    }
    .theme-switcher-container {
        top: 0.5rem;
        right: 0.5rem
    }
    #theme-switcher {
        width: 36px;
        height: 36px;
        font-size: 1.1rem
    }
    .social-icon {
        width: 36px;
        height: 36px
    }
    .contact-box {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start
    }
    .contact-left,
    .contact-right {
        width: 100%
    }
    .contact-right {
        justify-content: flex-start
    }
    .social-links {
        justify-content: flex-start;
        gap: 1rem
    }
    .email {
        font-size: 0.95rem
    }
    .htb-card {
        grid-column: span 1
    }
    .highlights-grid {
        grid-template-columns: 1fr
    }
    .htb-badge {
        max-width: 220px
    }
}

/* Portfolio CTA Box */
.portfolio-cta {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb, 255,45,148), 0.15), rgba(var(--accent-secondary-rgb, 0,247,255), 0.1));
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    position: relative;
    overflow: hidden
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: cta-shimmer 3s infinite
}

@keyframes cta-shimmer {
    0% { left: -100% }
    100% { left: 100% }
}

.portfolio-cta p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary)
}

.portfolio-cta strong {
    color: var(--accent-primary);
    font-weight: 700
}

.portfolio-cta a {
    color: var(--accent-secondary, var(--accent-primary));
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s
}

.portfolio-cta a:hover {
    border-bottom-color: var(--accent-secondary, var(--accent-primary))
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    flex-shrink: 0;
}