/* Add a second font for contrast */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&display=swap');

:root {
    --background-color: #0f0f0f;
    --text-color: #ffffff;
    --accent-color: #6366f1;
    --dot-color: #6366f1;
    --secondary-color: #a8b2d1;
    --tertiary-color: #64748b;
    --header-height: 80px;
    --footer-height: 60px;
    --heading-font: 'Syne', sans-serif;
    --body-font: 'Space Mono', monospace;
}





@keyframes floatParticles {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-100px);
    }
}


/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.reveal-left {
    transform: translateX(-50px);
}

.reveal-on-scroll.reveal-left.revealed {
    transform: translateX(0);
}

.reveal-on-scroll.reveal-right {
    transform: translateX(50px);
}

.reveal-on-scroll.reveal-right.revealed {
    transform: translateX(0);
}

.reveal-on-scroll.reveal-scale {
    transform: translateY(50px) scale(0.9);
}

.reveal-on-scroll.reveal-scale.revealed {
    transform: translateY(0) scale(1);
}

.reveal-on-scroll.reveal-rotate {
    transform: translateY(50px);
}

.reveal-on-scroll.reveal-rotate.revealed {
    transform: translateY(0);
}

.reveal-on-scroll.reveal-fade {
    opacity: 0;
    transform: none;
}

.reveal-on-scroll.reveal-fade.revealed {
    opacity: 1;
}

.reveal-on-scroll.reveal-bounce {
    transform: translateY(50px) scale(0.8);
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reveal-on-scroll.reveal-bounce.revealed {
    transform: translateY(0) scale(1);
}

.reveal-on-scroll.reveal-slide-up {
    transform: translateY(100px);
    transition: all 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-on-scroll.reveal-slide-up.revealed {
    transform: translateY(0);
}

/* Enhanced section animations */
.section-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered child animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.stagger-children.animate-in > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.animate-in > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.animate-in > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.animate-in > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.animate-in > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.animate-in > *:nth-child(5) { transition-delay: 0.5s; }

/* Enhanced stagger timing for different sections */
.stagger-children.slow > * {
    transition-duration: 1.2s;
}

.stagger-children.fast > * {
    transition-duration: 0.6s;
}

/* Parallax effect for background elements */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Hover animations for interactive elements */
.interactive-hover {
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.interactive-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

/* Simple shader-style glitch effect */
.glitch-effect {
    position: relative;
    display: inline-block;
}

.glitch-effect:hover {
    animation: glitch-shader 0.2s infinite;
}

@keyframes glitch-shader {
    0%, 100% { 
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: translate(-1px, 1px);
        filter: hue-rotate(90deg);
    }
    50% { 
        transform: translate(1px, -1px);
        filter: hue-rotate(180deg);
    }
    75% { 
        transform: translate(-1px, -1px);
        filter: hue-rotate(270deg);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

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

h1, h2, h3, h4, h5, h6, .pre-heading, .logo {
    font-family: var(--heading-font);
    font-weight: 800;
}

.pre-heading {
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    margin-left: 2rem;
    text-transform: uppercase;
    font-weight: 700;
}

.pre-heading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2rem;
    width: 1.5rem;
    height: 1px;
    background-color: var(--accent-color);
}

h1 {
    font-size: 4.5vw;
    letter-spacing: -1px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    max-width: 25ch;
    text-transform: uppercase;
}

.location {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--tertiary-color);
    position: relative;
    margin-top: 0.5rem;
    font-style: italic;
}

.description {
    max-width: 35ch;
    margin-left: 2rem;
}

.description p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    font-family: var(--body-font);
    word-spacing: -2px;
}

.cta {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    font-family: var(--heading-font);
    text-transform: uppercase;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform: skewX(-30deg);
}

.cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    cursor: none;
}

.cta:hover::before {
    transform: translateX(200%) skewX(-30deg);
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
    will-change: transform;
}

/* Main layout */
main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    z-index: 1000;
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--accent-color);
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 1rem;
}

.logo:hover {
    transform: scale(1.05);
    cursor: none;
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 4px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
    cursor: none;
}

nav a:hover::after {
    width: 100%;
}

.contact-button {
    padding: 0.6rem 1.2rem;
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.contact-button:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
    cursor: none;
}

/* Adjust the last nav item (GitHub) to have proper spacing */
nav ul li:last-child {
    margin-left: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5vw;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    padding: 5vh 0;
}

/* Left column - Text content */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 8vh;
    justify-content: center;
}

.title-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Right column - Dot characters */
.right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
}

.dot-characters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    aspect-ratio: 1;
}

.dot-character {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    background-color: transparent;
    border: none;
    animation: floating 4s ease-in-out infinite;
    will-change: transform;
}

.dot-character.large {
    grid-column: 1;
    grid-row: 1 / span 2;
    animation-delay: 0s;
}

.dot-character.medium {
    grid-column: 2;
    grid-row: 1;
    animation-delay: 1s;
}

.dot-character.small {
    grid-column: 2;
    grid-row: 2;
    animation-delay: 2s;
}

/* Skill page character dimensions */
.hero-character,
.flipper-character,
.wireless-character,
.security-reference-character {
    width: 450px;
    height: 450px;
    min-width: 450px;
    min-height: 450px;
}

.dot-character:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: transparent;
}

.interaction-hint {
    font-size: 0.75rem;
    color: var(--secondary-color);
    opacity: 0.7;
    letter-spacing: 1px;
    align-self: flex-end;
}

/* Dots */
.dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--dot-color);
    transition: transform 0.1s ease, opacity 0.1s ease, box-shadow 0.1s ease;
    will-change: transform, opacity, box-shadow;
}

.active-dot {
    opacity: 1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.inactive-dot {
    opacity: 0.05;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    gap: 1rem;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--tertiary-color);
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 1px solid var(--tertiary-color);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Floating status indicator */
.floating-status {
    position: fixed;
    bottom: 5vh;
    right: 5vw;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    z-index: 900;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.available {
    background-color: #10b981; /* Green for available */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.floating-status span {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

/* Footer */
footer {
    width: 100%;
    height: var(--footer-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    font-size: 0.75rem;
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--tertiary-color);
}

/* Media Queries */
@media (max-width: 1200px) {
    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .right-column {
        align-items: flex-start;
    }
    
    .dot-characters-grid {
        max-width: 500px;
    }
    
    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
    
    .show-more-btn, .project-card, .cta, a, button, .skill-tag, .tech-tag, .skill-btn {
        cursor: pointer !important;
    }
    
    .cursor-dot {
        display: none;
    }
    
    header {
        padding: 0 1.5rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .left-column, .right-column {
        gap: 3rem;
    }
    
    .pre-heading {
        margin-left: 1.5rem;
    }
    
    .pre-heading::before {
        width: 1rem;
        left: -1.5rem;
    }
    
    .description {
        margin-left: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .description p {
        font-size: 1rem;
    }
    
    .scroll-indicator, .floating-status {
        display: none;
    }
    
    .dot-character, .dot-characters-grid, .interaction-hint, .project-character, .about-character, .skills-character {
        display: none !important;
    }
    
    .right-column {
        display: none;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .featured-project, .about-content, .skills-content {
        grid-template-columns: 1fr !important;
    }
    
    .project-visual, .about-visual, .skills-visual {
        display: none;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        flex-wrap: wrap;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .section-container, .about-text p, .project-description p {
        max-width: 100%;
    }
    
    footer {
        margin-top: 2rem;
        padding: 1.5rem;
        height: auto;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .more-projects {
        grid-template-columns: 1fr;
    }
    
    .show-more-btn {
        margin: 10px auto;
    }
}

/* Update section spacing and scrolling */
section {
    padding: 120px 5vw;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-top: 1rem;
    letter-spacing: -1px;
}

/* Featured Project Section */
.featured-project-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-project-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-project-logo {
    margin-bottom: 1rem;
}

.project-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.featured-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.featured-project h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.featured-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary-color);
    margin: 0;
}

.featured-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.featured-tech {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.featured-project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.featured-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.featured-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.github-link {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.github-link:hover {
    background: #000;
    border-color: #000;
}

.demo-link {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.featured-project-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.project-preview {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-preview:hover {
    transform: scale(1.02);
}

/* Responsive Design for Featured Project */
@media (max-width: 1024px) {
    .featured-project {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 2rem;
    }
    
    .featured-project h2 {
        font-size: 2rem;
    }
    
    .featured-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .featured-project-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .featured-project {
        padding: 1.5rem;
        gap: 30px;
    }
    
    .featured-project h2 {
        font-size: 1.75rem;
    }
    
    .featured-project-links {
        flex-direction: column;
    }
    
    .featured-link {
        justify-content: center;
    }
    
    .project-logo {
        width: 60px;
        height: 60px;
    }
}

/* Projects Section */
.projects-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.category-section {
    margin-bottom: 80px;
}

.category-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.category-intro {
    max-width: 700px;
    margin-bottom: 30px;
}

.category-intro p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    background-color: rgba(99, 102, 241, 0.03);
    cursor: none;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.project-date, .project-status {
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    background-color: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.project-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-card .tech-stack {
    margin-top: auto;
}

/* Media Queries for Project Sections */
@media (max-width: 1200px) {
    .featured-project {
        grid-template-columns: 1fr;
    }
    
    .project-visual {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 5vw;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-project {
        gap: 30px;
    }
}

.more-projects-link {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--tertiary-color);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.more-projects-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
    cursor: none;
}

/* About Section */
.about-section {
    background-color: rgba(15, 15, 15, 0.5);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    max-width: 40ch;
}

.about-visual {
    height: 100%;
    min-height: 300px;
    position: relative;
}

.about-character {
    height: 100%;
    width: 100%;
    aspect-ratio: 1;
    background-color: transparent;
    border: none;
    animation: floating 6s ease-in-out infinite reverse;
}

@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        min-height: 250px;
    }
}

/* Projects page styles */
.projects-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px;
    background-color: rgba(99, 102, 241, 0.03);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.projects-hero h1 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    max-width: 600px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .projects-hero {
        min-height: 30vh;
        padding-top: 100px;
    }
    
    .projects-hero h1 {
        font-size: 2.5rem;
    }
}

/* Floating animation for all dot characters */
@keyframes floating {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes pulse {
    0% { transform: scale3d(1, 1, 1); }
    100% { transform: scale3d(1.2, 1.2, 1); }
}

/* Skills Section */
.skills-section {
    background-color: rgba(15, 15, 15, 0.8);
    position: relative;
}

.skills-content {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 50px;
    align-items: center;
}

.skills-visual {
    height: 100%;
    min-height: 300px;
    position: relative;
}

.skills-character {
    height: 100%;
    width: 100%;
    aspect-ratio: 1;
    background-color: transparent;
    border: none;
    animation: floating 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.skill-tag:hover {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    cursor: none;
}

/* New Skill Page Buttons */
.skill-category-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-page-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: block;
}

.skill-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-page-btn:hover::before {
    left: 100%;
}

.skill-page-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.skill-page-btn:active {
    transform: translateY(0);
}

.btn-content h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.btn-content p {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

.btn-arrow {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.skill-page-btn:hover .btn-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* Skill Modals */
.skill-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--background-color);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.skill-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-header h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.modal-body {
    padding: 24px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 16px 0;
    letter-spacing: 1px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.tech-item {
    font-family: var(--body-font);
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    color: var(--text-color);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.modal-section p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
}

/* Modal scrollbar styling */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Responsive adjustments for modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 20px 16px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .tech-grid {
        gap: 8px;
    }
    
    .tech-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9998;
    pointer-events: none;
    display: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Dedicated Skill Pages Styles */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.hero-text p {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-family: var(--body-font);
    font-size: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* Floating Languages + Tooltips (software page) */
.languages-float {
    position: relative;
    width: 100%;
    height: min(520px, 60vh);
    margin-top: 40px;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
}

.language-float-item {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) scale(var(--s, 1));
    width: 74px;
    height: 74px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 15, 15, 0.82);
    backdrop-filter: blur(10px);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(99, 102, 241, 0.10);
    transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    animation: floaty var(--speed, 7.5s) ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.language-float-item i {
    font-size: 2.6rem;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.language-float-item .icon-duo {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-float-item .icon-duo i {
    font-size: 2.1rem;
}

.language-float-item:hover {
    transform: translate(-50%, -50%) scale(calc(var(--s, 1) * 1.07));
    border-color: rgba(129, 140, 248, 0.8);
    box-shadow:
        0 26px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(129, 140, 248, 0.25),
        0 0 28px rgba(99, 102, 241, 0.35);
    z-index: 5;
}

/* Tooltip */
.language-float-item::after {
    content: attr(data-title) "  •  " attr(data-level) "\A" attr(data-tip);
    white-space: pre-line;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    width: max-content;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.3px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.language-float-item::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: rgba(15, 15, 15, 0.92);
    border-left: 1px solid rgba(129, 140, 248, 0.35);
    border-top: 1px solid rgba(129, 140, 248, 0.35);
    rotate: 45deg;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.language-float-item:hover::after,
.language-float-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes floaty {
    0%   { translate: 0 0; }
    25%  { translate: 8px -10px; }
    50%  { translate: -10px -6px; }
    75%  { translate: 7px 10px; }
    100% { translate: 0 0; }
}

@media (max-width: 768px) {
    .languages-float {
        height: 420px;
    }
    .language-float-item {
        width: 66px;
        height: 66px;
    }
    .language-float-item i {
        font-size: 2.35rem;
    }
    .language-float-item .icon-duo i {
        font-size: 1.95rem;
    }
}

/* Framework Categories */
.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.framework-category h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.framework-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.framework-tag {
    font-family: var(--body-font);
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    color: var(--text-color);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.framework-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-header h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 1px;
}

.project-status {
    font-family: var(--body-font);
    font-size: 0.7rem;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.project-card p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    font-family: var(--body-font);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.project-link {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--text-color);
    transform: translateX(5px);
}

/* Back Link */
.back-link-container {
    text-align: center;
    margin: 60px 0 40px 0;
}

.back-link {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--text-color);
    transform: translateX(-5px);
}

/* Raspberry Pi Cards */
.pi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.pi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.pi-card:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.pi-model {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.pi-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.pi-specs span {
    font-family: var(--body-font);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.pi-card p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.pi-projects h4 {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.pi-projects ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pi-projects li {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--secondary-color);
    padding: 3px 0;
    position: relative;
    padding-left: 15px;
}

.pi-projects li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Flipper Zero Section */
.flipper-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.flipper-info h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.flipper-info p {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.flipper-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    font-size: 1.5rem;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent-color);
}

.feature h4 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.feature p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0;
}

/* Security Reference Section */
.security-reference-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.security-reference-info h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.security-reference-info p {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.security-reference-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.security-reference-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.security-reference-icon {
    font-size: 1.5rem;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-reference-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent-color);
}

.security-reference-feature h4 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.security-reference-feature p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0;
}

.security-reference-link {
    margin-top: 20px;
}

.security-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-block;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

.security-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.security-link:hover::before {
    left: 100%;
}

.security-link:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.security-link:active {
    transform: translateY(0);
}

/* Embedded Systems */
.embedded-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.embedded-category h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.embedded-category p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.embedded-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.embedded-tag {
    font-family: var(--body-font);
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    color: var(--text-color);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.embedded-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Hacking Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent-color);
}

.tool-card h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.tool-card p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.tool-usage h4 {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.tool-usage ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-usage li {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--secondary-color);
    padding: 3px 0;
    position: relative;
    padding-left: 15px;
}

.tool-usage li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Wireless Security */
.wireless-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.wireless-info h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.wireless-info p {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.wireless-techniques {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.technique {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.technique-icon {
    font-size: 1.5rem;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.technique-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent-color);
}

.technique h4 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.technique p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0;
}

/* Attack Cards */
.flipper-attacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.attack-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.attack-card:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.attack-card h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.attack-card p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.attack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attack-tags span {
    font-family: var(--body-font);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

/* Attack Vectors */
.vectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.vector-category h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.vector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vector-tag {
    font-family: var(--body-font);
    font-size: 0.85rem;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    color: var(--text-color);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.vector-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Responsive Design for Skill Pages */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .languages-grid,
    .frameworks-grid,
    .pi-grid,
    .tools-grid,
    .flipper-attacks-grid,
    .vectors-grid {
        grid-template-columns: 1fr;
    }
    
    .flipper-content,
    .wireless-content,
    .security-reference-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .skills-visual {
        min-height: 250px;
        order: 2;
    }
    
    .skills-categories {
        order: 1;
    }
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 576px) {
    nav ul {
        gap: 1rem;
    }
    
    header {
        flex-direction: column;
        padding: 1rem 1.5rem;
        height: auto;
    }
    
    /* more rules... */
}

@media (max-width: 480px) {
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 1.5rem;
    }
    
    nav ul {
        position: fixed;
        flex-direction: column;
        background-color: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        padding-top: 80px;
        align-items: center;
        justify-content: flex-start;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }
    
    nav ul.active {
        transform: translateX(0);
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    nav a {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .skill-tags {
        flex-wrap: wrap;
    }
}

/* Update section spacing and scrolling */

/* Dot character active section highlighting */
.dot-character.active-section {
    animation: activeSectionPulse 3s infinite alternate;
    will-change: transform;
}

.dot-character.active-section .dot[data-is-active="true"] {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
}

@keyframes activeSectionPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Show More Button Styles */
.show-more-btn {
    grid-column: 1 / -1; /* Span all columns */
    margin: 20px auto;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
    font-weight: bold;
    padding-bottom: 5px; /* Adjust for visual centering of ellipsis */
}

.show-more-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.show-more-btn.active {
    transform: rotate(180deg);
    background-color: var(--accent-color);
    color: white;
}

/* Hidden Projects Container */
.more-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    grid-column: 1 / -1; /* Span all columns */
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.more-projects.visible {
    height: auto;
    opacity: 1;
}

@media (max-width: 768px) {
    .more-projects {
        grid-template-columns: 1fr;
    }
    
    .show-more-btn {
        margin: 10px auto;
    }
}

.cta, a, button, .skill-tag, .tech-tag, .skill-btn {
    cursor: none;
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
    
    .show-more-btn, .project-card, .cta, a, button, .skill-tag, .tech-tag, .skill-btn {
        cursor: pointer !important;
    }
    
    .cursor-dot {
        display: none;
    }
    
    /* Rest of the media query rules */
    header {
        padding: 0 1.5rem;
    }
    
    /* Additional rules... */
}

/* Enhanced tech tag and skill tag animations */
.tech-tag, .skill-tag {
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
}

.tech-tag:hover, .skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    background: var(--accent-color);
    color: white;
}

/* Special animation for tech tags */
.tech-tag.reveal-on-scroll.reveal-bounce {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tech-tag.reveal-on-scroll.reveal-bounce.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Special animation for skill tags */
.skill-tag.reveal-on-scroll.reveal-fade {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.skill-tag.reveal-on-scroll.reveal-fade.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced CTA button animations */
.cta.interactive-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta.interactive-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta.interactive-hover:hover::before {
    left: 100%;
}

.cta.interactive-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Enhanced more projects link */
.more-projects-link.interactive-hover {
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.more-projects-link.interactive-hover:hover {
    transform: translateX(10px);
    color: var(--accent-color);
}

/* Skill action buttons */
.skill-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.skill-btn {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    letter-spacing: 0.5px;
    font-family: var(--body-font);
    text-transform: uppercase;
    cursor: none;
}

.skill-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-color: var(--accent-color);
}

/* Enhanced glitch effect for the main title */
.glitch-effect {
    position: relative;
    display: inline-block;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glitch-effect:hover::before {
    animation: glitch-1 0.3s infinite;
    opacity: 0.8;
    color: #ff0000;
    z-index: -1;
}

.glitch-effect:hover::after {
    animation: glitch-2 0.3s infinite;
    opacity: 0.8;
    color: #00ffff;
    z-index: -2;
}


/* Project Elements */
.project-content {
    position: relative;
}

.project-status {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.project-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.project-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: scale(1.1);
}

.project-cta {
    margin-top: 1rem;
}

.project-visual {
    height: 100%;
    min-height: 300px;
    position: relative;
}

.project-character {
    height: 100%;
    width: 100%;
    aspect-ratio: 1;
    background-color: transparent;
    border: none;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    animation: floating 5s ease-in-out infinite;
}

/* Projects Section */