/* 
   Theme: GreenMartialArts 
   Primary: Neon Green 
   Background: Dark/Black 
*/

:root {
    --primary-color: #00ff41;
    /* Neon Green */
    --secondary-color: #008f11;
    /* Matrix Greenish */
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --heading-font: 'Outfit', sans-serif;
    --body-font: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
    --nav-height: 70px;
    --nav-bg: rgba(10, 10, 10, 0.9);
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: -100px;
    left: -100px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s, opacity 0.3s;
    mix-blend-mode: difference;
}

.cursor2 {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: -100px;
    left: -100px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, left 0.1s, top 0.1s, opacity 0.3s;
    mix-blend-mode: difference;
}

.cursor-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Interact state for cursor */
.cursor-grow {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 255, 65, 0.1);
    border-color: transparent;
}

/* Scroll Reveal */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(50px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Light Mode Overrides (if toggled) */
body.light-mode {
    --primary-color: #008f11;
    --bg-color: #ffffff;
    --card-bg: #f4f4f4;
    --text-color: #1a1a1a;
    --text-muted: #555;
    --nav-bg: rgba(255, 255, 255, 0.9);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.dot {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
}

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

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #0d2e0d, #0a0a0a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Optional: Overlay pattern for texture */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    z-index: 1;
    /* Ensure text is above background */
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* Sections General */
section {
    padding: 5rem 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.2);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    background-color: #222;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    font-size: 0.8rem;
    background-color: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 15px;
}

.project-links a {
    font-size: 0.9rem;
    font-weight: 600;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contact-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 3rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

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

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

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

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom GitHub Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-box {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.15);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.stat-box:hover i {
    color: var(--primary-color);
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.stat-box p {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-box {
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(145deg, var(--card-bg), rgba(0, 255, 65, 0.05));
}

.link-box:hover h3 {
    color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 5rem;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px;
        transition: all 0.3s ease;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}