/* Global Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #7b2cbf;
    /* Purple */
    --accent-glow: #9d4edd;
    --secondary-accent: #00b4d8;
    /* Cyan */
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(10px);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

/* Selection Style */
::selection {
    background: var(--accent-color);
    color: #fff;
}

/* Background Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    border-radius: 2px;
}

.highlight {
    color: var(--secondary-accent);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-glow));
    color: white;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.6);
}

.btn.secondary {
    background: transparent;
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn.secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    margin-left: 5%;
}

.greeting {
    font-size: 1.2rem;
    color: var(--secondary-accent);
    margin-bottom: 0.5rem;
    display: block;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

h1.glitch {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
}

.subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.bio-short {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Abstract Background Shapes */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-accent);
    bottom: 20%;
    right: 30%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-70px);
    }

    100% {
        transform: translateY(0);
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--card-border);
    top: 0;
    bottom: 0;
    left: 20px;
    /* Mobile adjustment */
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 11px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 10;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
}

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

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: block;
}

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

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

.project-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, #1a1a1a, #333333);
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-overlay a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.project-overlay a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

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

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--secondary-accent);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Skills */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
}

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

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background: rgba(123, 44, 191, 0.05);
}

/* Education Section Styles */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

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

.education-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.education-card h4 {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.edu-date {
    display: inline-block;
    color: var(--secondary-accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Certifications Section Styles */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.cert-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-accent);
    transform: translateY(-3px);
}

.cert-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.cert-details h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.cert-date {
    font-size: 0.8rem;
    color: var(--secondary-accent);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--card-border);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
    }

    h1.glitch {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide for now - would add JS toggle for hamburger */
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .timeline::after {
        left: 20px;
    }
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-toggle i {
    color: var(--bg-color);
    font-size: 1.5rem;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.5);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.chat-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.chat-header h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.chat-close:hover {
    color: var(--accent-color);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--accent-color);
    color: var(--bg-color);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 25, 47, 0.98);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-input:focus {
    border-color: var(--accent-color);
}

#chat-send {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    transition: transform 0.2s ease;
}

#chat-send:hover {
    transform: scale(1.1);
}

/* Scrollbar for chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(100, 255, 218, 0.2);
    border-radius: 3px;
}

.project-affiliation {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Horizontal Scroll Section for Research */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0 4rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.horizontal-scroll-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
}

.swipe-indicator {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(5px);
    }

    100% {
        opacity: 0.5;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .horizontal-scroll-card {
        flex: 0 0 280px;
    }
}

/* Technical Arsenal (Skills Grid) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.15);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.skill-header i {
    font-size: 1.8rem;
    color: var(--secondary-accent);
}

.skill-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0;
    list-style: none;
}

.skill-tags li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-card:hover .skill-tags li {
    background: rgba(123, 44, 191, 0.1);
    border-color: rgba(123, 44, 191, 0.3);
    color: var(--text-primary);
}

/* Floating Hire Me Button */
.hire-me-badge {
    position: fixed;
    top: 90px;
    right: 20px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
    animation: pulse-hire 2s infinite;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hire-me-badge:hover {
    transform: scale(1.05);
    animation: none;
    color: white;
}

@keyframes pulse-hire {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 65, 108, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 65, 108, 0);
    }
}

@media (max-width: 768px) {
    .hire-me-badge {
        top: 80px;
        right: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* GitHub Live Stats Section */
.stats-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: -2rem;
}

.github-widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem;
    transition: var(--transition);
    max-width: 100%;
}

.github-widget:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.15);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.1);

    /* Modify specific background colors and shadows */
    --hover-bg: rgba(123, 44, 191, 0.05);
}

[data-theme="light"] .project-image {
    background: #e9ecef;
}

[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(123, 44, 191, 0.08), transparent 70%);
}

[data-theme="light"] .timeline-dot {
    background-color: var(--bg-color);
}

[data-theme="light"] .skill-tags li {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .skill-card:hover .skill-tags li {
    background: rgba(123, 44, 191, 0.1);
    border-color: rgba(123, 44, 191, 0.3);
    color: var(--text-primary);
}

[data-theme="light"] footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Theme Toggle Button Style */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--hover-bg, rgba(255, 255, 255, 0.1));
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Scroll Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1001;
    /* Highest z-index above navbar */
    width: 100%;
    height: 4px;
    background: transparent;
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    width: 0%;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Dynamic Typing Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-color);
    margin-left: 2px;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {
    0% {
        background-color: var(--accent-color);
    }

    49% {
        background-color: var(--accent-color);
    }

    50% {
        background-color: transparent;
    }

    99% {
        background-color: transparent;
    }

    100% {
        background-color: var(--accent-color);
    }
}

/* Custom Cursor */
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: background-color 0.2s;
    display: none;
    /* Hidden by default, JS enables it for pointers */
}

.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 2px solid var(--secondary-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
    display: none;
}

@media (pointer: fine) {

    /* Hide default cursor on desktop */
    body,
    a,
    button,
    input,
    textarea,
    .theme-toggle,
    .project-card,
    .chat-toggle,
    .chat-close,
    .github-widget,
    .nav-links li a {
        cursor: none !important;
    }

    .custom-cursor-dot,
    .custom-cursor-ring {
        display: block;
    }
}

.custom-cursor-ring.hover {
    width: 45px;
    height: 45px;
    border-color: var(--accent-color);
    background-color: rgba(123, 44, 191, 0.1);
}

.custom-cursor-dot.hover {
    background-color: var(--secondary-accent);
}

/* ATS Ghost Keywords */
.ats-ghost-keywords {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
    color: transparent;
    pointer-events: none;
    z-index: -9999;
}

/* Floating Action Bar */
.floating-action-bar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 10px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.fab-item {
    color: var(--text-secondary);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
}

.fab-item:hover {
    color: var(--accent-color);
    background: rgba(123, 44, 191, 0.15);
    transform: translateX(-5px);
}

.fab-item.download-cv:hover {
    color: var(--secondary-accent);
    background: rgba(0, 180, 216, 0.15);
}

@media (max-width: 768px) {
    .floating-action-bar {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        border-radius: 30px;
        padding: 10px 20px;
        background: rgba(10, 10, 10, 0.6);
    }

    .fab-item:hover {
        transform: translateY(-5px);
    }
}

/* Horizontal Scrollbar specifically for the Articles Grid */
#medium-articles-grid::-webkit-scrollbar {
    height: 10px;
}

#medium-articles-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

#medium-articles-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

#medium-articles-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-accent);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}