/* CSS Variables */
:root {
    --magenta: #FF0090;
    --cyan: #00D9FF;
    --purple: #8B5CF6;
    --dark-bg: #12132D;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
}

/* Animated background */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
    background:
        radial-gradient(circle at 20% 50%, var(--magenta) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--cyan) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--purple) 0%, transparent 50%);
    filter: blur(100px);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
}

/* Policy Hero Section */
.policy-hero {
    margin-top: 80px;
    padding: 4rem 5% 2rem;
}

.policy-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.policy-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Policy Content Section */
.policy-content {
    padding: 3rem 5% 6rem;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
}

.policy-card {
    background: rgba(18, 19, 45, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.policy-card:hover {
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

.policy-card h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.policy-card h2::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--magenta), var(--cyan));
    border-radius: 2px;
}

.policy-card h3 {
    font-size: 1.4rem;
    color: var(--cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.policy-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.policy-card ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.policy-card li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.policy-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Related Projects Section */
.related-projects-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 0, 144, 0.1));
    backdrop-filter: blur(15px);
    border: 1px solid var(--cyan);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 3rem;
}

.related-projects-card h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(18, 19, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(18, 19, 45, 0.7);
    border-color: var(--cyan);
    transform: translateX(5px);
    color: var(--cyan);
}

.project-link-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.project-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(3px);
}

/* Contact Section in Policy */
.policy-contact {
    background: rgba(0, 217, 255, 0.05);
    border-left: 4px solid var(--cyan);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.policy-contact p {
    margin-bottom: 0.5rem;
}

.policy-contact a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.policy-contact a:hover {
    color: var(--magenta);
}

/* Responsive Design */
@media (max-width: 768px) {
    .policy-title {
        font-size: 2rem;
    }

    .policy-card {
        padding: 2rem;
    }

    .policy-card h2 {
        font-size: 1.5rem;
    }

    .policy-card h3 {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .policy-title {
        font-size: 1.5rem;
    }

    .policy-card {
        padding: 1.5rem;
    }

    .policy-card p,
    .policy-card li {
        font-size: 0.95rem;
    }
}
