body {
    cursor: crosshair;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: #e2e8f0;
}

#contact {
    padding-bottom: 200px; /* gives space for scroll detection */
}

#scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;

    background: repeating-linear-gradient(
        to bottom,
        rgba(56,189,248,0.05) 0px,
        rgba(56,189,248,0.05) 1px,
        transparent 2px,
        transparent 4px
    );

    animation: scan 8s linear infinite;
    z-index: 0;
}

@keyframes scan {
    from {
        transform: translateY(-50%);
    }
    to {
        transform: translateY(0%);
    }
}


header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(56,189,248,0.3);
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav h1 {
    color: #38bdf8;
    text-shadow:
        0 0 10px rgba(56,189,248,0.7),
        0 0 20px rgba(56,189,248,0.4);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    transition: 0.25s;
    transition: all 0.25s ease;
}

nav a.active {
    color: #38bdf8;
    background: rgba(56,189,248,0.15);
    box-shadow: 0 0 10px rgba(56,189,248,0.5);
    transform: scale(1.1);
}

nav a:hover {
    color: #38bdf8;
    background: rgba(56,189,248,0.1);
    box-shadow: 0 0 10px rgba(56,189,248,0.4);
}

.hero {
    text-align: center;
    padding: 120px 20px;
    border-bottom: 1px solid #1e293b;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    color: #94a3b8;
}

.btn {
    background: transparent;
    border: 2px solid #38bdf8;
    padding: 10px 24px;
    color: #38bdf8;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.25s;
}

a:hover, .btn:hover {
    cursor: crosshair;
}

.btn:hover {
    background: #38bdf8;
    color: #020617;
    box-shadow: 0 0 15px rgba(56,189,248,0.7);
}

section {
    padding: 120px 10%;
    margin: 120px auto;
    max-width: 1100px;
    scroll-margin-top: 100px;

    text-align: center;

    background: rgba(2, 6, 23, 0.8);
    border: 1px solid #38bdf8;
    border-radius: 10px;

    box-shadow:
        0 0 10px rgba(56,189,248,0.2),
        inset 0 0 10px rgba(56,189,248,0.1);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: #020617;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0px 20px 50px rgba(0,0,0,0.6);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.project-links a {
    border: 2px solid #38bdf8;
    color: #38bdf8;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.25s ease;
}

.project-links a:hover {
    background: #38bdf8;
    color: #020617;
    box-shadow: 0 0 10px rgba(56,189,248,0.7);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 30px;
    background: #020617;
    color: #64748b;
}

#about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#skills {
    text-align: center;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 40px auto;
}

.skills-grid ul {
    list-style: none;
    padding: 0;
}

.skills-grid li {
    margin: 5px 0;
}

.skills-grid div {
    background: #020617;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.2s;
}

.skills-grid div:hover {
    transform: translateY(-4px);
}

.skill-category {
    background: #020617;
    padding: 25px;
    border-radius: 10px;
}

.skill-tags {
     display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.skill-tags span {
    background: #1e293b;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease
}

.skill-tags span:hover {
     background: #38bdf8;
    color: #020617;
    transform: translateY(-3px) scale(1.05);
}

#contact {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#contact a {
    color: #4CAF50;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}


h2 {
    text-align: center;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    margin: 10px auto;
    background: #38bdf8;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.fade-in {
    opacity: 0.3;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

html {
    scroll-behavior: smooth;
}

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

/* Track */
::-webkit-scrollbar-track {
    background: #020617;
}

/* Scrollbar handle */
::-webkit-scrollbar-thumb {
    background: #38bdf8;
    border-radius: 5px;
}

/* Hover effect */
::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

section img {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
}

section ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    
}

section ul li {
    background: #020617;
    border: 1px solid #38bdf8;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    text-align: center;
}

header.scrolled {
    box-shadow: 0 0 15px rgba(56,189,248,0.4);
}


