:root {
    --primary-color: #000000;
    --secondary-color: #22272e;
    --text-color: #ffffff;
    --accent-color: #00ff00;
    --transition-speed: 0.5s;
    --section-bg: rgba(0, 0, 0, 0.8);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: block;  /* Changed from flex */
    overflow: hidden;
    overflow-y: auto;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    margin-bottom: 1rem;
}

/* Remove or comment out the original tagline styles
.tagline {
    color: var(--accent-color);
    margin-top: 0.5rem;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
*/

section {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

h1, h2, h3 {
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    background: linear-gradient(45deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    border: 1px solid var(--card-border);
}

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

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: opacity 0.2s;
    font-weight: 500;
}

.button:hover {
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.2s;
}

social-links a:hover {
    color: var(--accent-color);
}

.circular-menu {
    position: relative;
    width: 300px;
    height: 60px;
    margin: 3rem auto 2rem;
}

.menu-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
}

/* Specific styling for GitHub icon */
.menu-item.github {
    top: 0;
}

.menu-item:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.menu-item i {
    font-size: 1.5rem;
    color: var(--text-color);
}

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

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    min-height: 100vh;
    padding: 4rem 0;
    position: relative;
}

.home {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    height: 100vh;
}

.projects-section {
    position: relative;
    z-index: 2;
    background: var(--section-bg);
    backdrop-filter: blur(10px);
    min-height: auto;
    padding: 6rem 2rem;
}

.scroll-indicator {
    position: fixed;  /* Changed from absolute */
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    animation: bounce 2s infinite;
    z-index: 3;
}

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

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
}

/* Add this new style */
.projects-container {
    padding-top: 2rem;
}

.footer-section {
    background: var(--section-bg);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-text {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-email {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-email:hover {
    opacity: 0.8;
}

/* Tech Stack Pills */
.tech {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: var(--card-bg);
    margin: 0.2rem;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
}

/* Typing Effect Container */
.typing-text {
    min-height: 1.6em;
    margin: 0.5rem 0 1rem 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 1010;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-color);
    transform: rotate(180deg);
}

/* Adjust theme toggle position for mobile */
@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 5rem;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.repo-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

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

/* Loading indicator */
.loading-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.loading-projects p {
    margin-top: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--card-border);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skills Section */
.skills-section {
    background: var(--section-bg);
    backdrop-filter: blur(10px);
    min-height: auto;
    padding: 6rem 2rem;
}

.skills-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
    flex: 1;
    min-width: 300px;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    min-width: 100px;
}

.skill-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.skill-level {
    width: 100%;
    height: 6px;
    background: var(--card-border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
}


/* Contact Section */
.contact-section {
    background: var(--section-bg);
    backdrop-filter: blur(10px);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 5px;
    color: var(--text-color);
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

.contact-form button {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #00cc00;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
    }
    
    .contact-info {
        flex: 1;
    }
    
    .contact-form {
        flex: 2;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--section-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary-color);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .home {
        padding-top: 5rem;
    }
}

/* Adjust main content for navbar */
main {
    padding-top: 4rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: #00cc00;
}

/* Experience/Timeline Section */
.experience-section {
    background: var(--section-bg);
    backdrop-filter: blur(10px);
    min-height: auto;
    padding: 6rem 2rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translate(calc(-50% + 1px), -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-content {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    text-align: left;
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-date {
    display: inline-block;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -2rem;
    }
}
