:root {
    --bg-color: #0a0a0f;
    --neon-cyan: #00f2ff;
    --neon-blue: #0066ff;
    --text-color: #e0e0e0;
    --hud-line: rgba(0, 242, 255, 0.2);
    --grid-color: rgba(0, 242, 255, 0.05);
    --font-main: 'Rajdhani', sans-serif;
    --font-accent: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

html {
    scroll-behavior: smooth;
}

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

/* Particles Canvas */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* --- Animated Grid Background --- */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

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

/* --- Custom Cursor Glow --- */
.cursor-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* --- Typography & Neon Effects --- */
h1, h2, h3, .btn, .nav-links a {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.7), 0 0 20px rgba(0, 242, 255, 0.3);
}

.section-title {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hud-line);
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hud-frame {
    border: 1px solid var(--hud-line);
    position: relative;
    background: rgba(0, 242, 255, 0.02);
    clip-path: polygon(0% 15%, 5% 0%, 95% 0%, 100% 15%, 100% 85%, 95% 100%, 5% 100%, 0% 85%);
}

.hud-frame::before, .hud-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
}

.hud-frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hud-frame::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.glitch-text {
    font-size: 4rem;
    font-weight: 700;
    position: relative;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-top: 10px;
}

.cursor {
    animation: blink 1s infinite;
}

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

/* --- Buttons --- */
.btn-neon {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 12px 30px;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.btn-neon:hover {
    background: var(--neon-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.btn-outline {
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 12px 30px;
    margin-left: 15px;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* --- About & Skills --- */
.hud-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--neon-cyan);
    backdrop-filter: blur(5px);
}

.highlight {
    color: var(--neon-cyan);
    font-weight: 600;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: 1.5s ease-out;
}

/* --- Project Cards --- */
.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--hud-line);
    transition: 0.4s;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.project-card-clickable {
    cursor: pointer;
}

.project-card-clickable:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.2);
}

.project-img-placeholder {
    height: 200px;
    background: rgba(0, 242, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    color: var(--hud-line);
    border-bottom: 1px solid var(--hud-line);
}

.project-preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--hud-line);
    transition: 0.3s;
}

.project-preview-img:hover {
    transform: scale(1.05);
}

.link-neon {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 15px;
}

.link-outline {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
}

/* --- Tech Icons --- */
.tech-icon {
    padding: 15px 25px;
    border: 1px solid var(--hud-line);
    background: rgba(255, 255, 255, 0.02);
    transition: 0.3s;
}

.tech-icon:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: scale(1.1);
}

/* --- Contact Form --- */
.hud-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hud-line);
    padding: 12px;
    color: var(--text-color);
    font-family: var(--font-main);
    outline: none;
    transition: 0.3s;
}

.hud-input:focus {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 255, 0.05);
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--hud-line);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
}

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

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--neon-cyan);
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--hud-line);
    font-size: 0.8rem;
    color: #666;
}

/* --- Project Carousel --- */
.projects-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-out;
    gap: 20px;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, 0.2);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    border-radius: 4px;
}

.carousel-control:hover {
    background: rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--neon-cyan);
}

.indicator-dot.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transform: scale(1.2);
}

.indicator-dot:hover {
    background: rgba(0, 242, 255, 0.6);
}

/* Carousel responsive */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* --- Reveal Animations --- */
.hide {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .glitch-text { font-size: 2.5rem; }
    .subtitle { font-size: 1.1rem; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
}