/* style.css */

/*------------------------------------------------------------------
[TABLE OF CONTENTS]

1.  :ROOT VARIABLES
2.  GENERAL & BODY STYLES
3.  TYPOGRAPHY
4.  LAYOUT & HELPERS (Container, Columns, etc.)
5.  HEADER & NAVIGATION
6.  HERO SECTION
7.  BUTTONS & FORMS (Global)
8.  SECTION STYLES (General)
9.  MISSION SECTION
10. STATISTICS SECTION
11. PROJECTS & CARDS
12. GALLERY SECTION
13. EVENTS (Accordion)
14. CUSTOMER STORIES (Testimonials)
15. RESOURCES SECTION
16. CONTACT SECTION
17. FOOTER
18. SPECIFIC PAGE STYLES (Privacy, Success)
19. ANIMATIONS & EFFECTS
20. RESPONSIVE DESIGN (Media Queries)
-------------------------------------------------------------------*/

/* 1. :ROOT VARIABLES */
:root {
    /* Triadic Color Scheme */
    --primary-dark-bg: #0A0F1C; /* Deep space blue */
    --secondary-dark-bg: #1A2035; /* Lighter navy */
    --accent-glow: #00F6FF;       /* Vibrant Cyan */
    --accent-warm: #FF5733;        /* Warm Orange/Coral */
    
    /* Text Colors */
    --text-light: #E0E0E0;
    --text-dark: #222222;
    --text-muted: #99a1b3;

    /* Fonts */
    --font-headings: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --section-padding: 6rem 0;
    --border-radius: 12px;
    --card-border-radius: 16px;
}

/* 2. GENERAL & BODY STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--primary-dark-bg);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

#page-container {
    position: relative;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.dark-section h1, .dark-section h2, .dark-section h3 {
    color: #FFFFFF;
}
section:not(.dark-section) h2, section:not(.dark-section) h3 {
    color: var(--text-dark);
    text-shadow: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-muted);
}
section:not(.dark-section) .section-subtitle {
    color: #555;
}

a {
    color: var(--accent-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* 4. LAYOUT & HELPERS */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.column {
    flex: 1;
    min-width: 300px;
}
.column.is-two-thirds {
    flex-grow: 2;
    flex-basis: 60%;
}


/* 5. HEADER & NAVIGATION */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 15, 28, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 246, 255, 0.2);
    transition: background-color 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

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

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

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-family: var(--font-headings);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-glow);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 6. HERO SECTION */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 15, 28, 0.8) 0%, rgba(10, 15, 28, 0.4) 100%);
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 246, 255, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: #FFFFFF;
}

/* 7. BUTTONS & FORMS (Global) */
.cta-button, button[type="submit"] {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-glow);
    color: var(--primary-dark-bg);
    font-family: var(--font-headings);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 246, 255, 0.2);
}

.cta-button:hover, button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 246, 255, 0.4);
    background-color: #fff;
}

.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-glow);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent-glow);
    background: var(--primary-dark-bg);
    padding: 0 0.5rem;
}
#contacto.dark-section .form-group input:focus + label,
#contacto.dark-section .form-group textarea:focus + label,
#contacto.dark-section .form-group input:valid + label,
#contacto.dark-section .form-group textarea:valid + label {
    background: var(--secondary-dark-bg);
}

/* 8. SECTION STYLES (General) */
section {
    padding: var(--section-padding);
}
section:not(.dark-section) {
    background: #f4f7fc;
    color: var(--text-dark);
}

.dark-section {
    background-color: var(--secondary-dark-bg);
    position: relative;
}

/* 9. MISSION SECTION */
#mision .columns {
    align-items: flex-start;
}

#mision h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
#mision p {
    margin-bottom: 1.5rem;
    color: #333;
}
#mision .card-image img {
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 10. STATISTICS SECTION */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.stat-item .stat-number {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-glow);
    display: block;
}
.stat-item .stat-number span {
    color: var(--accent-glow);
}

.stat-item .stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* 11. PROJECTS & CARDS */
.card {
    background: #fff;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center; /* STROGO requirement */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card .card-image {
    width: 100%;
    height: 250px; /* STROGO requirement */
    overflow: hidden;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* STROGO requirement */
    transition: transform 0.4s ease;
}

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

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card .card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card .card-content p {
    color: #555;
}

/* 12. GALLERY SECTION */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* 13. EVENTS (Accordion) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-header {
    width: 100%;
    background: #fff;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-warm);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.7;
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* Adjust as needed */
}

/* 14. CUSTOMER STORIES (Testimonials) */
.testimonial-card {
    background: var(--primary-dark-bg);
    padding: 2rem;
    border-radius: var(--card-border-radius);
    border-left: 5px solid var(--accent-glow);
    text-align: center;
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}
.testimonial-card cite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-style: normal;
}
.testimonial-card cite img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-glow);
}
.testimonial-card cite span {
    font-weight: bold;
    color: var(--text-light);
}

/* 15. RESOURCES SECTION */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.resource-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-warm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.resource-item:hover {
    transform: translateX(5px);
    box-shadow: 5px 5px 20px rgba(0,0,0,0.08);
}
.resource-item h4 {
    margin-bottom: 0.5rem;
}
.resource-item h4 a {
    color: var(--text-dark);
    font-size: 1.2rem;
}
.resource-item h4 a:hover {
    color: var(--accent-warm);
}
.resource-item p {
    color: #555;
}


/* 16. CONTACT SECTION */
#contacto {
    background-color: var(--primary-dark-bg);
    background-image:
        linear-gradient(rgba(10, 15, 28, 0.95), rgba(10, 15, 28, 0.95)),
        url('./image/contact-background-abstract.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#contacto .form-group input, #contacto .form-group textarea {
    background: rgba(26, 32, 53, 0.7);
    border: 1px solid rgba(0, 246, 255, 0.2);
}
#contacto .form-group label {
    color: var(--text-muted);
}
#contacto .form-group input:focus + label,
#contacto .form-group textarea:focus + label,
#contacto .form-group input:valid + label,
#contacto .form-group textarea:valid + label {
    background-color: var(--primary-dark-bg);
}


/* 17. FOOTER */
.main-footer {
    background-color: var(--primary-dark-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 246, 255, 0.1);
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul a {
    color: var(--text-muted);
}

.footer-column ul a:hover {
    color: var(--accent-glow);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 18. SPECIFIC PAGE STYLES */
/* Privacy & Terms Pages */
.static-page-content {
    padding: calc(var(--header-height) + 3rem) 0 3rem;
    min-height: calc(100vh - var(--header-height));
    background-color: #fff;
    color: var(--text-dark);
}
.static-page-content h1, .static-page-content h2, .static-page-content h3 {
    color: var(--text-dark);
    text-shadow: none;
}
.static-page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.static-page-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.static-page-content p, .static-page-content li {
    line-height: 1.8;
    margin-bottom: 1rem;
}
.static-page-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}

/* Success Page */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}
.success-page .success-icon {
    font-size: 5rem;
    color: var(--accent-glow);
    margin-bottom: 2rem;
}
.success-page h1 {
    color: #fff;
}
.success-page p {
    color: var(--text-muted);
    margin: 1rem 0 2rem;
}


/* 19. ANIMATIONS & EFFECTS */
/* Placeholder for JS-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* 20. RESPONSIVE DESIGN (Media Queries) */
@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 0;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .columns {
        flex-direction: column;
    }
    .column.is-two-thirds {
        flex-basis: auto;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--secondary-dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    .burger-menu {
        display: block;
    }
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column ul {
        padding-left: 0;
    }
}