/* css/global.css */

:root {
    --bg-color: #0d1117;
    --primary-color: #161b22;
    --secondary-color: #21262d;
    --border-color: #30363d;
    --text-color: #c9d1d9;
    --header-color: #f0f6fc;
    --accent-color: #58a6ff;
    --accent-glow: rgba(88, 166, 255, 0.5);
}

/* --- Base & Scrollbar --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-color); }
::-webkit-scrollbar-thumb { background-color: var(--border-color); border-radius: 10px; }

/* --- Particles.js Background --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.3s, border-bottom-color 0.3s;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* --- General Section Styling --- */
.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 55px 5% 55px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: var(--header-color);
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

/* --- About Me Section --- */
#about {
    padding-top: 160px; 
    text-align: center; 
}
.about-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    color: var(--header-color);
    margin-bottom: 0.25rem;
}
.about-content .subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 400;
}
.about-content p {
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.social-links-about {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.social-links-about a {
    color: var(--text-color);
    font-size: 2rem;
    transition: color 0.3s, transform 0.3s;
}
.social-links-about a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}
.project-card {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--accent-glow);
}
.project-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--header-color);
    margin-bottom: 1rem;
}
.project-card p {
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.tech-tags { margin-bottom: 1.5rem; }
.tech-tags span {
    display: inline-block;
    font-size: 0.8rem;
    background: var(--secondary-color);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 5px 5px 0;
}
.project-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.project-btn-details {
    padding: 10px 20px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}
.project-btn-details:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}
.project-btn-github {
    font-size: 2rem;
    color: #89cff0;
    transition: color 0.3s, transform 0.3s;
}
.project-btn-github:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* --- Interests Section --- */
.interests-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
}
.interest-item {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 220px;
    transition: transform 0.3s;
}
.interest-item:hover {
    transform: translateY(-5px);
}
.interest-item i {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.interest-item h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--header-color);
    font-size: 1.2rem;
}

/*Custom Icon Color for Memory Challenges*/
#memory-icon {
    color: #FFD700; /* This is a standard hex code for gold */
}

/* --- Misc/Contact Section --- */
#misc { text-align: center; }
#misc p {
    max-width: 600px;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.contact-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .about-content h1 { font-size: 3rem; }
    .nav-links { gap: 1.5rem; font-size: 0.9rem; }
    .section { padding: 80px 5% 40px; }
}

/*for buttons of interests*/
.interest-link {
    text-decoration: none; /* Removes the underline */
    color: inherit;       /* Makes the link inherit the color of its parent */
}

/*to fix interest links*/
/* --- Styles for the clickable Interest items --- */

/*added css for interest arrows*/ /**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**/
/* --- Interests Section --- */
/* --- Interests Section --- */
.interests-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
}
.interest-item {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 220px;
    position: relative; 
    transition: transform 0.3s, box-shadow 0.3s;
}
.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-glow); 
}
.interest-item i {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.interest-item h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--header-color);
    font-size: 1.2rem;
}

/* --- FINAL STYLES for the static small hover arrow --- */
.interest-arrow {
    position: absolute;
    /* --- You can fine-tune these values --- */
    top: 0.2rem;
    right: 0.6rem;
    /* ------------------------------------ */
    color: var(--accent-color);
    font-size: 1rem;
    opacity: 0;
    /* Set a smaller scale and position it for the slide-in */
    transform: scale(0.7) translateX(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.interest-item:hover .interest-arrow {
    opacity: 1;
    /* Slide in but keep the smaller scale */
    transform: scale(0.7) translateX(0);
}

/* --- Link Styling --- */
.interest-link {
    text-decoration: none; 
    color: inherit;       
}


/*--------------------------------------------------------------------------------------------------------*/
/*----------------------------------------- for disabled buttons -----------------------------------------*/
/*--------------------------------------------------------------------------------------------------------*/

/* --- NEW: Disabled Button and Tooltip Styles --- */

/* The container for the button, needed for tooltip positioning */
.disabled-btn-wrapper {
    position: relative;
    display: inline-block; /* Ensures wrapper is only as wide as the button */
}

/* The disabled button style itself */
.disabled-btn {
    opacity: 0.5; /* Makes it look greyed out */
    cursor: not-allowed; /* Shows a 'not allowed' icon on hover */
    pointer-events: none; /* Disables all click and hover events on the button itself */
}

/* Tooltip styles - attached to the wrapper */
.disabled-btn-wrapper .tooltip-text {
    visibility: hidden;
    width: 140px;
    background-color: #161b22;
    color: #c9d1d9;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip above the button */
    left: 50%;
    margin-left: -70px; /* Use half of the width to center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--border-color);
}

/* Arrow for the tooltip */
.disabled-btn-wrapper .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
}

/* Show the tooltip text when you hover over the wrapper */
.disabled-btn-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Remove default hover effects from the disabled github icon */
.disabled-btn.project-btn-github:hover {
    color: #89cff0; /* Keep original color */
    transform: none; /* No scaling */
}


/*--------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------- comings soon ---------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------*/

/* --- NEW: Posts Section Styles --- */

/* This container ensures its content aligns with your other sections
   and allows for left-alignment of text within it. */
/* --- NEW: Posts Section Styles --- */

/* This container ensures its content aligns with your other sections. */
.posts-container {
    width: 100%;
    max-width: 1200px; 
    padding: 0 1rem;   
}

/* The style for your "Coming very soon!" message */
.coming-soon-text {
    text-align: center;         
    font-size: 1.5rem;          
    color: var(--text-color);
    font-weight: 400;           
    opacity: 0.7;
    /* --- NEW LINES TO ADD --- */
    position: relative;         /* Allows us to nudge the element */
    left: 142px;                 /* Nudges it 20px to the right from its center position */
}


/*interest description padding*/
.section-description {
    text-align: center;
    margin: -1.5rem 0 2.5rem 0; /* Uses negative margin to pull it closer to the title */
    font-size: 1.1rem;
    font-weight: 300; /* Lighter font weight */
    color: #ccc; /* A soft, light gray color */
}

/*tech stack stuff*/
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-skill {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-skill h3 {
    margin: 0 0 10px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-rating {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #ccc;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 4px;
    width: 0; /* Set by JS */
    transition: width 1s ease-in-out;
}