/* Global Styles */
:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --danger-color: #ea4335;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --gray-color: #5f6368;
    --light-gray: #e8e8e8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    background-image: url('../images/background-pattern.png');
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

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

.btn.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn.large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.logo img {
    height: 40px;
    margin-right: 10px;
}

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

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--gray-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

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

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

.language-switcher {
    margin-left: 20px;
    display: flex;
}

.lang-btn {
    padding: 5px 10px;
    border: 1px solid var(--light-gray);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.lang-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    margin-left: 20px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(52, 168, 83, 0.1) 100%);
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-image {
    position: relative;
    width: 400px;
    height: 300px;
}

.dice {
    position: absolute;
    width: 80px;
    height: 80px;
    transition: all 0.5s ease;
}

.dice1 {
    top: 0;
    left: 50px;
    transform: rotate(15deg);
}

.dice2 {
    top: 100px;
    left: 150px;
    transform: rotate(-10deg);
}

.dice3 {
    top: 30px;
    left: 250px;
    transform: rotate(5deg);
}

.dice:hover {
    transform: scale(1.1) rotate(15deg);
}

/* About Dice Games Section */
.about-dice-games {
    padding: 80px 0;
    background-color: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.image-content img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Stop or Again Section */
.stop-or-again {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(251, 188, 5, 0.1) 0%, rgba(234, 67, 53, 0.1) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

/* Rules Section */
.rules-section {
    padding: 100px 0 80px;
    background-color: white;
}

.rule-card {
    display: flex;
    margin-bottom: 30px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.rule-number {
    background: var(--primary-color);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.rule-content {
    padding: 20px;
}

.special-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.special-rule {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.special-rule.highlight {
    border-color: var(--accent-color);
    background: rgba(251, 188, 5, 0.05);
}

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

.dice-combination {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.dice-combination img {
    width: 40px;
    height: 40px;
    margin: 0 5px;
}

.equals {
    margin: 0 10px;
    font-size: 1.5rem;
    color: var(--gray-color);
}

/* Strategy Tips Section */
.strategy-tips {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(52, 168, 83, 0.1) 100%);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tip-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.tip-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* App Hero Section */
.app-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(52, 168, 83, 0.1) 100%);
}

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

.app-hero-content {
    flex: 1;
    max-width: 600px;
}

.app-hero-content h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.app-hero-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.app-download {
    margin-bottom: 30px;
}

.app-rating {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.stars {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.app-hero-image {
    width: 300px;
}

.app-hero-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* App Features Section */
.app-features {
    padding: 80px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

/* App Screenshots Section */
.app-screenshots {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(251, 188, 5, 0.1) 0%, rgba(234, 67, 53, 0.1) 100%);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.screenshot {
    text-align: center;
}

.screenshot img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: var(--transition);
}

.screenshot img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
.app-testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--gray-color);
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-rating {
    color: var(--accent-color);
}

/* Download CTA Section */
.app-download-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(52, 168, 83, 0.1) 100%);
    text-align: center;
}

.app-download-cta h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.app-download-cta p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.small-text {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 20px;
}

/* Author Intro Section */
.author-intro {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(52, 168, 83, 0.1) 100%);
}

.author-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.author-image img {
    border-radius: 50%;
    width: 100%;
    max-width: 250px;
    box-shadow: var(--shadow);
    border: 5px solid white;
}

.author-text .subtitle {
    color: var(--gray-color);
    font-weight: 400;
    margin-bottom: 20px;
}

/* Author Story Section */
.author-story {
    padding: 80px 0;
    background-color: white;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.story-card {
    display: flex;
    align-items: flex-start;
}

.story-year {
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    margin-right: 30px;
    min-width: 100px;
    text-align: center;
}

.story-content {
    flex: 1;
}

/* Author Contact Section */
.author-contact {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(251, 188, 5, 0.1) 0%, rgba(234, 67, 53, 0.1) 100%);
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 50px auto 0;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Other Projects Section */
.author-other-projects {
    padding: 80px 0;
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Privacy Content Section */
.privacy-intro {
    padding: 150px 0 50px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(52, 168, 83, 0.1) 100%);
    text-align: center;
}

.privacy-content {
    padding: 80px 0;
    background-color: white;
}

.privacy-point {
    margin-bottom: 40px;
}

.privacy-point h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.privacy-acceptance {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc1c6;
    transition: var(--transition);
}

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

.footer-social p {
    margin-bottom: 15px;
    color: #bdc1c6;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

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

/* Main Content Padding */
main {
    padding-top: 80px;
}