/* public/css/index.css */

:root {
    /* Color Palette - Soft Pastel Cats */
    --cream: #FDF5E6;
    --light-orange: #FFDAB9;
    --orange-dark: #FFB347;
    --soft-gray: #F5F5F5;
    --dark-cat: #2C3E50;
    --white: #FFFFFF;
    --accent-red: #FE5F55;

    /* Supercell style variables */
    --border-radius-lg: 16px;
    --border-radius-pill: 50px;
    --box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 4px 0 rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--dark-cat);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-cat);
    font-size: 1.2rem;
}

.logo .logo-icon {
    font-size: 2rem;
    margin-right: 10px;
    animation: bounce 2s infinite;
}

.logo h1 {
    font-weight: 800;
}

.logo .highlight {
    color: var(--orange-dark);
}

.main-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-cat);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--soft-gray);
    transform: translateY(-2px);
}

.tool-link {
    background-color: var(--light-orange);
    color: var(--dark-cat);
}

.tool-link:hover {
    background-color: var(--orange-dark);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 102; /* Above nav overlay */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-cat);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Typography Base */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Buttons (Supercell Style) */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--orange-dark);
    color: var(--white);
    box-shadow: 0 6px 0 #D98C22;
    /* darker shade for 3D effect */
    margin-bottom: 6px;
}

.btn-primary:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #D98C22;
}

.btn-primary:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #D98C22;
}

/* Cards (Supercell Style) */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 3px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--light-orange);
}

.card-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
    aspect-ratio: 16/9;
    background-color: var(--soft-gray);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--light-orange), var(--cream));
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--dark-cat);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tools-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 40px 0;
    position: relative;
}

.section-title::after {
    content: "😽";
    display: block;
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Footer */
.main-footer {
    background-color: var(--dark-cat);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: var(--light-orange);
    text-decoration: none;
    margin: 0 10px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 20px;
}

.mb-2 {
    margin-bottom: 20px;
}

/* Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hamburger {
        display: flex;
    }

    .tools-flex {
        flex-direction: column;
        align-items: center;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
        z-index: 101;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-link {
        text-align: center;
        font-size: 1.2rem;
        padding: 12px;
    }

    /* Hamburger Animation */
    .hamburger.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--orange-dark);
    }
    .hamburger.open .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--orange-dark);
    }
}