:root {
    --primary-color: #60a5fa;
    --secondary-color: #93c5fd;
    --accent-color: #38bdf8;
    --bg-light: #0f172a;
    --text-dark: #f8fafc;
    --text-light: #cbd5e1;
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(-45deg, #020617, #0f172a, #082f49, #111827);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: floatOrb 20s infinite ease-in-out alternate;
    pointer-events: none;
}

body::before {
    background: rgba(56, 189, 248, 0.1);
    top: -10%;
    left: -10%;
}

body::after {
    background: rgba(45, 212, 191, 0.1);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

body[data-page="home"] {
    background: linear-gradient(-45deg, #020617, #0f172a, #082f49, #111827);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Common Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.page-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    text-align: center;
}

.page-intro--compact {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn.is-pressed {
    transform: scale(0.97);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.card-frosted {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.card-img {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary-color);
    font-size: 4rem;
    position: relative;
}

.card-glass .card-img {
    background: transparent;
    border-bottom: none;
}

.card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.card-img svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-img svg {
    transform: scale(1.15) translateY(-4px);
}

.card-content {
    padding: 2rem 2.5rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.7;
}

.card-content .btn {
    align-self: flex-start;
    border-radius: 12px;
    font-weight: 500;
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.25);
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card-content .btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(0,86,179,0.3);
    transform: translateY(-2px);
}

.tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    background-color: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 5%;
    margin-top: 3rem;
    backdrop-filter: blur(16px);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

#site-footer {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
