@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@400;700&display=swap');

:root {
    --color-bg: #0a0e17; /* Deep Midnight Blue */
    --color-text: #e0e0e0; /* Off-white */
    --color-primary: #d4af37; /* Gold/Brass */
    --color-secondary: #4b0082; /* Indigo/Deep Purple */
    --color-accent: #00ced1; /* Dark Turquoise (Magical glow) */
    --color-panel: rgba(20, 25, 40, 0.9);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(75, 0, 130, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 206, 209, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px var(--color-accent);
}

/* Header */
header {
    background: linear-gradient(to bottom, rgba(10, 14, 23, 1), rgba(10, 14, 23, 0.8));
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-primary);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: 80vh;
}

section {
    margin-bottom: 4rem;
    animation: fadeIn 1s ease-out;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-panel);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn:hover::before {
    left: 100%;
}

/* News List */
.news-list {
    list-style: none;
}

.news-item {
    background: var(--color-panel);
    border-left: 3px solid var(--color-secondary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
    border-left-color: var(--color-primary);
}

.news-date {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    display: block;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Software Page */
.software-card {
    background: var(--color-panel);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.software-header {
    text-align: center;
}

.software-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.software-gallery img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 206, 209, 0.3);
    border-color: var(--color-accent);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 14, 23, 0.9);
    border-top: 1px solid #333;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #888;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        padding: 1rem;
        border-bottom: 1px solid var(--color-primary);
    }

    nav ul.active {
        display: flex;
    }

    h1 {
        font-size: 2rem;
    }
}
