/* ==========================================================================
   Section-Specific Styles for Thomas J Butler Portfolio
   Matrix-themed section styling with advanced effects
   Author: Thomas J Butler
   ========================================================================== */

/* Import Fonts
   ========================================================================== */
   @import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* Introduction Section
   ========================================================================== */
   #introduction {
    padding-top: 30px;
    text-align: center;
}

.introduction-img {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
}

.introduction-img img {
    border-radius: 10px;
    box-shadow: 0 0 15px #00FF00;
    max-width: 150px;
    transition: transform 0.3s ease;
}

.introduction-img img:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    #introduction {
        padding-top: 50px;
    }

    .introduction-img {
        flex-direction: row;
        padding: 130px;
        scale: 1.5;
    }

    .introduction-img img {
        max-width: 200px;
    }
}

/* Introduction Skills Grid Section - Three Columns */

/* Grid container */
.introduction-expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    gap: 2rem;
    padding: 2rem 0;
}

.introduction-expertise-card {
    background: rgba(0, 20, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Title styling */
.introduction-expertise-card h3 {
    font-family: 'VT323', monospace;
    color: #00FF00;
    font-size: 1.8em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.introduction-h2 {
    color: #00FF00;
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0
}

.introduction-heading {
    color: #00FF00;
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0
}

/* Description area */
.introduction-expertise-description {
    color: #88FF88;
    font-size: 0.95em;
    text-align: center;
    line-height: 1.6;
    margin: 1rem 0;
    flex-grow: 1;
}

/* Tags container */
.introduction-expertise-tags {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    justify-content: start;
    padding: 1rem 0;
}

.introduction-expertise-tags span {
    text-align: center;
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    padding: 0.5rem;
    font-size: 0.85em;
    color: #00FF00;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skill level indicator */
.introduction-expertise-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'VT323', monospace;
    color: #00FF00;
    font-size: 1em;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    background: rgba(0, 20, 0, 0.8);
}

/* Base card transitions */
.introduction-expertise-card {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Advanced hover effects for cards */
.introduction-expertise-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.15),
        0 0 50px rgba(0, 255, 0, 0.1),
        0 0 70px rgba(0, 255, 0, 0.05);
}

.introduction-expertise-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 255, 0, 0.4);
}

.introduction-expertise-card:hover::after {
    opacity: 1;
}

/* Pulsing glow effect */
.introduction-expertise-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background: rgba(0, 255, 0, 0.1);
    z-index: -2;
}

/* Enhanced tag hover effects */
.introduction-expertise-tags span {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.introduction-expertise-tags span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 255, 0, 0.1),
        transparent
    );
    transform: translateX(-100%);
}

.introduction-expertise-tags span:hover {
    background: rgba(0, 40, 0, 0.9);
    border-color: rgba(0, 255, 0, 0.6);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.introduction-expertise-tags span:hover::before {
    animation: shimmer 1.5s infinite;
}

/* Keyframe Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Matrix-style scan line effect */
.introduction-expertise-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    animation: scanline 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.introduction-expertise-card:hover::after {
    opacity: 1;
}

@keyframes scanline {
    0% {
        top: -100%;
    }
    100% {
        top: 300%;
    }
}

/* Smooth transitions for all properties */
.introduction-expertise-card *,
.introduction-expertise-tags span * {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Additional spacing for tags when there are many */
.introduction-expertise-tags:has(span:nth-child(n+5)) {
    padding-top: 1.5rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .introduction-expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Add overflow control to body/html if needed */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    .introduction-heading {
        padding: 20px;
    }

    /* Container styles */
    .introduction-expertise-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .introduction-expertise-card {
        min-height: unset;
        padding: 1rem;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        overflow: hidden;
    }
    
    .introduction-expertise-tags {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Keep two columns */
        gap: 0.5rem; /* Slightly larger gap */
        padding: 0.5rem;
        width: 95%;
        margin: 0 auto;
    }
    
    .introduction-expertise-tags span {
        padding: 0.4rem 0.6rem;
        font-size: 0.6em;
        white-space: normal; /* Allow text to wrap */
        min-height: 2.5em; /* Give enough height for two lines */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        line-height: 1.2;
        height: auto; /* Allow height to adjust to content */
    }
    
    .introduction-expertise-description {
        font-size: 0.8em;
        margin: 0.3rem auto;
        line-height: 1.4;
        text-align: center;
        width: 95%;
        padding: 0 0.5rem; 
    }
    
    .introduction-expertise-card h3 {
        font-size: 1.3em;
        margin-bottom: 0.5rem;
        text-align: center;
        width: 95%;
    }
    
    .introduction-expertise-level {
        font-size: 0.8em;
        padding: 0.2rem 0.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .introduction-expertise-icon {
        transform: scale(0.8);
        margin: 0 auto;
    }

    /* Main content wrapper if you have one */
    .main-content, 
    main, 
    [role="main"] {
        overflow-x: hidden;
        width: 100%;
    }
}

/* Introduction Page Tablet Styles (769px to 1024px) */
@media screen and (min-width: 700px) and (max-width: 992px) {
    /* Header & Navigation */
    header {
        padding: 1rem 0;
    }
    
    header .container {
        max-width: 95%;
        margin: 0 auto;
    }

    /* Title adjustments */
    header h1, .logo {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    header h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    /* Navigation adjustments */
    nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem;
        margin: 0;
        width: auto;
    }
    
    nav ul li {
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
        font-size: 0.85rem;
    }

    /* Introduction section */
    #introduction {
        margin: 3rem;
    }

    #introduction .container {
        width: 80%;
        margin: 0 auto;
        padding: 1rem;
    }

    #introduction h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    #introduction h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        text-align: center;
        padding: 0 1rem;
    }

    #introduction p {
        font-size: 0.95rem;
        font-family: 'VT323', monospace;
        line-height: 1.6;
        text-align: center;
        width: 85%;
        margin: 1rem auto;
        padding: 0;
    }

    .introduction-img {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 2rem auto;
        padding: 2rem 2rem;
        width: 90%;
    }

    .introduction-img img {
        max-width: 30%;
        height: auto;
        border-radius: 8px;
    }

    /* Version Time Travel button */
    .version-timetravel {
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }
    
    .version-timetravel a {
        font-size: 0.85rem;
    }
}

/* Skills Section
   ========================================================================== */
#skills, 
#learning {
    background: rgba(0, 20, 0, 0.8);
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

#skills::before, 
#learning::before {
    background: 
        linear-gradient(45deg, transparent 49%, rgba(0, 255, 0, 0.1) 50%, transparent 51%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.05) 0%, transparent 100%);
    background-size: 10px 10px, 100px 100px;
    content: '';
    inset: 0;
    position: absolute;
    z-index: 1;
}

#skills .container, 
#learning .container {
    position: relative;
    z-index: 2;
}

#skills h2, 
#learning h2 {
    color: #00FF00;
    font-family: 'VT323', monospace;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

@media (min-width: 768px) {
    #skills,
    #learning {
        padding: 60px 0;
    }

    #skills h2,
    #learning h2 {
        font-size: 3.5em;
    }
}

#skills > p,
#learning > p {
    color: #CCFFCC;
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    #skills > p,
    #learning > p {
        font-size: 1.3em;
        margin-bottom: 40px;
    }
}

/* Skills List Styling
========================================================================== */
.skills-list {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
    list-style-type: none;
    padding: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .skills-list {
        gap: 30px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.skills-list li {
    background: rgba(0, 40, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
}

/* Matrix Rain Effect */
.skills-list li::before {
    animation: matrixRain 2s linear infinite;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 255, 0, 0.3) 45%, 
        rgba(0, 255, 0, 0.3) 55%, 
        transparent 100%);
    content: '';
    height: 200%;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: -100%;
    transition: opacity 0.3s ease;
    width: 100%;
}

/* Digital Circuit Pattern */
.skills-list li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(0, 255, 0, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 70% 50%, rgba(0, 255, 0, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 10px 10px, 10px 10px;
    background-position: 0 0, 0 0, -5px -5px, -5px -5px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(1.1);
    border-radius: 15px;
    z-index: 1;
}

.skills-list li:hover {
    background: rgba(0, 60, 0, 0.8);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.3),
                inset 0 0 15px rgba(0, 255, 0, 0.2);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 255, 0, 0.4);
}

.skills-list li:hover::before {
    opacity: 1;
}

.skills-list li:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Skill Item Content */
.skills-list li i {
    color: #00FF00;
    font-size: 1.5em;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.skills-list li:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.skills-list li h3 {
    color: #00FF00;
    font-family: 'VT323', monospace;
    font-size: 1.8em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Hover Animations */
@keyframes matrixRain {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(50%); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

/* Skill Description Animation */
.skills-list li p {
    color: #CCFFCC;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.skills-list li:hover p {
    opacity: 1;
    transform: translateY(5px);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .skills-list {
        padding: 1rem;
    }
    
    .skills-list li {
        padding: 1rem;
    }
    
    .skills-list li h3 {
        font-size: 1.5em;
    }
}


/* Services Section
   ========================================================================== */
   #services {
    background: rgba(0, 10, 0, 0.95);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00FF00, transparent);
    animation: scanningTop 2s linear infinite;
}

.services-list {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    list-style-type: none;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.services-list li {
    background: linear-gradient(145deg, rgba(0, 20, 0, 0.9), rgba(0, 40, 0, 0.8));
    border: 1px solid #00FF00;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
    min-height: 280px;
    backdrop-filter: blur(5px);
}

.services-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00FF00, transparent);
    animation: scanning 2s linear infinite;
}

.services-list li:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    border-color: #00FF00;
    background: linear-gradient(145deg, rgba(0, 30, 0, 0.95), rgba(0, 50, 0, 0.85));
}

.services-list h3 {
    color: #00FF00;
    font-family: 'VT323', monospace;
    font-size: 2.2em;
    width: 100%;
    text-align: center;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    position: relative;
    padding-bottom: 15px;
}

.services-list h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00FF00;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.services-list li:hover h3::after {
    width: 80%;
}

.services-list p {
    color: #CCFFCC;
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 0;
    opacity: 0.9;
    width: 100%;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

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

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

@media (min-width: 768px) {
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-list li,
    .services-list li::before,
    #services::before {
        animation: none;
        transition: none;
    }
}

/* Terminal Styles
   ========================================================================== */
.game-terminal {
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .game-terminal {
        max-width: 800px;
    }
}

.terminal-window {
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #00FF00;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    height: 500px;
    padding: 20px;
    position: relative;
}

.terminal-output {
    color: #00FF00;
    font-size: 16px;
    height: calc(100% - 40px);
    line-height: 1.5;
    margin-bottom: 20px;
    overflow-y: auto;
}

.terminal-input-line {
    align-items: center;
    display: flex;
    position: relative;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
    padding: 5px;
    width: 100%;
}

.terminal-input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

/* Game Container
   ========================================================================== */
#game-container {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00FF00;
    border-radius: 10px;
    margin: 20px 0;
    min-height: 400px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

#game-input {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00FF00;
    color: #00FF00;
    font-family: 'VT323', monospace;
    margin-top: 10px;
    padding: 10px;
    width: 100%;
}

#game-output {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00FF00;
    color: #00FF00;
    font-family: 'VT323', monospace;
    margin-top: 20px;
    max-height: 600px;
    min-height: 400px;
    overflow-y: auto;
    padding: 10px;
    white-space: pre-wrap;
}

#start-game {
    background: #00FF00;
    border: none;
    color: #000;
    cursor: pointer;
    font-family: 'VT323', monospace;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

#start-game:hover {
    background: #00CC00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.loading-status {
    color: #00FF00;
    font-family: 'VT323', monospace;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Python Terminal Overrides
   ========================================================================== */
.py-terminal-docked {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    position: static !important;
    width: 100% !important;
}

.py-terminal {
    background: transparent !important;
    border: none !important;
    color: #00FF00 !important;
    font-family: 'VT323', monospace !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: pre-wrap !important;
}

.py-terminal pre {
    background: transparent !important;
    color: #00FF00 !important;
    display: block !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
}

body > py-terminal.py-terminal-docked {
    display: none !important;
}

/* Version History Styles
   ========================================================================== */
   .version-container {
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid #00FF00;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
    padding: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.version-container:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

.version-container::before {
    animation: matrixBg 20s linear infinite;
    background: linear-gradient(45deg, 
        transparent 48%, 
        rgba(0, 255, 0, 0.1) 49%, 
        rgba(0, 255, 0, 0.1) 51%, 
        transparent 52%);
    background-size: 10px 10px;
    content: '';
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.3s ease;
}

.version-container:hover::before {
    opacity: 1;
}

.version-header {
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    text-align: center;
}

.version-title {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.version-number {
    color: #00FF00;
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.version-date {
    color: #00FF00;
    font-family: 'VT323', monospace;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .version-container {
        margin: 2rem 0;
        padding: 2rem;
    }

    .version-header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    } 

    .version-title {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Version Links and Screenshots
   ========================================================================== */
.version-link {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00FF00;
    border-radius: 5px;
    color: #00FF00;
    font-family: 'VT323', monospace;
    overflow: hidden;
    padding: 0.5rem 1rem;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.version-link:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.version-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.screenshot-container {
    perspective: 1000px;
    position: relative;
    transition: all 0.3s ease;
}

.screenshot-container:hover {
    transform: scale(1.05);
}

.screenshot {
    border: 2px solid #00FF00;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    height: auto;
    max-width: 100%;
    transition: transform 0.5s ease;
}

.screenshot-container:hover .screenshot {
    transform: rotateY(10deg);
}

/* Animation Keyframes
   ========================================================================== */
@keyframes matrixBg {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

@keyframes matrixRain {
    0% { top: -100%; }
    100% { top: 200%; }
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 0, 0.7); }
    25% { text-shadow: -2px 0 #00FFFF, 2px 2px #FF00FF; }
    50% { text-shadow: 2px -2px #00FFFF, -2px 2px #FF00FF; }
    75% { text-shadow: -2px 2px #00FFFF, 2px -2px #FF00FF; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* View-Specific Styles
   ========================================================================== */
.desktop-view {
    width: 100%;
}

.mobile-view {
    width: 150px;
}

@media (min-width: 768px) {
    .desktop-view {
        width: 600px;
    }

    .mobile-view {
        width: 200px;
    }
}

.device-label {
    color: #00FF00;
    font-family: 'VT323', monospace;
    left: 50%;
    position: absolute;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    top: -25px;
    transform: translateX(-50%);
}

/* Timeline and Changes
   ========================================================================== */
   .version-changes {
    margin-top: 2rem;
    position: relative;
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.version-changes h3 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 1.8em;
    justify-content: start;
    text-transform: uppercase;
    letter-spacing: 2px;
    letter-spacing: 10px;
    color: #00FF00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.changes-list {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.changes-list li {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 8px;
    cursor: default;
    margin: 0;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.changes-list li:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.3);
}

.changes-list li::before {
    color: #00FF00;
    content: '→';
    display: inline-block;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.changes-list li:hover::before {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.changes-list li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(0, 255, 0, 0.1) 49%, rgba(0, 255, 0, 0.1) 51%, transparent 52%);
    background-size: 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.changes-list li:hover::after {
    opacity: 1;
}

/* Matrix rain effect on hover */
@keyframes matrixRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.changes-list li:hover::before {
    animation: pulse 1.5s infinite;
}

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

/* Responsive layout */
@media (max-width: 768px) {
    .changes-list {
        grid-template-columns: 1fr;
    }
    
    .version-changes {
        padding: 1rem;
    }
    
    .changes-list li {
        font-size: 0.9em;
    }
}

.timeline-connector {
    background: linear-gradient(to bottom, 
        transparent,
        #00FF00,
        #00FF00,
        transparent
    );
    bottom: 0;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    z-index: -1;
}


/* Version TimeTravel Button Styles
   ========================================================================== */
/* Base styles for the button */
nav ul li.version-timetravel {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00FF00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

nav ul li.version-timetravel a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'VT323', monospace;
}

nav ul li.version-timetravel:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    nav ul li.version-timetravel {
        display: none; /* Hide in nav on mobile */
    }

    /* Show in introduction section on mobile */
    body.index .version-timetravel-mobile {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }

    body.index .version-timetravel-mobile .version-link {
        background: rgba(0, 255, 0, 0.2);
        border: 1px solid #00FF00;
        border-radius: 5px;
        color: #00FF00;
        display: inline-flex;
        font-family: 'VT323', monospace;
        gap: 5px;
        padding: 0.5rem 1rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    body.index .version-timetravel-mobile .version-link:hover {
        background: rgba(0, 255, 0, 0.3);
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
        transform: translateY(-2px);
    }
}

/* Desktop-specific styles */
@media (min-width: 768px) {
    nav ul li.version-timetravel {
        display: flex; /* Show in nav on desktop */
    }

    /* Hide mobile version */
    .version-timetravel-mobile {
        display: none;
    }
}

/* ==========================================================================
   Media Queries and Responsive Adjustments
   Mobile-first approach with breakpoint-specific modifications
   ========================================================================== */

/* Small Mobile Devices (up to 480px)
   ========================================================================== */
   @media screen and (max-width: 480px) {
    /* Header Adjustments */
    header h1 { 
        font-size: 1.5rem; 
    }
    
    header h3 {
        display: none;
    }

    header .container {
        column-gap: 18px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0px 20px;
    }

    /* Navigation */
    .logo-container {
        display: none;
    }

    nav {
        display: inline-flex;
        flex-direction: column;
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.show {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 10px 10px;
        padding: 10px 10px;
        text-align: center;
        width: 100%;
    }

    /* Layout */
    main {
        padding-top: 100px;
        display: flex;
        flex-direction: column;
        align-content: center;
        flex-wrap: wrap;
    }

    /* Introduction Section */
    .introduction {
        padding-top: 50px;
    }

    .introduction-heading {
        font-size: 1.5rem;
    }

    .introduction-h2 {
        font-size: 1.5rem;
    }

    /* Hide Scrolling Text and Disclaimer */
    .scrolling-text {
        display: none !important;
    }

    .disclaimer-text {
        display: none !important;
    }

    /* Add padding to button */
    .version-timetravel-mobile {
        padding-bottom: 20px;
    }

    .introduction-img {
        padding: 1rem;
        display: flex;
        justify-content: center;
        margin: 1rem auto;
    }

    .introduction-img img {
        max-width: 200px; 
        width: 90%; 
        height: auto;
        margin: 0 auto;
    }
    
    .introduction-img img:not(:first-child) {
        display: none; /* Hides all images except the first one */
    }

    .introduction-img img:first-child {
        max-width: 200px;
        width: 90%;
        height: auto;
        margin: 0 auto;
    }
}

    @media screen and (min-width: 481px) and (max-width: 768px) {
        .introduction-img {
            padding: 1rem;
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 1rem auto;
            width: 100%;
        }
    
        .introduction-img img {
            max-width: 150px;
            width: 30%;
            height: auto;
        }
    }

    /* Grid Layouts */
    .grid-container {
        display: flex;
        gap: 30px;
        flex-direction: column;
        align-content: flex-start;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .grid-item {
        border: none;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 15px;
        align-items: center;
        justify-content: center;
    }

    .grid-item p {
        padding-left: 25px;
    }

    .grid-item img {
        height: auto;
        border-radius: 20px;
    }

    /* Container */
    .container {
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Footer */
    footer {
        padding: 15px;
        text-decoration: none;
    }


/* Address Section */
    #address {
    display: flex;
    }

/* Tablet and Small Desktop (600px to 768px)
   ========================================================================== */
@media screen and (min-width: 600px) and (max-width: 768px) {
    /* Header */
    header h1 { 
        font-size: 1.5rem; 
    }

    header .container {
        display: flex;
        column-gap: 25px;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 0px 20px;
        flex-direction: row;
    }

    /* Layout */
    main {
        padding-top: 100px;
        display: flex;
        flex-direction: column;
        align-content: center;
        flex-wrap: wrap;
    }

    /* Navigation */
    .logo-container {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    nav {
        display: inline-flex;
        flex-direction: column;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.show {
        display: flex;
    }


    
    /* Grid and Containers */
    .grid-container {
        display: flex;
        gap: 30px;
        flex-direction: column;
        align-content: flex-start;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .container {
        max-width: 300px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Images and Content */
    .introduction-img {
        padding: 130px;
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
        scale: 1.5;
    }

    .introduction-img img {
        max-width: 150px;
    }
}

/* Medium Devices (768px to 1023px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-container {
        display: flex;
        gap: 30px;
        align-content: center;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    header .container,
    footer.container {
        max-width: 768px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Version History Adjustments */
    .desktop-view {
        width: 100%;
        max-width: 400px;
    }
    
    .mobile-view {
        width: 150px;
    }

    .version-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .version-title {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Larger Devices (1024px and above)
   ========================================================================== */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 50px;
    }

    /* Navigation */
    nav ul {
        flex-direction: row;
    }
}

/* Shared Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
    /* Skills and Services */
    .skills-list,
    .services-list {
        grid-template-columns: 1fr;
    }
    
    #services h2,
    #skills h2 {
        font-size: 2.8em;
    }
    
    #services > p,
    #skills > p {
        font-size: 1.1em;
    }

    /* Items */
    .skill-item, 
    .service-item { 
        width: 100%; 
    }
}

/* Latest Updates Section Homepage */ 
#latest-updates {
    padding: 4rem 0;
    background: rgba(0, 20, 0, 0.3);
 }
 
 .section-title {
    color: #00FF00;
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
 }
 
 .updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
 }
 
 .update-card {
    background: rgba(0, 20, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
 }
 
 .update-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.4);
 }
 
 .update-card h3 {
    color: #00FF00;
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
 }
 
 .update-card p {
    color: #FF00FF;
    font-size: 1rem;
    text-align: center;
    line-height: 1.6;
 }
 
 .card-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 1rem 0;
 }
 
 .card-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
 }
 
 .update-card:hover .card-image img {
    transform: scale(1.05);
 }
 
 .card-action {
    margin-top: auto;
    text-align: center;
 }
 
 
 /* Responsive Styles */
 @media (max-width: 1024px) {
    .updates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .update-card {
        padding: 1.5rem;
    }
 }
 
 @media (max-width: 768px) {
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .update-card {
        padding: 1rem;
    }
    
    .update-card h3 {
        font-size: 1.5rem;
    }
    
    .update-card p {
        font-size: 0.9rem;
    }
    
    .neo-matrix-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
 }
 
 /* Animation Keyframes */
 @keyframes matrixRain {
    0% { top: -100%; }
    100% { top: 200%; }
 }


/* Sitemap Specific Styles */
#sitemap {
    padding: 80px 0;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.sitemap-section {
    background: rgba(0, 20, 0, 0.7);
    border: 1px solid #00FF00;
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sitemap-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.sitemap-section h3 {
    color: #00FF00;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border-bottom: 1px solid #00FF00;
    padding-bottom: 10px;
}

.sitemap-section ul {
    list-style: none;
    padding: 0;
}

.sitemap-section ul li {
    margin: 10px 0;
    transition: all 0.3s ease;
}

.sitemap-section ul li a {
    color: #00FF00;
    text-decoration: none;
    display: block;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sitemap-section ul li a:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateX(10px);
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
    
    .sitemap-section {
        margin: 10px;
    }
}

/* About Page Main Styles */
:root {
    --neon-green: #00ff00;
    --dark-green: rgba(0, 20, 0, 0.8);
    --light-green: #88ff88;
    --glow-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    --matrix-bg: rgba(0, 0, 0, 0.95);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-bg: rgba(0, 20, 0, 0.7);
    --border-glow: 1px solid rgba(0, 255, 0, 0.2);
    --text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: var(--matrix-bg);
    padding: 4rem 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 48%,
        rgba(0, 255, 0, 0.1) 49%,
        rgba(0, 255, 0, 0.1) 51%,
        transparent 52%);
    background-size: 10px 10px;
    animation: matrixBg 20s linear infinite;
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Glitch Text Effect */
.glitch-text {
    font-size: 4rem;
    font-weight: 700;
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    text-shadow: 
        0 0 5px var(--neon-green),
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip: rect(0, 900px, 0, 0);
    animation: glitch 2s infinite linear alternate-reverse;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
}

/* Achievement Counters */
.achievement-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.counter {
    background: var(--dark-green);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.counter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        transparent 48%,
        rgba(0, 255, 0, 0.1) 49%,
        rgba(0, 255, 0, 0.1) 51%,
        transparent 52%);
    background-size: 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.counter:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(0, 255, 0, 0.2),
        0 0 30px rgba(0, 255, 0, 0.1) inset;
}

.counter:hover::before {
    opacity: 1;
    animation: matrixBg 20s linear infinite;
}

.count {
    font-size: 4rem;
    font-family: 'VT323', monospace;
    color: var(--neon-green);
    text-shadow: var(--glow-shadow);
    margin-bottom: 1rem;
    position: relative;
}

.count::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--neon-green);
    box-shadow: var(--glow-shadow);
}

.label {
    color: var(--light-green);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--neon-green);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--neon-green);
    border-radius: 15px;
    margin: 0 auto 1rem;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

/* Animations */
@keyframes matrixBg {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

@keyframes glitch {
    0% { clip: rect(44px, 450px, 56px, 0); }
    5% { clip: rect(9px, 450px, 89px, 0); }
    10% { clip: rect(78px, 450px, 98px, 0); }
    15% { clip: rect(23px, 450px, 45px, 0); }
    20% { clip: rect(67px, 450px, 89px, 0); }
    25% { clip: rect(12px, 450px, 34px, 0); }
    30% { clip: rect(90px, 450px, 101px, 0); }
    35% { clip: rect(45px, 450px, 67px, 0); }
    40% { clip: rect(56px, 450px, 78px, 0); }
    45% { clip: rect(23px, 450px, 45px, 0); }
    50% { clip: rect(89px, 450px, 123px, 0); }
    55% { clip: rect(12px, 450px, 34px, 0); }
    60% { clip: rect(78px, 450px, 90px, 0); }
    65% { clip: rect(34px, 450px, 56px, 0); }
    70% { clip: rect(67px, 450px, 89px, 0); }
    75% { clip: rect(12px, 450px, 34px, 0); }
    80% { clip: rect(45px, 450px, 67px, 0); }
    85% { clip: rect(23px, 450px, 45px, 0); }
    90% { clip: rect(89px, 450px, 123px, 0); }
    95% { clip: rect(12px, 450px, 34px, 0); }
    100% { clip: rect(78px, 450px, 90px, 0); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--neon-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    box-shadow: var(--glow-shadow);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background: var(--dark-green);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 15px;
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--neon-green);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--glow-shadow);
}

.left .timeline-content::after {
    right: -67px;
}

.right .timeline-content::after {
    left: -67px;
}

.timeline-content:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
}

.timeline-content h3 {
    color: var(--neon-green);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--light-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #fff;
    line-height: 1.6;
}

/* Story Section */
.story-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.story-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: var(--border-glow);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.1);
    transition: var(--transition-smooth);
}

.story-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 48%,
        rgba(0, 255, 0, 0.1) 49%,
        rgba(0, 255, 0, 0.1) 51%,
        transparent 52%);
    background-size: 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.story-content:hover::before {
    opacity: 1;
    animation: matrixBg 20s linear infinite;
}

.highlight-text {
    font-size: 1.6rem;
    color: var(--neon-green);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    position: relative;
    padding-left: 2rem;
}

.highlight-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--neon-green);
    box-shadow: var(--glow-shadow);
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.achievement-list li {
    padding: 1rem 0 1rem 2rem;
    position: relative;
    color: #fff;
    transition: var(--transition-smooth);
}

.achievement-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    transition: transform 0.3s ease;
}

.achievement-list li:hover {
    transform: translateX(10px);
}

.achievement-list li:hover::before {
    transform: translateX(5px);
    text-shadow: var(--glow-shadow);
}

/* Focus Grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.focus-item {
    background: var(--dark-green);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.focus-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 255, 0, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.focus-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
}

.focus-item:hover::before {
    opacity: 1;
}

.focus-item i {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    text-shadow: var(--glow-shadow);
    transition: var(--transition-smooth);
}

.focus-item:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.focus-item h3 {
    color: var(--neon-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.focus-item p {
    color: var(--light-green);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .left .timeline-content::after,
    .right .timeline-content::after {
        left: -45px;
    }

    .focus-grid {
        grid-template-columns: 1fr;
    }

    .highlight-text {
        font-size: 1.2rem;
    }

    .story-content {
        padding: 1.5rem;
    }

    .achievement-list li {
        padding: 0.8rem 0 0.8rem 1.5rem;
    }
}

/* Additional Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
    background-color: var(--neon-green);
    color: #000;
    border: none;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-shadow);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#backToTop:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--glow-shadow);
}

/* Enhance Hover Effects for Connect Items */
.connect-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.connect-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Global Section Styles */
.about-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    background: var(--matrix-bg);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 0, 0.05) 49%, rgba(0, 255, 0, 0.05) 51%, transparent 52%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.05) 0%, transparent 100%);
    background-size: 10px 10px, 100px 100px;
    animation: matrixBg 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 4rem;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: var(--text-shadow);
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--neon-green);
    box-shadow: var(--glow-shadow);
}

/* Journey Grid Styling */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.journey-item {
    background: var(--card-bg);
    border: var(--border-glow);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.journey-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.journey-item i {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    text-shadow: var(--glow-shadow);
    transition: var(--transition-smooth);
}

.journey-item:hover i {
    transform: scale(1.2) rotate(360deg);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

/* Achievement Tags */
.achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.achievement-tag {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--neon-green);
    transition: var(--transition-smooth);
}

.achievement-tag:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

/* Expertise Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-card {
    background: var(--card-bg);
    border: var(--border-glow);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.expertise-list li {
    color: var(--light-green);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    padding-left: 1.5rem;
}

.expertise-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

.expertise-list li:hover {
    padding-left: 2rem;
    color: var(--neon-green);
}

.expertise-list li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* About Me Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border: var(--border-glow);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

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

.project-tech span {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--neon-green);
    transition: var(--transition-smooth);
}

.project-tech span:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.certification-item {
    background: var (--card-bg);
    border: var(--border-glow);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.certification-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.certification-item i {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    text-shadow: var(--glow-shadow);
    transition: var(--transition-smooth);
}

.certification-item:hover i {
    transform: scale(1.2) rotate(360deg);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

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

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .left .timeline-content::after,
    .right .timeline-content::after {
        left: -45px;
    }

    .journey-grid,
    .expertise-grid,
    .projects-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 4rem 1rem;
    }

    .story-content {
        padding: 2rem;
    }
}

/* Animation Keyframes */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Contact Section */
#contact {
    padding: 3rem 1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

#contact h2 {
    color: #00FF00;
    font-family: 'VT323', monospace;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

#contact p {
    color: #FF00FF;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
#contact form {
    max-width: 450px;
    margin: 2rem auto;
    background: rgba(0, 20, 0, 0.8);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.1);
}

#contact form label {
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

#contact form input,
#contact form textarea {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    background: rgba(0, 15, 0, 0.9);
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

#contact-form button,
#contact-form .btn-contact-us {
    background-color: #00ff00;
    border: none;
    color: #000;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'VT323', monospace;
    font-size: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#contact-form button:hover,
#contact-form .btn-contact-us:hover {
    background-color: #33ff33;
}

#contact-form .btn-contact-us i {
    margin-right: 8px;
}

#contact form textarea {
    min-height: 120px;
}

/* Button Styles */
.btn-contact-us {
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid #00FF00;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    color: #00FF00;
    cursor: pointer;
    display: inline-flex;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    max-width: 200px;
    min-width: 160px;
    overflow: hidden;
    padding: 0.8rem 1.5rem;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-contact-us::before {
    animation: matrixRain 2s linear infinite;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(0, 255, 0, 0.2), 
        transparent);
    content: '';
    height: 200%;
    left: 0;
    position: absolute;
    top: -100%;
    width: 100%;
    z-index: 1;
}

.btn-contact-us:hover {
    background: rgba(0, 40, 0, 0.95);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px) scale(1.02);
    color: #FFF;
    text-shadow: 0 0 8px #00FF00;
}

.btn-contact-us i {
    font-size: 1.1em;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-contact-us:hover i {
    transform: translateX(-3px);
    color: #00FF00;
}

/* Success Message */
#form-success {
    max-width: 450px;
    padding: 2rem;
    background: rgba(0, 20, 0, 0.85);
    border: 1px solid #00FF00;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.2);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    animation: successPulse 2s infinite ease-in-out;
}

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

#form-success h3 {
    color: #00FF00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin-bottom: 1rem;
}

#form-success p {
    color: #88FF88;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(0, 255, 0, 0.2); }
    50% { box-shadow: 0 0 35px rgba(0, 255, 0, 0.4); }
}

@keyframes successScan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@media (max-width: 576px) {
    #form-success {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes matrixRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    #contact {
        padding: 2rem 0.8rem;
    }

    #contact form {
        padding: 1.2rem;
        margin: 1rem;
    }

    #contact h2 {
        font-size: 1.8rem;
    }

    .btn-contact-us {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        min-width: 140px;
    }

    #contact form input,
    #contact form textarea {
        padding: 0.6rem;
    }
}