/* Color Variables */
:root {
    --primary-color: #490c0e;
    --secondary-color: #a94b53;
    --text-dark: #1e1e1e;
    --text-light: #555;
    --bg-light: #f9f9f9;
    --bg-medium: #f0f0f0;
    --bg-dark: #1e1e1e;
    --border-color: #eee;
}

.screenshot-container {
  display: inline-block;
  margin: 20px;
  position: relative;
  transform-style: preserve-3d; /* Important for 3D transforms on children */
  perspective: 1000px; /* Add perspective to the container */
}

.screenshot-container img {
  display: block;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  transform: rotateX(15deg) rotateY(-15deg) rotateZ(5deg); /* Apply the same skew to the image */
}

.screenshot-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px solid var(--primary-color);
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
  transform: rotateX(15deg) rotateY(-15deg) rotateZ(5deg) translateZ(-5px); /* Apply the same skew and push it back slightly */
  transform-origin: center center;
  pointer-events: none;
}

/* Modern Background with SVG Waves */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative; /* For positioning background waves */
    overflow-x: hidden; /* Prevent horizontal scroll for waves */
}



.a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1200px; /* Adjust height as needed */
    background-image: url('./assets/wave-bottom.svg');
    background-repeat: repeat-x;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

/* Helper for RGB values (if needed later) */
:root {
    --primary-color-rgb: 73, 12, 14;
    --secondary-color-rgb: 169, 75, 83;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 3.5rem;
    text-align: center;
    color: var(--text-dark);
}

/* Header */
.header {
    background-color: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.header.sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95); /* Slight transparency */
    backdrop-filter: blur(5px); /* Add blur effect */
}

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

.logo {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-image {
    height: 50px;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

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

/* Hero Section */
.hero {
    padding: 7rem 0;
    background-color: var(--bg-medium);
    border-radius: 12px;
    margin-bottom: 5rem;
}

.a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Adjust height as needed */
    background-image: url('./assets/wave-top.svg');
    background-repeat: repeat-x; /* Ensure it covers the width */
    background-size: cover; /* Scale the SVG to fit */
    opacity: 1;
    z-index: -1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    padding-right: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Analytics Section */
.analytics-section {
    background-color: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
    margin-bottom: 5rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.analytics-card {
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.analytics-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.analytics-label {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
}

/* About Section */
.about-text {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 2;
    text-align: center;
}

/* Platforms Section */
.platforms {
    background-color: var(--bg-medium);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: 5rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.platform-card {
    padding: 3rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    text-align: left;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.platform-logo {
    width: 200px;
    aspect-ratio: 3/1;
    object-fit: contain;
}

.platform-title {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.platform-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background-color: #fff;
    border-radius: 12px;
    padding: 5rem;
    margin-bottom: 5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.contact-text {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.input {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.2s ease-in-out;
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1rem rgba(var(--primary-color-rgb), 0.25);
}

.input textarea {
    resize: vertical;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.button.primary {
    background-color: var(--primary-color);
    color: #fff;
}

.button.primary:hover {
    background-color: #36080a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.button.secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.button.secondary:hover {
    background-color: #803a40;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.button.outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.outline:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #f0f0f0;
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .nav {
        gap: 1.5rem;
    }

    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact {
        padding: 3rem;
    }
}
