@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-color: #020c1b;
    --navy-dark: #0a192f;
    --navy-light: #112240;
    --navy-lightest: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --cyan: #64ffda;
    --cyan-shadow: rgba(100, 255, 218, 0.1);
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        radial-gradient(rgba(100, 255, 218, 0.1) 1px, transparent 1px); /* Added Dots */
    background-size: 50px 50px, 50px 50px, 20px 20px;
    color: var(--slate);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 🧬 SCANNER LINE OVERLAY 🧬 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--cyan), transparent);
    opacity: 0.15;
    z-index: 10000;
    pointer-events: none;
    animation: scanLine 6s linear infinite;
}

/* 🖱️ CUSTOM CURSOR 🖱️ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    box-shadow: 0 0 10px var(--cyan);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s cubic-bezier(0.1, 0.4, 0.4, 1.0);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-follower::after {
    content: "";
    width: 10px;
    height: 1px;
    background: var(--cyan);
    position: absolute;
}

.cursor-follower::before {
    content: "";
    width: 1px;
    height: 10px;
    background: var(--cyan);
    position: absolute;
}

body:hover .cursor-dot, body:hover .cursor-follower {
    opacity: 1;
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-follower {
        display: none;
    }
}

@keyframes scanLine {
    0% { top: -10%; }
    100% { top: 110%; }
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-lightest);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--slate);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

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

h2 {
    font-size: 32px;
    color: var(--lightest-slate);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    position: relative;
}

h2::before {
    content: "[SYS_STATUS_OK]";
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--cyan);
    opacity: 0.5;
    letter-spacing: 2px;
}

h2::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background-color: var(--navy-lightest);
    margin-left: 20px;
}

.cyan-text {
    color: var(--cyan);
    font-family: var(--font-mono);
}

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: center; /* Centered now */
    align-items: center;
    width: 100%;
}

.logo {
    color: var(--cyan);
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--lightest-slate);
    font-size: 18px; /* Enlarged from 14px */
    font-family: var(--font-mono);
    transition: var(--transition);
}

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

.nav-links li span {
    color: var(--cyan);
    margin-right: 5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    transform: none;
    position: relative;
    overflow: hidden;
}

.hero p:first-child {
    font-family: var(--font-mono);
    color: var(--cyan);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--lightest-slate);
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* ⚡ GLITCH EFFECT ⚡ */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    4.16% { clip: rect(91px, 9999px, 43px, 0); }
    8.33% { clip: rect(10px, 9999px, 65px, 0); }
    100% { clip: rect(50px, 9999px, 30px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(15px, 9999px, 56px, 0); }
    100% { clip: rect(10px, 9999px, 80px, 0); }
}

.hero h3 {
    font-size: clamp(30px, 6vw, 60px);
    color: var(--slate);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero .description {
    max-width: 540px;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 28px;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
}

.btn:hover {
    background-color: var(--cyan-shadow);
}

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

.skill-card {
    background: var(--navy-light);
    padding: 25px;
    border-radius: 4px;
    border: 1px solid rgba(100, 255, 218, 0.05); /* Subtly defined */
    transition: var(--transition);
    position: relative; /* For HUD Corners */
}

/* 📐 HUD CORNER BRACKETS 📐 */
.skill-card::before, .skill-card::after, .project-card::before, .project-card::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--cyan);
    border-style: solid;
    pointer-events: none;
    opacity: 0.3;
}

.skill-card::before, .project-card::before {
    top: 5px;
    left: 5px;
    border-width: 2px 0 0 2px;
}

.skill-card::after, .project-card::after {
    bottom: 5px;
    right: 5px;
    border-width: 0 2px 2px 0;
}

.skill-card:hover::before, .skill-card:hover::after,
.project-card:hover::before, .project-card:hover::after {
    opacity: 1;
    box-shadow: 0 0 5px var(--cyan);
}

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

.skill-card h4 {
    color: var(--lightest-slate);
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--navy-lightest);
    color: var(--cyan);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--font-mono);
}

/* 📊 SKILL PROGRESS BAR 📊 */
.skill-progress-container {
    width: 100%;
    height: 4px;
    background: var(--navy-lightest);
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    background: var(--cyan);
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0, 0, 1);
    box-shadow: 0 0 10px var(--cyan);
}

.skill-card:hover .skill-progress-bar {
    filter: brightness(1.2);
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--navy-light);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 200px;
    background: var(--navy-lightest);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(50%) contrast(1);
    transition: var(--transition);
}

.project-card:hover .project-img img {
    filter: none;
}

.project-content {
    padding: 25px;
}

.project-content h4 {
    color: var(--lightest-slate);
    margin-bottom: 10px;
}

.project-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 15px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--slate);
}

/* Profile Picture Styling */
.about-img-container {
    position: relative; 
    width: 300px; 
    height: 400px; 
    border: 2px solid var(--cyan); 
    border-radius: 4px;
    transition: var(--transition);
}

.about-img-container:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0px 0px var(--cyan-shadow);
}

/* Contact Footer */
.footer {
    padding: 100px 0 50px;
    text-align: center;
}

.footer h2 {
    justify-content: center;
}

.footer h2::after {
    display: none;
}

.social-icon {
    font-size: 24px;
    color: var(--slate);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--cyan);
    transform: translateY(-3px);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 12px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }
    
    .nav-links {
        display: none;
    }
    
    h2::after {
        width: 100px;
    }
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 100px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    border: 1px solid var(--cyan);
    box-shadow: 0 0 50px var(--cyan-shadow);
    border-radius: 4px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--cyan);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: var(--white);
    text-shadow: 0 0 15px var(--cyan);
}

.system-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
    opacity: 0.7;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* 🚀 HERO HUD DECORATIONS 🚀 */
.hero {
    position: relative;
}

.hero::before {
    content: "BOOT_SEQUENCE: SUCCESS\nIP: 192.168.1.100\nLOCAL_ADDR: C:/USERS/VALEN/..\nMEM_STATE: UNLOCKED";
    position: absolute;
    top: 5%;
    left: 40px;
    white-space: pre;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--cyan);
    opacity: 0.3;
    line-height: 1.5;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "[SCANNING_NETWORK..]\n[FIREWALL: ACTIVE]\n[IDENTITY_VERIFIED]";
    position: absolute;
    bottom: 5%;
    right: 40px;
    white-space: pre;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--cyan);
    opacity: 0.3;
    line-height: 1.5;
    text-align: right;
    pointer-events: none;
    z-index: 0;
}

/* 📡 SYSTEM MARQUEE 📡 */
.system-marquee {
    background: rgba(10, 25, 47, 0.95);
    border-top: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0.8;
}

.system-marquee span {
    display: inline-block;
    padding-left: 50px;
    animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    .hero::before, .hero::after {
        display: none;
    }
    .system-marquee {
        font-size: 8px;
    }
}

/* 🛸 FLOATING HUD ELEMENTS 🛸 */
.hud-corner {
    position: fixed;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--cyan);
    opacity: 0.4;
    z-index: 50;
    pointer-events: none;
    text-transform: uppercase;
}

.top-right { top: 100px; right: 40px; text-align: right; }
.bottom-left { bottom: 60px; left: 40px; }

/* 🎇 BACKGROUND PARTICLES 🎇 */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0); }
    100% { transform: translateY(-100px) translateX(20px); }
}

@media (max-width: 768px) {
    .hud-corner { display: none; }
}

/* 🌐 FULL PAGE 3D BACKGROUND 🌐 */
#full-3d-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.65; /* Increased for stronger presence */
}


