@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --bg-dark: #050505;
    --bg-void: #020b18;
    --neon-blue: #00f3ff;
    --neon-green: #39ff14;
    --neon-blue-glow: rgba(0, 243, 255, 0.15);
    --neon-green-glow: rgba(57, 255, 20, 0.15);
    --text-main: #e2e8f0;
    --text-light: #94a3b8;
    --border-blue: rgba(0, 243, 255, 0.3);
    --border-green: rgba(57, 255, 20, 0.3);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Legacy variables for compatibility */
    --primary: var(--neon-blue);
    --accent: var(--neon-green);
    --accent-dark: #00b3cc;
    --accent-glow: var(--neon-blue-glow);
    --bg-white: var(--bg-void);
    --bg-grey: #0a0a0c;
    --bg-glass: rgba(2, 11, 24, 0.85);
    --border: var(--border-blue);
    --border-bright: rgba(0, 243, 255, 0.6);
    --shadow-sm: 0 1px 2px 0 rgba(0, 243, 255, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 243, 255, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 243, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-void);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* TECHNICAL GRID OVERLAY */
.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(226, 232, 240, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5; pointer-events: none; z-index: -1;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* NAV */
nav {
    height: 90px; display: flex; align-items: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-glass); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
    transition: all 0.3s;
}
nav.scrolled {
    height: 70px;
    background: rgba(5, 5, 5, 0.95);
    border-bottom-color: var(--border-bright);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.nav-container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
}
.brand {
    font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em;
    display: block;
    text-transform: uppercase;
}
.brand-logo { height: 50px; width: auto; border-radius: 8px; }
.brand span { font-family: var(--font-heading); font-weight: 900; color: var(--neon-blue); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    text-decoration: none; color: var(--text-main);
    font-size: 0.85rem; font-weight: 600; transition: color 0.2s;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.nav-links a:hover { color: var(--accent); }
.hire-btn {
    background: var(--primary); color: #fff !important;
    padding: 0.6rem 1.2rem; border-radius: 6px;
}

/* HERO */
.hero { padding: 100px 0; border-bottom: 1px solid var(--border); }
.hero-tag {
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800;
    line-height: 1; letter-spacing: -0.05em; margin-bottom: 2rem;
    color: var(--primary);
}
.highlight { 
    color: var(--accent); 
    position: relative;
    display: inline-block;
}
.hero p { 
    font-size: 1.35rem; 
    color: var(--text-main); 
    max-width: 650px; 
    margin-bottom: 2.5rem; 
    font-weight: 400;
    opacity: 0.9;
}
.hero-socials { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 3rem; }
.social-group { display: flex; gap: 1.5rem; }
.social-divider { width: 1px; height: 16px; background: var(--border); }
.hero-socials a {
    font-size: 1.25rem; color: var(--text-light); text-decoration: none;
    transition: all 0.2s; display: flex; align-items: center;
}
.hero-socials a:hover { color: var(--accent); transform: translateY(-2px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* BUTTONS */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem; border-radius: 8px; font-weight: 600; text-decoration: none;
    transition: all 0.2s; font-size: 1rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-secondary { border: 1.5px solid var(--border); color: var(--primary); }
.btn-secondary:hover { border-color: var(--primary); }

/* WORK GRID */
.section { padding: 120px 0; border-bottom: 1px solid var(--border); }
.section.grey { background: var(--bg-grey); border-top: 1px solid var(--border); }
.section-header { margin-bottom: 5rem; }
.section-header.centered { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-header.centered .line { margin-left: auto; margin-right: auto; }
.line { width: 40px; height: 3px; background: var(--accent); margin-bottom: 1.5rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin-top: 1rem; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.project-card {
    text-decoration: none; color: inherit; display: block;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.project-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--accent); 
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-glow);
}

.neon-card {
    border: none !important;
    position: relative;
    padding: 2px; /* Space for the gradient border */
    background: linear-gradient(135deg, #00f3ff, #39ff14, #00f3ff);
    background-size: 300% 300%;
    animation: neonGradient 6s ease infinite;
    color: #fff !important;
}

.neon-card .project-image {
    background-color: #000;
}

.neon-card .project-info {
    background-color: #0a0a0a; /* Deep dark to match the image */
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.neon-card h3 { color: #fff; }
.neon-card .p-category { color: #00f3ff; }
.neon-card p { color: rgba(255, 255, 255, 0.7) !important; }

.neon-card .linker-badge {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.neon-card .linker-badge span { color: rgba(255, 255, 255, 0.5); }

.neon-card:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6), 0 0 60px rgba(57, 255, 20, 0.4) !important;
}

/* SLIDESHOW */
.slideshow-container {
    position: relative;
    overflow: hidden;
}
.slides {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
}
.slide.active {
    opacity: 1;
    transform: scale(1.1);
}

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

.project-image {
    height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative;
    gap: 1rem;
}
.project-mockup {
    font-family: var(--font-mono); font-size: 1.5rem; color: rgba(255,255,255,0.8);
    font-weight: 800; border: 2px solid rgba(255,255,255,0.2); padding: 1rem 2rem;
}
.project-info { padding: 2rem; }
.p-category { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.project-info h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.project-info p { color: var(--text-light); font-size: 0.95rem; }

.linker-badge {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.4rem; padding: 0.5rem; border: 1px solid var(--border);
    border-radius: 8px; background: var(--bg-grey);
}
.linker-badge img { height: 24px; width: auto; }
.linker-badge span { font-size: 0.65rem; font-family: var(--font-mono); text-transform: uppercase; color: var(--text-light); }

.lock-tag {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.5); color: #fff; font-size: 0.7rem;
    padding: 0.4rem 0.8rem; border-radius: 100px; backdrop-filter: blur(5px);
}
.locked { opacity: 0.8; cursor: default; }
.locked:hover { transform: none; border-color: var(--border); }

/* FEATURED PROJECT: LINKER.AI */
.featured-project {
    background: #0a0a0c;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05), transparent 40%);
    border-radius: 32px;
    padding: 6rem 5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.linker-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.linker-brand {
    margin-bottom: 2.5rem;
}

.linker-brand img {
    height: 60px;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

.linker-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.linker-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.7;
}

.linker-features {
    list-style: none;
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.linker-features li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.linker-features i {
    color: var(--accent);
    width: 24px;
    font-size: 1.25rem;
    text-align: center;
}

.linker-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.featured-project .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.featured-project .btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.status-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.linker-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SPATIAL NETWORK VISUAL */
.neural-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
    animation: pulseNode 3s infinite ease-in-out;
}

.n1 { top: 20%; left: 30%; animation-delay: 0s; }
.n2 { top: 60%; left: 10%; animation-delay: 0.5s; }
.n3 { top: 80%; left: 50%; animation-delay: 1s; }
.n4 { top: 40%; left: 70%; animation-delay: 1.5s; }
.n5 { top: 10%; left: 60%; animation-delay: 2s; }

.line {
    position: absolute;
    background: linear-gradient(90deg, var(--accent), transparent);
    height: 1px;
    opacity: 0.2;
    transform-origin: left center;
}

.l1 { top: 21%; left: 31%; width: 100px; transform: rotate(140deg); }
.l2 { top: 61%; left: 11%; width: 120px; transform: rotate(30deg); }
.l3 { top: 41%; left: 71%; width: 80px; transform: rotate(-110deg); }

@keyframes pulseNode {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 1; }
}

@media (max-width: 992px) {
    .linker-container { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .linker-content p { margin-left: auto; margin-right: auto; }
    .linker-features { justify-content: center; }
    .linker-features li { justify-content: center; }
    .linker-cta { justify-content: center; }
}

@media (max-width: 768px) {
    .featured-project { padding: 4rem 2rem; }
    .linker-cta { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
}

/* ABOUT */
.about-flex { display: flex; flex-direction: column; gap: 3rem; }
.about-text p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text-main); }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-top: 3rem; margin-bottom: 2rem; }
.skill-group h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tags span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-main);
    background: var(--bg-grey);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.about-stat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.stat-card { background: #fff; border: 1px solid var(--border); padding: 1.5rem; border-radius: 12px; text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-desc { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; margin-top: 0.5rem; color: var(--text-light); }

/* FOOTER */
footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-flex { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.powered-by { margin-top: 1rem; }
.powered-by img { height: 48px; opacity: 0.8; transition: opacity 0.3s; }
.powered-by img:hover { opacity: 1; }
.copy { font-size: 0.85rem; color: var(--text-light); }

/* MOBILE */
@media (max-width: 768px) {
    .project-grid { grid-template-columns: 1fr; }
    .about-flex { grid-template-columns: 1fr; gap: 4rem; }
    .about-stat { grid-template-columns: 1fr; margin-top: 4rem; }
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions a { text-align: center; width: 100%; }
}
