/*
==================================================
*   style.css
*   Author: AI Assistant
*   Description: Styles for 'CryptoSeguro' website.
==================================================
*/

/* ======================= CSS Variables ======================= */
:root {
    /* Color Palette (Complementary: Deep Blue/Purple and Gold/Yellow) */
    --primary-color: #0d1b2a; /* Deep Navy Blue */
    --secondary-color: #1b263b; /* Darker Slate Blue */
    --accent-color: #fca311; /* Vibrant Orange/Gold */
    --accent-color-darker: #e89204;
    
    /* Text Colors */
    --text-color-light: #f0f0f0; /* Off-white for dark backgrounds */
    --text-color-dark: #333333; /* Dark gray for light backgrounds */
    --text-color-muted: #a9a9a9; /* Lighter gray for subtitles/meta */

    /* Glassmorphism & Borders */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border-color: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius: 8px;
}

/* ======================= Global & Base Styles ======================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

.main-container {
    overflow: hidden; /* Contains AOS animations */
}

/* ======================= Typography ======================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--accent-color); }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1.5rem;
}

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

a:hover, a:focus {
    color: var(--accent-color-darker);
}

/* ======================= Layout & Utility Classes ======================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-section {
    padding: 6rem 0;
}

.content-section-dark {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.section-title {
    color: var(--text-color-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

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

/* ======================= Buttons (Global) ======================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.btn:hover, button:hover, input[type='submit']:hover {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-darker);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.4);
}

/* ======================= Header & Navigation ======================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-light);
}

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

.nav-menu a {
    color: var(--text-color-light);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

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


/* ======================= Hero Section ======================= */
.hero-section {
    min-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;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #FFFFFF;
}


/* ======================= History Section (Timeline) ======================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary-color);
    border: 4px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--glass-bg);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border-color);
    backdrop-filter: blur(5px);
}


/* ======================= Accolades Section ======================= */
.accolades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.accolade-card {
    padding: 2rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accolade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.progress-indicator {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
}

.progress-ring-circle, .progress-ring-circle-bg {
    transition: stroke-dashoffset 1.5s ease-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring-circle-bg {
    stroke: var(--glass-border-color);
}
.progress-ring-circle {
    stroke: var(--accent-color);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-light);
}

/* ======================= Card-based Sections (Research, etc.) ======================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text */
}

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

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for image container */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container without distortion */
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

/* ======================= Testimonials Section ======================= */
.testimonials-gallery {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card .card-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.testimonial-content blockquote {
    font-style: italic;
    font-size: 1.1rem;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

.testimonial-content cite {
    font-weight: 700;
    font-style: normal;
    color: var(--accent-color);
}


/* ======================= External Resources Section ======================= */
.resources-list {
    display: grid;
    gap: 1.5rem;
}

.resource-item {
    display: block;
    padding: 1.5rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border-color);
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateX(10px);
    border-left: 5px solid var(--accent-color);
    background: var(--primary-color);
}

.resource-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.resource-item p {
    color: var(--text-color-muted);
    margin: 0;
}


/* ======================= Contact Form ======================= */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.3);
}

.contact-form button {
    width: 100%;
}


/* ======================= Footer ======================= */
.site-footer {
    background-color: var(--secondary-color);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--glass-border-color);
}

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

.footer-column h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

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

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

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

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

.footer-column ul a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border-color);
    color: var(--text-color-muted);
}

/* ======================= Special Page Styles ======================= */
/* Success Page */
.success-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.success-container {
    padding: 3rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.success-container h1 {
    color: var(--accent-color);
}

/* Privacy & Terms Pages */
.legal-page-content {
    padding-top: 120px; /* Header height + buffer */
    padding-bottom: 4rem;
    max-width: 800px;
    margin: 0 auto;
}
.legal-page-content h1, .legal-page-content h2 {
    text-align: left;
}


/* ======================= Responsive Design ======================= */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    /* --- Mobile Navigation --- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 27, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: block;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* --- Timeline on Mobile --- */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 21px;
    }
}