:root {
    --primary-color: #0d0d2b; /* Deep Space Blue */
    --secondary-color: #1e1e4b; /* Dark Purple */
    --accent-color: #9d72ff; /* Luminous Purple */
    --text-color: #e0e0e0; /* Light Gray */
    --glow-color: #c5a8ff;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Starry background effect */
@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}

#stars, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

#stars {
    background: transparent url('stars.png') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

#stars2 {
    background: transparent url('stars2.png') repeat top center;
    animation: move-twink-back 150s linear infinite;
}

#stars3 {
    background: transparent url('stars3.png') repeat top center;
    animation: move-twink-back 100s linear infinite;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(13, 13, 43, 0.5);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(157, 114, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
    margin: 0;
    font-size: 1.8rem;
}

header nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

header nav a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--glow-color);
}

main {
    padding: 2rem 5%;
}

#hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-shadow: 0 0 15px var(--glow-color);
    margin: 0;
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 1rem;
}

section {
    margin-bottom: 4rem;
}

.content-box {
    background: rgba(30, 30, 75, 0.6);
    border: 1px solid rgba(157, 114, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}


h2 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--glow-color);
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
}

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

.card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(157, 114, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(157, 114, 255, 0.5);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card h3, .card p {
    padding: 0 1.5rem;
}

.card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.card p {
    padding-bottom: 1.5rem;
    line-height: 1.6;
}

#connect {
    text-align: center;
}

.social-links a {
    display: inline-block;
    color: var(--text-color);
    background: var(--primary-color);
    border: 1px solid var(--accent-color);
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px var(--accent-color);
}


footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(157, 114, 255, 0.2);
    color: rgba(224, 224, 224, 0.7);
}

