:root {
    --primary-color: #2F4F99;
    --secondary-color: #777FFF;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --gray: #888;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

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

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: var(--white);
    padding: 80px 0;
}

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

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1e3a7a;
}

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

.screenshot-placeholder {
    width: 220px;           /* Ajustado para caber 4 na linha */
    height: 450px;          /* Ajustado proporcionalmente */
    margin: 0 auto 20px;
    border: 8px solid #222;
    border-radius: 30px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    transition: all 0.3s ease;
}

.screenshot-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.main-screenshot {
    transform: rotate(-5deg);
}

/* Section Common */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    background: var(--primary-color);
    height: 3px;
    width: 50px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Features */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
}

/* Screenshots */
.screenshots {
    background: var(--white);
    padding: 80px 0;
}

.screenshots-grid {
    display: flex;
    justify-content: center;
    gap: 15px; /* Reduzimos um pouco o espaço entre eles */
    flex-wrap: nowrap; /* Impede que eles pulem de linha em telas de desktop */
    margin-top: 40px;
}

.screenshot-item {
    flex: 0 1 220px; /* Alinhado com a nova largura do placeholder */
    text-align: center;
}

/* About */
.about {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.about .section-title::after {
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.developer-info {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.developer-info a {
    color: var(--white);
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    background: #222;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin: 0 10px;
    }
    .screenshots-grid {
        flex-wrap: wrap; /* No celular, eles voltam a pular de linha */
        gap: 20px;
    }
    .screenshot-placeholder {
        width: 180px; /* No celular ficam um pouco menores */
        height: 370px;
    }
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Use 'fill' se o print tiver exatamente a proporção do container */
    display: block;
}

.screenshot-item:hover .screenshot-placeholder {
    transform: translateY(-10px); /* O celular sobe levemente */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); /* A sombra aumenta */
    transition: all 0.3s ease;
}

.screenshot-placeholder {
    transition: all 0.3s ease; /* Adicione isso na regra original para o movimento ser suave */
}