:root {
    --bg: #0a0a0a;
    --bg2: #111;
    --card: #161616;
    --accent: #8b5cf6;
    --cyan: #22d3ee;
    --green: #4ade80;
    --red: #ef4444;
    --linkedin: #0077b5;
    --text: #fff;
    --text2: #a1a1aa;
    --dim: #71717a;
    --border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
    --bg: #fff;
    --bg2: #f5f5f5;
    --card: #fafafa;
    --text: #18181b;
    --text2: #52525b;
    --dim: #a1a1aa;
    --border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Custom Cursor */
#cursorRing,
#cursorDot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

#cursorRing {
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent);
    transition: transform 0.15s, background 0.15s;
}

#cursorDot {
    width: 6px;
    height: 6px;
    background: var(--accent);
}

#cursorRing.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--cyan);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text2);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--border);
}

.nav-links .cli-link {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
}

.nav-controls {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}


.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--border);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image.light-image {
    background: #fff;
    border-color: #d1d5db;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text2);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text);
}

/* Social Buttons */
.hero-socials,
.contact-socials {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text2);
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-btn.github:hover {
    color: #fff;
    background: #333;
    border-color: #333;
}

.social-btn.linkedin:hover {
    color: #fff;
    background: var(--linkedin);
    border-color: var(--linkedin);
}

.social-btn.htb:hover {
    color: var(--green);
    border-color: var(--green);
}

.social-btn.email:hover {
    color: #111;
    background: #fff;
    border-color: #fff;
}

/* Tech Marquee */
.tech-marquee {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.marquee-label {
    font-size: 0.8rem;
    color: var(--dim);
}

.marquee-container {
    overflow: hidden;
    max-width: 420px;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: marquee 20s linear infinite;
}

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

.marquee-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text2);
    white-space: nowrap;
}

.marquee-badge svg {
    width: 16px;
    height: 16px;
}

/* Tech Icon Colors */
.icon-windows { fill: #0078d4; }
.icon-docker { fill: #2496ed; }
.icon-html { fill: #e34f26; }
.icon-css { fill: #1572b6; }
.icon-js { fill: #f7df1e; }
.icon-php { fill: #777bb4; }
.icon-mysql { fill: #4479a1; }
.icon-aws { fill: #ff9900; }

/* Sections */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

#blog {
    padding: 3rem 2rem;
}

.section-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent);
}

.exp-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.exp-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.exp-company {
    color: var(--text2);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.exp-company a {
    color: var(--accent);
    text-decoration: none;
}

.exp-desc {
    color: var(--text2);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text2);
}

.tag svg {
    width: 14px;
    height: 14px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image svg {
    width: 64px;
    height: 64px;
    fill: var(--accent);
    opacity: 0.5;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 1rem;
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text2);
    text-decoration: none;
    transition: all 0.3s;
}

.project-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.project-link.live {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.project-link.live:hover {
    background: #7c3aed;
    border-color: #7c3aed;
}

/* Blog */
.blog-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-filter {
    padding: 0.4rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.3s;
}

.blog-filter:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.blog-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.blog-card.hidden {
    display: none;
}

.blog-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #0f3460, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image svg {
    width: 64px;
    height: 64px;
    fill: var(--green);
    opacity: 0.5;
}

.blog-content {
    padding: 1.5rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.blog-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.blog-tag.htb {
    background: rgba(74, 222, 128, 0.2);
    color: var(--green);
}

.blog-tag.tutorial {
    background: rgba(34, 211, 238, 0.2);
    color: var(--cyan);
}

.blog-tag.docker {
    background: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
}

.blog-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-meta-info {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--dim);
}

.blog-read {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: var(--accent);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-read:hover {
    background: #7c3aed;
}

/* Contact */
.contact-content p {
    color: var(--text2);
    margin-bottom: 1.5rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.contact-email:hover {
    border-color: var(--accent);
}

.contact-email svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 0.85rem;
    color: var(--dim);
}

/* Blog Article */
.blog-article-wrapper {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    flex-direction: column;
}

.blog-article-wrapper.active {
    display: flex;
}

.blog-article {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    flex: 1;
}

.blog-article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.blog-article-back:hover {
    text-decoration: underline;
}

.blog-article-container {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-article-header {
    margin-bottom: 2rem;
}

.blog-article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-article h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--dim);
}

.blog-article-content {
    line-height: 1.8;
    color: var(--text);
}

.blog-article-content h2 {
    color: var(--text);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.blog-article-content p {
    margin-bottom: 1rem;
}

.blog-article-content code {
    background: var(--card);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

.blog-article-content pre {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-article-content pre code {
    background: none;
    padding: 0;
}

/* Main Content Toggle */
.main-content {
    display: block;
}

.main-content.hidden {
    display: none;
}

#article-docker-compose {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    flex-direction: column;
}

#article-docker-compose.active {
    display: flex;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-socials,
    .contact-socials {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .tech-marquee {
        flex-direction: column;
    }
}
