:root {
    --primary-color: #5D315D; /* Original Deep Purple/Plum for buttons/brand */
    --primary-dark: #3a1a3a;
    --primary-light: #ffffff; /* Replaced pastel lavender with pure white for a cleaner look */
    --secondary-color: #9DC12D; /* Lime Green */
    --accent-color: #9DC12D; 
    --text-color: #f8fafc; /* Crisp white */
    --text-light: #94a3b8; /* Slate gray */
    --bg-color: #0b0f19; /* Very dark rich blue/slate */
    --card-bg: rgba(30, 41, 59, 0.8);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #060813;
    background-image: 
        radial-gradient(at 0% 0%, rgba(93, 49, 93, 0.2) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(157, 193, 45, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(93, 49, 93, 0.08) 0px, transparent 60%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--secondary-color);
    color: #060813;
    padding: 0.8rem 1.5rem;
    z-index: 2000;
    font-weight: 700;
    transition: top 0.2s ease;
    text-decoration: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Keyboard Focus States */
a:focus-visible, 
button:focus-visible, 
select:focus-visible, 
textarea:focus-visible, 
input:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Layout */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--accent-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.lang-switch button {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.lang-switch button:hover {
    background: var(--secondary-color);
    color: #060813;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.15rem;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: linear-gradient(rgba(6, 8, 19, 0.9), rgba(6, 8, 19, 0.7)), url('public/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.6rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
    font-weight: 500;
}



.cta-button {
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(93, 49, 93, 0.4);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color); /* Added for better contrast on light green background */
}

/* Common Section Styling - Handled by html scroll-padding-top */

/* About Section */
.about-section {
    padding: 40px 10% 100px;
    background: transparent;
    color: white;
    min-height: 100vh;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 4rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}

.about-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.about-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mision-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mision-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    max-width: none;
    border-left: 5px solid var(--secondary-color);
}

.mision-card h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.mision-card p {
    font-size: 1.2rem;
    color: #060813;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image {
        height: auto;
        min-height: 400px;
        margin-top: 2rem;
    }
    .mision-card {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: -50px;
        z-index: 2;
    }
}

.team-section {
    padding: 20px 10%;
    background: transparent;
}

.team-section .section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 60%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.35rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(93, 49, 93, 0.1);
}

.team-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 0.5rem 1rem;
    text-align: center;
}

.team-info h3 {
    color: white;
    font-size: 1.65rem;
    margin-bottom: 0.1rem;
}

.team-role {
    color: #a24ca2; /* Darker rich purple */
    font-weight: 600;
    font-size: 1.15rem;
}

/* Services Section */
.services-section {
    padding: 40px 10%;
    background-color: transparent;
    color: white;
}

.services-section .section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 60%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.35rem;
}

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

.service-card {
    background: var(--card-bg);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(93, 49, 93, 0.15);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 800;
}

/* Contact Form Section */
.contact-section {
    padding: 40px 10%;
    background: transparent;
    color: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-section .section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 60%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / span 2;
}

.form-group label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(93, 49, 93, 0.15);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    grid-column: 1 / span 2;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-status {
    grid-column: 1 / span 2;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
}

/* Responsive Form */
@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .form-group.full-width {
        grid-column: 1;
    }
    .submit-btn {
        grid-column: 1;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-info-footer {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
}

.contact-info-footer p {
    margin-bottom: 0.3rem;
}

.contact-info-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-info-footer a:hover {
    color: var(--primary-light);
}

.fsg-logo {
    height: 40px;
    width: auto;
    filter: grayscale(1) opacity(0.7);
    transition: var(--transition);
}

.fsg-logo:hover {
    filter: grayscale(0) opacity(1);
}

.powered-by {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: -0.5rem; /* Bring it closer to the logo */
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem 5%;
        gap: 1rem;
    }
    .brand-logo {
        height: 70px;
    }
    nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    nav ul {
        margin-top: 0;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }
    nav a {
        font-size: 1rem;
    }
    .hero {
        padding: 0 5%;
    }
    .hero h1 { font-size: 2.2rem; margin-top: 60px; }
    .hero p { font-size: 1.1rem; }
    
    .about-section, .services-section, .contact-section, .team-section {
        padding: 40px 5%;
    }
    
    .about-content h2 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .mision-card {
        padding: 1.5rem;
    }
    .mision-card h4 {
        font-size: 1.5rem;
    }
    .mision-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 60px;
    }
    .hero h1 { font-size: 1.8rem; margin-top: 80px; }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .about-content h2 {
        font-size: 2rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--secondary-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* Legal Pages Styling */
.legal-page {
    padding-top: 120px; /* Account for fixed header */
    padding-bottom: 60px;
    background-color: var(--bg-color);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.legal-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.legal-container h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-container p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-container li {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.legal-links {
    margin-top: 15px;
    font-size: 0.9rem;
}

.legal-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
