/* CSS Variables & Theme Setup */
:root {
    /* New Palette: Violeta, Rosa, Lavanda, Rosa Viejo */
    --bg-color: #1a1625;
    /* Deep, dark slightly purple background */
    --text-color: #fdf4ff;
    /* Very pale pinkish white */
    --text-muted: #d8b4fe;
    /* Muted lavender for secondary text */

    --primary-color: #c084fc;
    /* Soft Violet */
    --secondary-color: #fb7185;
    /* Soft Rose/Rosa Viejo */
    --accent-glow: rgba(192, 132, 252, 0.3);
    /* Violet glow */

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(226, 184, 255, 0.1);
    /* Subtle lavender border */
    --card-hover: rgba(255, 255, 255, 0.07);

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --section-spacing: 120px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Adjust based on navbar height */
    width: auto;
    object-fit: contain;
}

/* Old styles kept for reference mostly, but .logo font properties aren't needed for image */
/*
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
*/

.dot {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 400;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.action-btn {
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
}

.action-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px auto;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for navbar */
}

/* Ambient Glow */
.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.mission-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.placeholder-text {
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--glass-border);
    position: absolute;
    top: -10px;
    right: 20px;
    opacity: 0.5;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    border: 2px dashed var(--text-muted);
}

/* Contact Section */
.contact-wrapper {
    /* display: grid removed */
    /* grid-template-columns removed */
    /* gap removed */
    padding: 0;
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: rgba(56, 189, 248, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    margin-left: 20px;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
.hidden-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show-fade {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Media Queries */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-grid {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, background 0.3s;
}

.resource-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.resource-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(192, 132, 252, 0.2);
    /* Low opacity violet */
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    margin-bottom: 20px;
}

.tag-guide {
    background: rgba(251, 113, 133, 0.2);
    /* Rose tint */
    color: var(--secondary-color);
}

.tag-video {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.resource-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.resource-card p {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 25px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
}


.profile-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.02);
}

/* Contact Form Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

.contact-details h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-details p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}