/* Base styles and variables */
:root {
    --bg-color: #0e1212;
    --text-color: #f0f0f0;
    --accent-color: #64ffda;
    --secondary-color: #8892b0;
    --tertiary-color: #495670;
    --card-bg: #1a1e22;
    --card-hover: #232a34;
    --terminal-bg: #101419;
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* Light Theme Variables */
.light-theme {
    --bg-color: #f8f8f8;
    --text-color: #222222;
    --accent-color: #0097a7;
    --secondary-color: #546e7a;
    --tertiary-color: #78909c;
    --card-bg: #ffffff;
    --card-hover: #e0f7fa;
    --terminal-bg: #263238;
}

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

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

/* Background effects */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(14, 18, 18, 0.5), rgba(10, 12, 14, 1));
    z-index: -1;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    text-align: center;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: rgba(14, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.btn-primary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--tertiary-color);
}

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

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    justify-content: center;
}

/* Glitch effect */
.glitch {
    position: relative;
    color: var(--text-color);
    display: inline-block;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(78px, 9999px, 15px, 0);
    }
    5% {
        clip: rect(18px, 9999px, 87px, 0);
    }
    10% {
        clip: rect(42px, 9999px, 58px, 0);
    }
    15% {
        clip: rect(45px, 9999px, 33px, 0);
    }
    20% {
        clip: rect(8px, 9999px, 92px, 0);
    }
    25% {
        clip: rect(90px, 9999px, 98px, 0);
    }
    30% {
        clip: rect(8px, 9999px, 67px, 0);
    }
    35% {
        clip: rect(37px, 9999px, 25px, 0);
    }
    40% {
        clip: rect(38px, 9999px, 53px, 0);
    }
    45% {
        clip: rect(66px, 9999px, 9px, 0);
    }
    50% {
        clip: rect(40px, 9999px, 31px, 0);
    }
    55% {
        clip: rect(67px, 9999px, 20px, 0);
    }
    60% {
        clip: rect(89px, 9999px, 69px, 0);
    }
    65% {
        clip: rect(65px, 9999px, 28px, 0);
    }
    70% {
        clip: rect(25px, 9999px, 97px, 0);
    }
    75% {
        clip: rect(52px, 9999px, 62px, 0);
    }
    80% {
        clip: rect(10px, 9999px, 98px, 0);
    }
    85% {
        clip: rect(20px, 9999px, 67px, 0);
    }
    90% {
        clip: rect(79px, 9999px, 57px, 0);
    }
    95% {
        clip: rect(25px, 9999px, 12px, 0);
    }
    100% {
        clip: rect(6px, 9999px, 5px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(57px, 9999px, 93px, 0);
    }
    5% {
        clip: rect(79px, 9999px, 44px, 0);
    }
    10% {
        clip: rect(21px, 9999px, 4px, 0);
    }
    15% {
        clip: rect(37px, 9999px, 56px, 0);
    }
    20% {
        clip: rect(32px, 9999px, 23px, 0);
    }
    25% {
        clip: rect(84px, 9999px, 75px, 0);
    }
    30% {
        clip: rect(67px, 9999px, 79px, 0);
    }
    35% {
        clip: rect(26px, 9999px, 31px, 0);
    }
    40% {
        clip: rect(89px, 9999px, 39px, 0);
    }
    45% {
        clip: rect(8px, 9999px, 45px, 0);
    }
    50% {
        clip: rect(91px, 9999px, 65px, 0);
    }
    55% {
        clip: rect(77px, 9999px, 95px, 0);
    }
    60% {
        clip: rect(23px, 9999px, 31px, 0);
    }
    65% {
        clip: rect(69px, 9999px, 48px, 0);
    }
    70% {
        clip: rect(49px, 9999px, 41px, 0);
    }
    75% {
        clip: rect(52px, 9999px, 33px, 0);
    }
    80% {
        clip: rect(12px, 9999px, 2px, 0);
    }
    85% {
        clip: rect(13px, 9999px, 66px, 0);
    }
    90% {
        clip: rect(57px, 9999px, 85px, 0);
    }
    95% {
        clip: rect(29px, 9999px, 51px, 0);
    }
    100% {
        clip: rect(22px, 9999px, 39px, 0);
    }
}

/* Terminal */
.terminal {
    background-color: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    margin: 30px auto 0;
    font-family: var(--font-mono);
    animation: terminal-glow 3s infinite alternate;
}

@keyframes terminal-glow {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    100% {
        box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
    }
}

.terminal-header {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.terminal-body {
    padding: 15px;
    height: 100px;
    overflow-y: auto;
}

.line {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.prompt {
    color: #27c93f;
    margin-right: 8px;
}

#typed-output {
    color: #f0f0f0;
}

/* Sections */
section {
    padding: 100px 0;
}

/* About Section */
.about {
    background-color: rgba(10, 15, 20, 0.3);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Skills Section */
.skills-content {
    max-width: 900px;
    margin: 0 auto;
}

.skill-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .skill-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-category {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -8px;
    left: 0;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.skill-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #41b883);
    border-radius: 3px;
    transition: width 1.5s ease-out;
    animation: skill-fill 1.5s ease-out forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes skill-fill {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.tech-item img, .tech-item svg {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
}

.tech-item span {
    font-size: 0.85rem;
    text-align: center;
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.project-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--accent-color);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

/* Contact Section */
.contact {
    background-color: rgba(10, 15, 20, 0.3);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-size: 1.1rem;
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: var(--card-hover);
    transform: translateX(5px);
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.services h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-link:hover {
    background-color: var(--card-hover);
    transform: translateY(-5px);
}

.service-link i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

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

.footer-content p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        text-align: center;
        width: 100%;
    }
    
    .language-selector {
        margin-left: 0;
        margin-top: 15px;
        align-self: flex-start;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Custom Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 30px;
    position: relative;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.language-selector select {
    display: none; /* Hide the default select element */
}

.language-selector span {
    display: none;
}

.custom-select {
    position: relative;
    cursor: pointer;
}

.select-selected {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 8px 25px 8px 12px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
}

.select-selected:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.select-selected::after {
    content: '▼';
    font-size: 0.6rem;
    color: var(--accent-color);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.select-selected.select-arrow-active::after {
    transform: translateY(-50%) rotate(180deg);
}

.select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 110;
    margin-top: 5px;
    background-color: var(--card-bg);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

.select-items.select-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-item {
    padding: 10px 12px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.select-item:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
}

.select-item.same-as-selected {
    background-color: rgba(100, 255, 218, 0.05);
    color: var(--accent-color);
}

/* Light theme adjustments for language selector */
.light-theme .select-selected {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.light-theme .select-selected::after {
    color: var(--accent-color);
}

.light-theme .select-selected:hover {
    background-color: rgba(0, 151, 167, 0.1);
}

.light-theme .select-items {
    background-color: var(--card-bg);
    border-color: var(--accent-color);
}

.light-theme .select-item:hover {
    background-color: rgba(0, 151, 167, 0.1);
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 15px;
        align-self: flex-start;
    }
    
    .select-items {
        width: 100%;
    }
}

/* Animated particles background */
.particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

/* New Call-to-Action Button Effects */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

/* New Dark / Light Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.theme-toggle:hover {
    transform: translateY(-5px);
}

.theme-toggle:hover::before {
    transform: translateX(0);
}

.theme-toggle i {
    color: var(--accent-color);
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.light-theme .theme-toggle i {
    color: var(--accent-color);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* New feature - Showcase Section for Telegram Bot and Fakturace */
.showcase {
    padding: 80px 0;
    background-color: rgba(30, 36, 40, 0.3);
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent, var(--bg-color));
    z-index: -1;
}

.showcase-title {
    margin-bottom: 60px;
}

.showcase-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.showcase-item {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.showcase-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-content {
    padding: 25px;
}

.showcase-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.showcase-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.showcase-features {
    margin-bottom: 20px;
}

.showcase-feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.showcase-feature i {
    color: var(--accent-color);
    margin-right: 10px;
}

.showcase-cta {
    display: flex;
    justify-content: space-between;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top:hover::before {
    transform: translateX(0);
}

.back-to-top i {
    color: var(--accent-color);
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

/* Light Theme Specific Styles */
.light-theme .overlay {
    background: radial-gradient(circle at 50% 50%, rgba(248, 248, 248, 0.5), rgba(248, 248, 248, 1));
}

.light-theme .noise {
    opacity: 0.02;
}

.light-theme header {
    background-color: rgba(248, 248, 248, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .terminal {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .terminal-body,
.light-theme .terminal-title,
.light-theme #typed-output,
.light-theme .prompt {
    color: var(--text-color);
}

.light-theme .project-card,
.light-theme .showcase-item,
.light-theme .skill-category {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.light-theme .footer-links a,
.light-theme .contact-link i,
.light-theme .service-link i {
    color: var(--accent-color);
}

.light-theme .particles-js canvas {
    opacity: 0.3;
}

/* Theme Toggle Icon Change */
.light-theme .theme-toggle i {
    color: #FF9800;
}

.light-theme .skill-progress {
    background-color: var(--accent-color);
}

/* Animations for elements on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

/* Hover effects for showcase items */
.showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(100, 255, 218, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.showcase-item:hover::before {
    transform: translateX(100%);
}

.showcase-image {
    transition: transform 0.5s ease;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.03);
}

/* Pulse animation for call-to-action buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

.showcase-cta .btn-primary {
    animation: pulse 2s infinite;
}

/* Enhanced navigation effects */
.nav-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.nav-links a::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Add subtle text shadow to headings */
h1, h2, h3 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.light-theme h1, 
.light-theme h2, 
.light-theme h3 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Enhanced terminal typing effect */
.terminal-body {
    position: relative;
}

.terminal-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 50%, rgba(100, 255, 218, 0.05));
    background-size: 200% 100%;
    animation: terminal-scan 3s linear infinite;
}

@keyframes terminal-scan {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar-thumb {
    background: var(--tertiary-color);
    border-radius: 10px;
    border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

/* JavaScript-based scroll animations */
.js-fadeInUp {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-fadeInLeft {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-fadeInRight {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-visible {
    opacity: 1;
    transform: translate(0, 0);
}

