/* Custom Properties */
:root
{
    --bg-color: #030303;
    --text-main: #f4f4f5;
    --text-muted: #a0a0a0;
    --neon-green: #39FF14;
    --neon-glow: rgba(57, 255, 20, 0.15);
    --card-bg: rgba(15, 15, 15, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Reset & BaseStyles */
html, body, *, *::before, *::after, a, button, input, textarea, select {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Grid */
.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3 { font-weight: 800; }
a { text-decoration: none; color: inherit; }
p { color: var(--text-muted); }

/* Highlight Text */
h1 span, h2 span, .highlight {
    color: var(--neon-green);
}

/* Custom Cyber Cursor */
#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 24px; height: 24px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
}
.cursor-hline, .cursor-vline {
    position: absolute;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-glow);
    transition: all 0.2s ease;
}
.cursor-hline { width: 100%; height: 2px; }
.cursor-vline { height: 100%; width: 2px; }

/* Active Hover State (Cross) */
#custom-cursor.hover-active {
    transform: translate(-50%, -50%) rotate(45deg);
    width: 32px; height: 32px;
}
#custom-cursor.hover-active .cursor-hline { height: 4px; border-radius: 2px; }
#custom-cursor.hover-active .cursor-vline { width: 4px; border-radius: 2px; }


/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 15px 30px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--neon-green);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a.hover-underline {
    position: relative;
    padding-bottom: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links li a.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--neon-green);
    transition: all 0.3s ease;
}

.nav-links li a.hover-underline:hover {
    color: var(--neon-green);
}

.nav-links li a.hover-underline:hover::after {
    width: 100%;
    left: 0;
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: none;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}
.btn-primary:hover {
    box-shadow: 4px 4px 0px var(--neon-green);
    transform: translate(-4px, -4px);
    border-color: var(--neon-green);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}
.btn-outline:hover {
    box-shadow: 4px 4px 0px var(--neon-green);
    transform: translate(-4px, -4px);
    border-color: var(--neon-green);
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 8px 18px;
    font-size: 0.9rem;
}
.btn-nav:hover {
    box-shadow: 4px 4px 0px var(--neon-green);
    transform: translate(-4px, -4px);
}

/* Layout */
.section-padding {
    padding: 100px 10%;
}
.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hover Cards (Bento Style) */
.hover-glow {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.hover-glow::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background-color: var(--neon-green);
    transition: width 0.3s ease;
}
.hover-glow:hover {
    transform: translateX(8px);
    border-color: var(--neon-green);
}
.hover-glow:hover::before {
    width: 4px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
}
.tagline {
    color: var(--neon-green);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 10px;
}
.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--text-muted);
    margin-bottom: 30px;
}
.hero-desc {
    max-width: 500px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}
.hero-ctas {
    display: flex;
    gap: 20px;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-muted);
}

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

/* About & Education */
.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: stretch;
}
.about-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    min-height: 400px;
    display: flex;
}
/* Ensure the hover line shows above image */
.about-image-wrapper.hover-glow::before {
    z-index: 2;
}
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.5s ease;
    filter: brightness(0.9) contrast(1.1);
}
.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}
.about-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}
.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.about-text strong {
    color: var(--text-main);
}
.education-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--neon-green);
}
.edu-meta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Pills */
.pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pill i {
    font-size: 1.1rem;
}
.neon-pill {
    background: var(--neon-glow);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}
.outline-pill {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.outline-pill:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-glow);
}
.glow-on-hover {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.project-card:hover .glow-on-hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}
.glow-on-hover:hover {
    color: var(--neon-green) !important;
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-glow);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.skill-category h3 {
    margin-bottom: 20px;
    color: var(--neon-green);
    font-size: 1.2rem;
}
.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Project Showcase Modern Update */
.section-header-wrap {
    margin-bottom: 60px;
}
.section-header-wrap .section-title {
    margin-bottom: 10px;
}
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}
.projects-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.project-showcase-card {
    background: var(--card-bg) !important;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}
.project-showcase-card.hover-glow {
    /* Keep hover glow borders */
    border: 1px solid var(--border-color);
}
.project-showcase-card.hover-glow:hover {
    transform: translateY(-5px); 
    border-color: var(--neon-green);
}
.project-tag-wrap {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    align-items: center;
}
.project-year {
    color: var(--neon-green);
    font-size: 1.1rem;
}
.project-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.project-title-large {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.project-abstract {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-muted);
}
.project-feature-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.feature-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.feature-block strong {
    color: var(--neon-green);
    display: block;
    margin-bottom: 5px;
}
.project-tech-large {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}
.project-actions-large {
    display: flex;
    gap: 20px;
}

@media (max-width: 900px) {
    .project-showcase-card {
        padding: 30px;
        top: 80px;
    }
    .project-title-large {
        font-size: 2rem;
    }
}

/* Bento Grid Layout for Achievements */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    gap: 15px;
}
.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
}
.bento-card.col-span-2 {
    grid-column: span 2;
}
.bento-card.row-span-2 {
    grid-row: span 2;
}
.bento-icon-lg {
    font-size: 2.5rem;
}
.bento-content h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-main);
}
.bento-content h3 span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}
.bento-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Contact */
.contact-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.contact-card p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 4px 4px 0px var(--neon-green);
    transform: translate(-3px, -3px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reveal Animations */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Epic Scramble Hero Intro Animations */
.hero-subtitle { min-height: 1.5em; }

.reveal-delayed {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 3s; 
}
.reveal-delayed-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 3.2s;
}
@keyframes fadeUp {
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    #custom-cursor { display: none !important; }
    html, body, *, *::before, *::after, a, button, input, textarea, select { cursor: auto !important; }
    .about-content, .bento-grid, .project-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.col-span-2, .bento-card.row-span-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    .navbar {
        width: 95%;
        padding: 15px 20px;
    }
    .nav-links {
        display: none;
    }
    .section-padding {
        padding: 80px 5%;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .hero-title {
        font-size: 3rem;
    }

}
