/* 
* Trust Cat Website Styles
* A modern, responsive design for trust-cat.com
*/

:root {
    /* Primary color palette */
    --primary-color: #6200ea;
    --primary-light: #9d46ff;
    --primary-dark: #0a00b6;
    --secondary-color: #ff6b00;
    --accent-color: #00e5ff;
    
    /* Neutral colors */
    --dark: #1a1a2e;
    --medium-dark: #16213e;
    --medium: #0f3460;
    --light: #f5f5f5;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--medium);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.8rem 1.6rem;
    font-size: 1.2rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: var(--spacing-xs);
}

.logo-container h1 {
    font-size: 2.4rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

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

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

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #6200ea11 0%, #00e5ff22 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 4.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--medium);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-features {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.feature {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature h3 {
    margin-bottom: var(--spacing-xs);
}

/* Games Section */
.games {
    padding: var(--spacing-xl) 0;
    background-color: #f9f9f9;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.game-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.game-image {
    height: 180px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-content {
    padding: var(--spacing-md);
}

.game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    color: var(--medium);
}

/* Featured Links Card */
.featured-links {
    padding: var(--spacing-md);
}

.resource-links {
    margin-top: var(--spacing-sm);
}

.resource-links li {
    margin-bottom: var(--spacing-xs);
}

.resource-links a {
    display: block;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.resource-links a:hover {
    color: var(--secondary-color);
    padding-left: var(--spacing-xs);
}

/* Reviews Section */
.reviews {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.review-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: var(--spacing-sm);
}

.review-rating {
    color: #ffc107;
    margin-top: 2px;
}

.review-text {
    font-style: italic;
    color: var(--medium);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: #f9f9f9;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin: var(--spacing-md) 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.contact-icon {
    font-size: 2rem;
    margin-right: var(--spacing-sm);
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    font-size: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover .social-icon {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--medium-dark);
}

input, textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--body-font);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(98, 0, 234, 0.1);
}

/* Footer */
footer {
    background-color: var(--medium-dark);
    color: white;
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-img {
    width: 100px;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1);
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: white;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    html {
        font-size: 56.25%; /* 9px = 1rem */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid #eee;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 3.6rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 50%; /* 8px = 1rem */
    }
    
    .games-grid,
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 3rem;
    }
}
