@import url('https://fonts.googleapis.com/css2?family=Inter:wght@900&display=swap');

/* ===== GLOBAL STYLES ===== */
:root {
    --text-color: #000000;
    --background: #ffffff;
    --accent-blue: #42b8e7;
    --accent-red: #f06b6b;
    --glass-white: rgba(158, 208, 231, 0.24);
    --jet-black: #000000;
    --border-color: rgba(0, 0, 0, 0.8);
    --transition-speed: 0.3s;
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

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

/* Body */
html, body {
    width: 100%;
    height: 100%;
    font-family: var(--body-font);
    background: var(--background);
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

/* Body Styling */
html, body {
    width: 100%;
    height: 100%;
    font-family: var(--body-font);
    background: var(--background);
    color: var(--text-color);
    overflow-x: hidden;
}

body {
    background-image: url('/assets/images/background1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Headings */
h1 {
    font-size: 2.5rem;
    font-family: var(--heading-font);
    text-shadow: 2px 2px 10px var(--jet-black);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Card */
.card {
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 250px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
    position: relative;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Card Front & Back */
.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    background: var(--glass-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 0px 10px rgb(0, 0, 0);
}

.card-back {
    transform: rotateY(180deg);
}

/* Icons */
.card-front i {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

/* Button */
.speak-btn {
    background: var(--accent-blue);
    color: #000000;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.speak-btn:hover {
    background: var(--accent-red);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
}