:root {
    --primary-color: #00ff00;
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #1a1a1a;
}

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

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav {
        padding: 15px;
    }

    .hamburger {
        display: block;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links li a {
        font-size: 1.2em;
        display: block;
        padding: 10px 20px;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Add delay for each menu item */
    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links li:nth-child(6) { transition-delay: 0.6s; }
    .nav-links li:nth-child(7) { transition-delay: 0.7s; }
    .nav-links li:nth-child(8) { transition-delay: 0.8s; }
}

#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.glitch-container {
    text-align: center;
}

.glitch {
    font-size: 4em;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
}

.subtitle {
    font-size: 1.5em;
    margin-top: 20px;
    color: var(--primary-color);
}

.terminal {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-text {
    color: var(--primary-color);
    margin: 10px 0;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    15% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    100% {
        text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
                     -0.04em -0.025em 0 #fffc00;
    }
} 
.section-container {
        padding: 100px 50px;
        position: relative;
        z-index: 2;
    }
    .section-title {
        color: var(--primary-color); 
        padding: 20px 0;
        text-align: left; 
        font-size: 2em; 
    }

/* Terminal Window Styling */
.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    margin: 20px 0;
}

.terminal-header {
    padding: 10px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--primary-color);
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

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

.terminal-content {
    padding: 20px;
}

.terminal-content p {
    margin: 10px 0;
    color: #fff;
}
/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-bar {
    margin: 20px 0;
}

.skill-name {
    color: var(--primary-color);
    margin-bottom: 5px;
}
/* Skills Section */
/* Skills Page Grid */
skills-grid-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.skills-card { background: rgba(0, 0, 0, 0.8); border: 1px solid var(--primary-color); border-radius: 8px; padding: 16px; }
.skills-card h3 { color: var(--primary-color); margin-bottom: 10px; }
.skills-card .badge-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.skills-card .badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 6px 10px; border-radius: 16px; background: rgba(0,255,0,0.08); font-size: 0.95em; }

/* Force white text inside skills page badges */
#skills-page .skills-card .badge { color: #ffffff; }
#skills-page .skills-card .badge i { color: #ffffff; }
.skills-scroller { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.skill-row { width: 100%; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.row-inner { display: inline-flex; gap: 12px; white-space: nowrap; }
.skill-badge { display: inline-block; padding: 8px 14px; border: 1px solid var(--primary-color); color: var(--primary-color); background: rgba(0,255,0,0.08); border-radius: 16px; font-size: 0.95em; }

/* Animations */
@keyframes scroll-ltr {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(-60%); }
}
@keyframes scroll-rtl {
    0% { transform: translateX(-60%); }
    100% { transform: translateX(-10%); }
}
/* Projects Section */
 .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

.project-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-tags span {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    margin: 5px;
    font-size: 0.9em;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    padding: 15px;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
}

.submit-btn {
    background: var(--primary-color);
    color: black;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #00cc00;
}

.submit-btn:disabled {
    background: #004d00;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 15px;
    }

    .logo {
        font-size: 20px;
    }

    nav ul {
        display: none;
    }

    /* Home Section */
    .glitch {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    .terminal {
        width: 95%;
        padding: 15px;
    }

    /* Section Containers */
    .section-container {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.8em;
        text-align: center;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        margin: 0;
    }

    /* Contact Form */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }

    /* Back to Top Button */
    #back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    /* Footer */
    .footer {
        padding: 30px 15px;
    }

    .social-link {
        font-size: 20px;
        margin: 0 10px;
    }

    /* Project Details */
    .project-details-content {
        padding: 20px;
    }

    .project-image {
        max-width: 100%;
    }

    .project-info h3 {
        font-size: 1.6em;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Certificates */
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificate-card {
        margin: 0;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .glitch {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .terminal {
        padding: 10px;
    }

    .hobby-card {
        padding: 15px;
    }

    .hobby-icon {
        font-size: 2em;
    }
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    #home {
        height: -webkit-fill-available;
    }
}

.footer {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--primary-color);
}

.social-links {
    margin-bottom: 20px;
}

.social-link {
    color: var(--text-color);
    font-size: 24px;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-color);
    font-size: 14px;
}

.hacker-text {
    color: var(--primary-color);
    font-size: 12px;
    margin-top: 5px;
    font-family: 'Share Tech Mono', monospace;
}

/* Add hover animation for social icons */
.social-link i {
    transition: transform 0.3s ease;
}

.social-link:hover i {
    animation: glitch 0.3s infinite;
}

.status-message {
    color: var(--primary-color);
    margin: 10px 0;
    font-size: 14px;
    height: 20px;
}

.night {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.shooting_star {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
                0 0 0 8px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(255, 255, 255, 1);
    animation: shoot 3s linear infinite;
    opacity: 0;
}

.shooting_star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes shoot {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

.shooting_star:nth-child(1) { top: 0%; left: 50%; animation-delay: 0s; }
.shooting_star:nth-child(2) { top: 0%; left: 40%; animation-delay: 0.8s; }
.shooting_star:nth-child(3) { top: 10%; left: 45%; animation-delay: 1.6s; }
.shooting_star:nth-child(4) { top: 20%; left: 55%; animation-delay: 2.4s; }
.shooting_star:nth-child(5) { top: 30%; left: 35%; animation-delay: 3.2s; } 

/* skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.skill-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.skill-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.skill-content p {
    color: var(--text-color);
    font-size: 0.9em;
    line-height: 1.5;
}
/* Project Details Page */
#project-details {
    padding-top: 40px;
}

.project-details-content {
    max-width: 10000px; /* Increase the max-width */
    padding: 30px; /* Increase the padding */
    margin: 0 auto;
}

.project-image {
    max-width: 90%; /* Decrease the max-width */
    height: auto;
    display: block;
    margin: 0 auto;
}
.project-info h3 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
}

.project-description {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.15em;
}

.project-details-section {
    margin-top: 50px;
}

.project-details-section h4 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.project-details-section ul {
    list-style-type: none;
    padding-left: 20px;
}

.project-details-section ul li {
    color: #fff;
    margin: 5px 0;
    position: relative;
}

.project-details-section ul li:before {
    content: '>';
    color: var(--primary-color);
    position: absolute;
    left: -20px;
}


.email-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #00cc00;
    text-decoration: underline;
} 
.vlog-post p {
    font-size: 1.2em; /* Increase the font size */
    line-height: 1.5; /* Adjust line height for better readability */
    margin-bottom: 20px;
}
.thought-of-the-day {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 15px;
}

.thought-icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.thought-bubble {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    position: relative;
    max-width: 400px;
}

.thought-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 columns */
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    transform-origin: top left;
    transition: transform 0.3s ease; /* Add transition for smooth scaling */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease; /* Add transition for smooth scaling */
}



.gallery-item-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    text-align: center;
    padding: 10px;
    font-size: 1em;
}

.search-container {
    margin: 20px 0;
    text-align: center;
}

#search-input {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1em;
}

.table-of-contents {
    margin: 20px 0;
    /* position: center;
    text-align: center;
    padding: 10px;
    width: 80%;
    max-width: 400px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-color); */
}

.table-of-contents h3 {
    color: var(--primary-color);
    text-align: center;
}

#toc-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

#toc-list li {
    margin: 10px 0;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s;
}

#toc-list li:hover {
    color: #00cc00;
}
.suggestion-title {
    position: relative;
    text-align: center;
    margin: 40px 0;
}

.suggestion-title::before,
.suggestion-title::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 80%;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.suggestion-title::before {
    top: -10px;
}

.suggestion-title::after {
    bottom: -10px;
}

/* Certificate Section Styles */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.certificate-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.certificate-content {
    padding: 1rem;
}

.certificate-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #00ff00;
}

.certificate-content h3 {
    color: #00ff00;
    margin: 1rem 0;
    font-family: 'Share Tech Mono', monospace;
}

.certificate-content p {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

.view-more-btn {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 0.8rem 2rem;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: #00ff00;
    color: #000;
}

/* Certificate Wall Page Styles */
.certificates-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.certificate-item {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.certificate-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #00ff00;
}

.certificate-details {
    padding: 1.5rem;
}

.certificate-details h3 {
    color: #00ff00;
    margin-bottom: 1rem;
    font-family: 'Share Tech Mono', monospace;
}

.certificate-details p {
    color: #fff;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.category-btn {
    padding: 10px 20px;
    border: 2px solid #00ff00;
    background: transparent;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}
.category-btn:hover, .category-btn.active {
    background: #00ff00;
    color: #000;
}
.certificate-item {
    display: none;
}
.certificate-item.show {
    display: block;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

#back-to-top.visible {
    display: block;
}