:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --card-bg: #111111;
    --accent-color: #333333;
    --hover-color: #222222;
    --border-color: #2a2a2a;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; 
    background-color: var(--bg-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}
h2 {
    color: inherit; 
    text-decoration: none; 
    cursor: pointer;
}

h2 :focus, h2 a:active {
    color: inherit; 
    outline: none;  
}

header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    position: relative; 
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; 
    transition: top 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.sticky {
    position: fixed; 
    top: 0; 
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}



nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0 5px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    margin: 4rem 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px 3px rgba(136, 136, 136, 0.8), 0 0 20px 5px rgba(136, 136, 136, 0.6); /* Grey neon effect */
    transition: box-shadow 0.3s ease-in-out; /* Smooth transition */
}

.profile-image img:hover {
    box-shadow: 0 0 15px 6px rgba(136, 136, 136, 1), 0 0 30px 10px rgba(136, 136, 136, 0.8); /* Intensified grey neon effect on hover */
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.see-all {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.see-all:hover {
    opacity: 1;
}

.small-break {
    display: inline-block;
    height: 1px; 
    margin-top: 10px; 
}


.project-card, .event-card, .patent-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.project-card, .event-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.project-card:hover, .event-card:hover {
    transform: translateX(10px);
    background-color: var(--hover-color);
}

.project-content, .event-content {
    flex: 1;
}

.arrow {
    font-size: 1.5rem;
    opacity: 0.7;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0 5px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 1;
}

footer {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-toggle {
    display: flex;
    gap: 0.5rem;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.theme-btn:hover {
    background-color: var(--accent-color);
}

.back-to-top {
    background-color: black;
    color: rgb(157, 157, 157);
    padding: 12px 24px;
    font-size: 16px;
    border: 2px solid rgb(157, 157, 157);
    border-radius: 8px;
    cursor: pointer;
    text-shadow: 0 0 5px rgb(157, 157, 157);
    box-shadow: 0 0 10px rgb(157, 157, 157);
    transition: all 0.3s ease;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: endss;
    
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
.tech-stack-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* For the 4-top and 4-bottom rows */
.tech-stack-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* More spacing between icons */
    margin-bottom: 15px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px; /* Increased size */
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px; /* Increased radius for rounded corners */
    background: rgba(255, 255, 255, 0.1); /* Light background */
}

/* Icon Size */
.tech-icon {
    width: 55px;
    height: 55px;
    transition: filter 0.3s ease;
}

/* Stronger Glow on Hover */
.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(136, 136, 136, 0.8), 0 0 30px rgba(136, 136, 136, 0.6);
    background: rgba(255, 255, 255, 0.15); /* Slightly brighter background */
}

/* More Visible Glow on the Icons */
.tech-item:hover .tech-icon {
    filter: drop-shadow(0 0 12px rgba(136, 136, 136, 1));
}

/* Tech Description */
.tech-desc {
    font-size: 14px;
    color: #ddd; /* Lighter text for better visibility */
    margin-top: 5px;
    text-align: center;
}

/* Section Title */
.ds-title {
    text-align: center;
    margin: 40px 0;
}

.ds-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff; /* White text for dark backgrounds */
}

.ds-title p {
    color: #b0b0b0;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-row {
        justify-content: center;
    }
    
    .tech-item {
        width: 90px; /* Larger touch targets */
        border-radius: 25px; /* More rounded corners for mobile */
    }

    .tech-icon {
        width: 50px;
        height: 50px;
    }
}

/* resume button*/
.resume-button {
    background-color: black;
    color: rgb(157, 157, 157);
    padding: 12px 24px;
    font-size: 16px;
    border: 2px solid rgb(157, 157, 157);
    border-radius: 8px;
    cursor: pointer;
    text-shadow: 0 0 5px rgb(157, 157, 157);
    box-shadow: 0 0 10px rgb(157, 157, 157);
    transition: all 0.3s ease;
    margin: 1.5rem auto 0;
    display: flex;
    margin-left: 43px;
    justify-content: ends;
    
}

.resume-button:hover {
    transform: translateY(-5px);
}

/* names in the tech */
.tech-item {
    position: relative;
    display: inline-block;
}

.tech-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tech-item:hover .tech-tooltip {
    visibility: visible;
    opacity: 1;
}
