:root {
    --bgColor: white;
    --primary-glow: #00d9ff;
    --secondary-glow: #ff6b6b;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #171616;
    cursor: crosshair;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #171616;
    z-index: 1000;
}

.navbar .logo {
    color: #00d9ff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    padding-right: 50px;
}

.nav-links a:hover {
    color: #00d9ff;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.hero-status .status-dot {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #00ff00; }
    50% { opacity: 0.5; box-shadow: 0 0 5px #00ff00; }
}



.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 90vh;
    color: white;
    position: relative;
    z-index: 5;
}

.hero p:first-child {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.glitch-text {
    position: relative;
    color: white;
    animation: glitch 3s infinite;
    font-size: 44px;
}

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

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

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #ff6b6b;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    20% { clip: rect(85px, 9999px, 140px, 0); }
    40% { clip: rect(20px, 9999px, 80px, 0); }
    60% { clip: rect(50px, 9999px, 90px, 0); }
    80% { clip: rect(5px, 9999px, 45px, 0); }
    100% { clip: rect(70px, 9999px, 110px, 0); }
}

.typing-text {
    font-size: 24px;
    font-weight: 300;
    margin: 10px 0 0 0;
    min-height: 30px;
    color: #00d9ff;
    border-right: 2px solid #00d9ff;
    white-space: nowrap;
    overflow: hidden;
}

.system-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

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

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #00d9ff;
    font-family: 'Courier New', monospace;
}

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

.icons {
    margin-top: 2rem;
}

.icons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.icons a:hover {
    color: #00d9ff;
    transform: translateY(-5px) scale(1.2);
    filter: drop-shadow(0 0 10px #00d9ff);
}

#remove-hero-btn {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.3); /* Semi-transparent white background */
    border: none; /* Remove the border */
    color: white; /* Text color */
    font-size: 16px; /* Adjust font size */
    padding: 10px 20px; /* Add padding around the text */
    cursor: pointer; /* Show pointer cursor on hover */
    text-align: center; /* Center align the text */
    text-decoration: none; /* Remove underline if any */
    font-weight: bold; /* Optional: Make text bold */
    border-radius: 5px; /* Optional: Add rounded corners */
}

#remove-hero-btn:hover {
    background: rgba(255, 255, 255, 0.5); /* Slightly more opaque on hover */
    color: rgb(179, 179, 186); /* Change color on hover (optional) */
}

#particle-section {
    position: relative;
    height: 100vh; /* Makes the section cover the full viewport height */
}

.info {
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: rgb(0, 0, 0);
}

.projects {
    width: 100%;
}

.terminal-cursor {
    animation: blink 1s infinite;
    color: #00d9ff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateX(10px);
}

.tech-badge {
    display: inline-block;
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
    border: 1px solid rgba(0, 217, 255, 0.4);
}

.metrics {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.metric {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

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

/* Distributed System Architecture Style */
ul {
    list-style: none;
    width: min(70rem, 95%);
    margin-inline: auto;
    position: relative;
    padding: 3rem 0;
}

/* Central data flow line */
ul::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        #00d9ff 10%, 
        #ff6b6b 50%, 
        #4ecdc4 80%, 
        transparent 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* Data packets flowing */
ul::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #00d9ff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: dataFlow 4s linear infinite;
    box-shadow: 0 0 15px #00d9ff;
}

@keyframes dataFlow {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

ul li {
    margin-bottom: 4rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

ul li:nth-child(odd) {
    flex-direction: row;
    justify-content: flex-end;
}

ul li:nth-child(even) {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Node circle (like a microservice) */
ul li::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border: 4px solid #171616;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 20px var(--accent-color), inset 0 0 10px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

ul li:hover::before {
    width: 50px;
    height: 50px;
    box-shadow: 0 0 30px var(--accent-color), inset 0 0 15px rgba(255,255,255,0.5);
}

/* Connection lines from node to card */
ul li::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    z-index: 5;
}

ul li:nth-child(odd)::after {
    transform: translateX(-100%);
}

ul li:nth-child(even)::after {
    transform: translateX(20px);
    background: linear-gradient(-90deg, var(--accent-color), transparent);
}

/* Project card as a service container */
ul li > div {
    width: calc(50% - 100px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-color);
    position: relative;
    transition: all 0.3s ease;
}

ul li:hover > div {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

ul li .date {
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

ul li .date::before {
    content: "●";
    animation: blink 2s infinite;
}

ul li .title {
    padding: 1.5rem 1.5rem 1rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #333;
    background: white;
}

ul li .descr {
    padding: 0 1.5rem 1.5rem;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    background: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    ul::before {
        left: 20px;
    }
    
    ul::after {
        left: 20px;
    }
    
    ul li {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding-left: 60px;
    }
    
    ul li::before {
        left: 20px;
        transform: translateX(0);
    }
    
    ul li::after {
        left: 40px;
        transform: translateX(0) !important;
        background: linear-gradient(90deg, var(--accent-color), transparent) !important;
    }
    
    ul li > div {
        width: 100%;
    }
}

.credits {
    margin-top: 1rem;
    text-align: right;
}

.credits a {
    color: var(--color);
}


/* Footer Styles */
footer {
    background-color: #171616;
    color: white;
    padding: 2rem;
    margin-top: 4rem;
}

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

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;
}

/* Enhanced Navbar */
.terminal-prompt {
    color: #00d9ff;
    margin-right: 5px;
    font-family: 'Courier New', monospace;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
    z-index: 10000;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00d9ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 80%;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 4rem 2rem;
    color: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: #00d9ff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #ccc;
}

.highlight {
    color: #00d9ff;
    font-weight: 500;
    padding: 2px 6px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 3px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.stack-item {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

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

.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: #2d2d2d;
    padding: 10px;
    display: flex;
    gap: 6px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

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

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #d4d4d4;
}

.code-keyword { color: #569cd6; }
.code-function { color: #dcdcaa; }

/* Git Branch Style */
.git-branch {
    color: #00d9ff;
    font-size: 18px;
    margin-right: 10px;
}

/* Project Details (Hidden by default) */
.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 1rem;
}

.project-card.expanded .project-details {
    max-height: 1000px;
}

.detail-section {
    margin-bottom: 1rem;
}

.detail-section h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 16px;
}

.detail-section p {
    color: #666;
    line-height: 1.6;
}

.architecture {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.architecture pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #333;
    line-height: 1.4;
}

/* Enhanced Footer */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #00d9ff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #888;
    line-height: 1.6;
    font-size: 14px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-links a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-links a:hover {
    color: #00d9ff;
    transform: translateX(5px);
}

.status-log p {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #888;
    margin: 0.5rem 0;
}

.log-time {
    color: #00d9ff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

.prompt {
    color: #00d9ff;
    font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .system-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .network-status {
        display: none;
    }
}
