/*
* File: style.css
* Author: CryptoSeguro Dev Team
* Description: Stylesheet for the CryptoSeguro website.
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */
:root {
    /* Color Palette - Bright */
    --primary-color: #4A90E2;      /* Bright Blue */
    --secondary-color: #F5A623;    /* Vibrant Orange/Yellow */
    --accent-color: #50E3C2;       /* Aqua Green */
    --dark-color: #282c34;         /* Dark Charcoal */
    --light-color: #F9F9F9;        /* Almost White */
    --text-color: #333333;
    --text-light-color: #FFFFFF;
    --text-muted-color: #6c757d;
    --border-color: #e0e0e0;
    --card-bg-color: #FFFFFF;
    --footer-bg-color: #212529;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 1rem;
    --section-padding: 5rem 0;
    --header-height: 80px;
    
    /* Effects */
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------- */
/*        Typography & Utilities      */
/* ---------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    max-width: 75ch;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-light {
    background-color: #FFFFFF;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem;
    color: var(--text-muted-color);
    font-size: 1.1rem;
}

/* ---------------------------------- */
/*         Global Components          */
/* ---------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
    text-decoration: none;
}

/* Card Styles (Global) */
.card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

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

.card-content h3 {
    color: var(--primary-color);
}

/* ---------------------------------- */
/*          Header & Nav              */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    transition: background-color var(--transition-speed);
}

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

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}
.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-nav {
    display: flex;
    gap: 2rem;
}

.navbar-nav a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

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

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

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

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

/* ---------------------------------- */
/*           Hero Section             */
/* ---------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 4rem;
    color: var(--text-light-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light-color);
    opacity: 0.9;
}

/* ---------------------------------- */
/*       Asymmetric About Us          */
/* ---------------------------------- */
.columns-asymmetric {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.column-text p:first-of-type {
    font-size: 1.1rem;
    font-weight: 500;
}

.column-image .image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ---------------------------------- */
/*      Behind the Scenes Section     */
/* ---------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ---------------------------------- */
/*       Customer Stories Section     */
/* ---------------------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card .card {
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

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

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

.testimonial-card cite {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-style: normal;
}

/* ---------------------------------- */
/*           Awards Section           */
/* ---------------------------------- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.award-item {
    text-align: center;
}

.award-item img {
    height: 120px;
    width: 120px;
    margin: 0 auto 1rem;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

.award-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.award-item p {
    font-weight: 500;
    color: var(--text-muted-color);
}

/* ---------------------------------- */
/*       External Resources           */
/* ---------------------------------- */
.resources-list {
    display: grid;
    gap: 1.5rem;
}
.resource-item {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
    transition: all var(--transition-speed) ease;
}
.resource-item:hover {
    transform: translateX(10px);
    box-shadow: var(--box-shadow);
}
.resource-item h4 a {
    font-family: var(--font-heading);
    color: var(--dark-color);
    text-decoration: none;
}
.resource-item h4 a:hover {
    color: var(--primary-color);
}
.resource-item p {
    color: var(--text-muted-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}
.resource-item small {
    font-weight: 700;
    color: var(--accent-color);
}

/* ---------------------------------- */
/*           Contact Section          */
/* ---------------------------------- */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

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

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* ---------------------------------- */
/*           Footer Section           */
/* ---------------------------------- */
.footer {
    background-color: var(--footer-bg-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem var(--container-padding) 2rem;
}

.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(--text-light-color);
    margin-bottom: 1.5rem;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.footer-column a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* ---------------------------------- */
/*         Other Pages Styles         */
/* ---------------------------------- */

/* For success.html */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-container h1 {
    color: var(--primary-color);
}

/* For privacy.html, terms.html */
.content-page {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
}
.content-page .container {
    max-width: 800px;
}
.content-page h1 {
    margin-bottom: 2rem;
}

/* ---------------------------------- */
/*          Responsive Design         */
/* ---------------------------------- */

@media (min-width: 769px) {
    .columns-asymmetric {
        grid-template-columns: 2fr 1.5fr;
        gap: 5rem;
    }
    .columns-asymmetric .column-text {
        text-align: left;
    }
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1, .hero-content h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .section {
        padding: 3rem 0;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed) ease-in-out;
    }

    .navbar-menu.is-active {
        right: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .navbar-nav a {
        font-size: 1.5rem;
        color: var(--text-light-color);
    }

    .burger {
        display: block;
    }
    
    .burger.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .burger.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .burger.is-active span {
        background-color: var(--dark-color);
    }
    /* When menu is active, burger icon should be visible over the dark menu */
    .burger.is-active {
        position: fixed;
        right: var(--container-padding);
        top: 25px; /* Adjust as needed */
    }
    .burger.is-active span {
       background-color: var(--text-light-color);
    }
}