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

:root {
    --neon-green: #00ff41;
    --neon-blue: #00d9ff;
    --neon-purple: #bd00ff;
    --neon-pink: #ff0080;
    --matrix-green: #0f0;
    --dark-bg: #000000;
    --darker-bg: #0a0a0a;
    --card-bg: rgba(0, 255, 65, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #00ff41;
    --border-glow: rgba(0, 255, 65, 0.5);
}

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

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    cursor: crosshair;
}

/* Matrix Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #000;
}

/* Glitch effect */
@keyframes glitch {
    0%, 100% {
        text-shadow:
            0.05em 0 0 rgba(255, 0, 0, .75),
            -0.05em -0.025em 0 rgba(0, 255, 0, .75),
            0.025em 0.05em 0 rgba(0, 0, 255, .75);
    }
    14% {
        text-shadow:
            0.05em 0 0 rgba(255, 0, 0, .75),
            -0.05em -0.025em 0 rgba(0, 255, 0, .75),
            0.025em 0.05em 0 rgba(0, 0, 255, .75);
    }
    15% {
        text-shadow:
            -0.05em -0.025em 0 rgba(255, 0, 0, .75),
            0.025em 0.025em 0 rgba(0, 255, 0, .75),
            -0.05em -0.05em 0 rgba(0, 0, 255, .75);
    }
    49% {
        text-shadow:
            -0.05em -0.025em 0 rgba(255, 0, 0, .75),
            0.025em 0.025em 0 rgba(0, 255, 0, .75),
            -0.05em -0.05em 0 rgba(0, 0, 255, .75);
    }
    50% {
        text-shadow:
            0.025em 0.05em 0 rgba(255, 0, 0, .75),
            0.05em 0 0 rgba(0, 255, 0, .75),
            0 -0.05em 0 rgba(0, 0, 255, .75);
    }
    99% {
        text-shadow:
            0.025em 0.05em 0 rgba(255, 0, 0, .75),
            0.05em 0 0 rgba(0, 255, 0, .75),
            0 -0.05em 0 rgba(0, 0, 255, .75);
    }
}

/* Cyberpunk Grid */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
    z-index: -1;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--neon-green);
    box-shadow: 0 0 20px var(--border-glow);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 3rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

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

nav a::before {
    content: '[ ';
    opacity: 0;
    transition: opacity 0.3s;
}

nav a::after {
    content: ' ]';
    opacity: 0;
    transition: opacity 0.3s;
}

nav a:hover::before,
nav a:hover::after {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1200px;
}

.glitch-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: glitch 2s infinite;
    position: relative;
    color: var(--neon-green);
    text-shadow:
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 30px var(--neon-green);
}

.glitch-title::before,
.glitch-title::after {
    content: 'RAYLIN';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-title::before {
    animation: glitch-1 0.5s infinite;
    color: var(--neon-blue);
    z-index: -1;
}

.glitch-title::after {
    animation: glitch-2 0.5s infinite;
    color: var(--neon-pink);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(50% 0 20% 0); }
    60% { clip-path: inset(10% 0 80% 0); }
    80% { clip-path: inset(80% 0 5% 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(80% 0 10% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(10% 0 80% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, -2px); }
    80% { clip-path: inset(20% 0 70% 0); transform: translate(2px, 2px); }
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin: 2rem 0 3rem 0;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Terminal Style Cards */
.terminal-window {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow:
        0 0 20px rgba(0, 255, 65, 0.5),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
}

.terminal-header {
    background: var(--neon-green);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-bg);
}

.terminal-title {
    color: var(--dark-bg);
    font-weight: 700;
    margin-left: auto;
    font-family: 'Orbitron', sans-serif;
}

.terminal-body {
    padding: 2rem;
    font-family: 'Share Tech Mono', monospace;
}

/* Section Styling */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--neon-green);
    text-shadow:
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green);
    position: relative;
}

.section-title::before {
    content: '<<';
    margin-right: 1rem;
    color: var(--neon-blue);
}

.section-title::after {
    content: '>>';
    margin-left: 1rem;
    color: var(--neon-blue);
}

/* Skills Matrix */
.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-node {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--neon-green);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.skill-node::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue), var(--neon-purple), var(--neon-pink));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(5px);
}

.skill-node:hover::before {
    opacity: 1;
}

.skill-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.3);
}

.skill-node h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

.skill-node ul {
    list-style: none;
}

.skill-node li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 25px;
}

.skill-node li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Certifications Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 217, 255, 0.1));
    border: 1px solid var(--neon-green);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.cert-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 217, 255, 0.2));
}

.cert-issuer {
    color: var(--neon-purple);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cert-date {
    color: var(--neon-blue);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cert-skill-tag {
    background: rgba(189, 0, 255, 0.2);
    color: var(--neon-purple);
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid var(--neon-purple);
}

/* Experience Timeline */
.cyber-timeline {
    position: relative;
    padding: 2rem 0;
}

.cyber-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--neon-green), transparent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.timeline-node {
    position: relative;
    margin: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeline-node:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-green);
    padding: 2rem;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--neon-green), transparent, var(--neon-blue));
    z-index: -1;
    opacity: 0.5;
}

.timeline-marker {
    width: 30px;
    height: 30px;
    background: var(--dark-bg);
    border: 3px solid var(--neon-green);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--neon-green);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.6);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--neon-blue);
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.contact-link:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* Hover Trail Effect */
.trail {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--neon-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--neon-green);
    transition: transform 0.1s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .cyber-timeline::before {
        left: 20px;
    }

    .timeline-node {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-left: 40px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-marker {
        left: 20px;
    }

    .glitch-title {
        font-size: 3rem;
    }

    nav ul {
        gap: 1rem;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    animation: pulse 1s infinite;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 65, 0.2);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--neon-green);
    width: 0;
    animation: load 2s ease-out forwards;
}

@keyframes load {
    to { width: 100%; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border: 1px solid var(--neon-green);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}
