/* ===== CORE VARIABLES ===== */
:root {
    --bg-color: #050505;
    --surface-color: rgba(20, 20, 25, 0.6);
    --surface-border: rgba(0, 243, 255, 0.15);
    
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    
    --text-main: #e0e0e0;
    --text-muted: #9a9a9a;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none; /* Custom cursor applies to links too */
}

ul {
    list-style: none;
}

/* ===== CUSTOM CURSOR ===== */
.glow-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100000;
    box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 5px var(--neon-cyan);
    transition: width 0.2s, height 0.2s, border-color 0.2s, box-shadow 0.2s;
    mix-blend-mode: screen;
}

.glow-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: rgba(188, 19, 254, 0.1);
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple), inset 0 0 10px var(--neon-purple);
}

/* ===== PARTICLES BACKGROUND ===== */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* ===== GLASSMORPHISM UTILS ===== */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s;
}

.glass-card:hover {
    border-color: rgba(188, 19, 254, 0.3);
    box-shadow: 0 10px 30px -10px rgba(188, 19, 254, 0.2);
}

.glass-card:hover::before {
    left: 200%;
}

/* ===== NAVIGATION ===== */
.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 1000;
    transition: all var(--transition-medium);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
}

.logo span {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

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

.nav-item {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--neon-cyan);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
    transition: width var(--transition-fast);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--neon-cyan);
}

/* ===== MAIN LAYOUT ===== */
main {
    padding-top: 70px;
}

.section {
    min-height: 100vh;
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title .highlight {
    color: var(--neon-purple);
    font-size: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding-top: 0;
}

.greeting {
    font-family: 'Courier New', Courier, monospace;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    position: relative;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Typing effect container */
.typing-container {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 60px;
}

.typing-text {
    color: var(--neon-cyan);
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-summary {
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    border-left: 3px solid var(--neon-purple);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cyber-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--neon-cyan);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.cyber-button:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.cyber-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: var(--neon-purple);
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.5);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll {
    0% { opacity: 1; top: 5px; }
    50% { opacity: 0; top: 20px; }
    100% { opacity: 0; top: 5px; }
}

/* ===== ANIMATIONS FOR SCROLL REVEAL ===== */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-up {
    animation: slideUp 0.8s forwards cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: translateY(40px);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards ease;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== EDUCATION ===== */
.education-card {
    border-left: 2px solid var(--neon-cyan);
}

.ed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.ed-header h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.3rem;
}

.badge {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.ed-body p {
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== TIMELINE (EXPERIENCE) ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-purple), rgba(188, 19, 254, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
    z-index: 2;
}

/* ===== NEW MULTI-PAGE STYLES ===== */

/* Hero Image Layout */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ai-avatar {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.4));
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hologram-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.2) 0%, rgba(0, 243, 255, 0.1) 50%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.contact-card i {
    font-size: 2rem;
    color: var(--neon-cyan);
}

.contact-card:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 5px 20px rgba(188, 19, 254, 0.2);
    transform: translateY(-5px);
}

.contact-card .info {
    display: flex;
    flex-direction: column;
}

.contact-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card .val {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.1rem;
    word-break: break-all;
}

.resume-download-section {
    display: flex;
    justify-content: flex-start;
    margin-top: 3rem;
}

.cyber-button.large {
    font-size: 1.2rem;
    padding: 15px 40px;
    border-width: 2px;
    border-radius: 8px;
}

.contact-btn {
    color: var(--neon-purple) !important;
}

.contact-social-row {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-icon-btn {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
}

.social-icon-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: translateY(-5px);
}

@media screen and (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-summary {
        margin: 0 auto 2.5rem auto;
        border-left: none;
        border-bottom: 3px solid var(--neon-purple);
    }
    .hero-cta {
        justify-content: center;
    }
}

/* ===== PROJECT MODALS ===== */
.clickable-card {
    cursor: pointer;
    position: relative;
}

.click-indicator {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.clickable-card:hover .click-indicator {
    opacity: 1;
}

/* Modal Overlay Background */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--neon-purple);
}

/* Modal Typography & Layout */
.modal-title {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-right: 40px;
}

.modal-image-container {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(188, 19, 254, 0.3);
}

.modal-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.modal-desc {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}


.job-header {
    margin-bottom: 1.5rem;
}

.job-header h3 {
    font-family: var(--font-heading);
    color: var(--neon-purple);
    font-size: 1.4rem;
}

.company {
    font-weight: 600;
    color: var(--text-main);
    margin-right: 15px;
}

.duration {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bullet-list {
    padding-left: 1.2rem;
}

.bullet-list li {
    margin-bottom: 0.8rem;
    position: relative;
    color: var(--text-muted);
}

.bullet-list li::before {
    content: '>';
    position: absolute;
    left: -1.2rem;
    color: var(--neon-cyan);
    font-family: 'Courier New', Courier, monospace;
}

.bullet-list strong {
    color: var(--text-main);
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--neon-cyan);
}

.icon-link {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.icon-link:hover {
    color: var(--text-main);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack li {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: var(--neon-purple);
}

/* ===== SKILLS ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--neon-cyan);
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.skill-badge:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.1);
}

/* ===== METRICS (ACHIEVEMENTS / CERTS) ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metrics-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-card h4 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.metric-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.small-desc {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
}

/* ===== FOOTER ===== */
footer {
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem !important;
}

.footer-content p {
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-content p:first-child {
    color: var(--neon-purple);
    margin-bottom: 15px;
}

.copyright {
    margin-top: 15px;
    font-size: 0.8rem !important;
    opacity: 0.5;
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--surface-border);
    }
    
    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .metrics-grid, .skills-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .typing-container {
        font-size: 1.5rem;
    }

    .glitch-text {
        font-size: 2.5rem;
    }
}
