@import "./theme.css";

/* --- Container for the Hero Section --- */
.app-developers-hero {
    position: relative;
    width: 90%;
    max-width: var(--max-container);
    margin: 40px auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
    /* Vertical padding for the section itself */
    z-index: 1;
    /* Ensure content is above background grid */
}

/* --- Background Grid (subtle rectangles) --- */
.app-developers-hero .background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    /* Adjust column size */
    grid-template-rows: repeat(auto-fit, minmax(100px, 1fr));
    /* Adjust row size */
    gap: 15px;
    /* Spacing between grid items */
    opacity: 0.3;
    /* Very subtle */
    pointer-events: none;
    /* Allows interaction with content behind it */
    z-index: 0;
}

.app-developers-hero .grid-item {
    background-color: #e0e4ec;
    /* A slightly darker gray for the rectangles */
    border-radius: 8px;
    /* Soft corners for the rectangles */
}

/* Randomly hide some grid items for a more organic look */
.app-developers-hero .grid-item:nth-child(7n+1),
.app-developers-hero .grid-item:nth-child(11n+3),
.app-developers-hero .grid-item:nth-child(5n+2) {
    opacity: 0;
    /* Some hidden for sparse effect */
}

.app-developers-hero .grid-item:nth-child(odd) {
    opacity: 0.5;
}

/* Slight variation */


/* --- Left Content Area (Text) --- */
.app-developers-hero .hero-content {
    display: flex;
    padding: 40px;
    background-color: transparent;
    /* Light peach background */
    border-radius: 20px;
    position: relative;
    z-index: 1;
    /* Ensure text content is above the peach background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    overflow: hidden;
}

.app-developers-hero .content {
    position: relative;
    z-index: 1;
}

.app-developers-hero .hero-content h1 {
    font-size: 120px;
    /* Responsive font size */
    font-weight: 200;
    /* Light font weight for "App" */
    line-height: 125px;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.app-developers-hero .hero-content h1 span {
    display: block;
    /* Forces 'Developers' to a new line */
    color: var(--primary-color);
    /* Pink color */
    font-weight: 200;
    /* Slightly bolder for 'Developers' */
}

.app-developers-hero .hero-content p {
    font-size: 24px;
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 40px;
    max-width: 420px;
}

/* --- Button Style --- */
.app-developers-hero .btn-request {
    display: inline-block;
    padding: 16px 36px;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.app-developers-hero .btn-request:hover {
    background-color: #4a4e5e;
    /* Slightly lighter on hover */
    transform: translateY(-2px);
    /* Subtle lift effect */
}

/* --- Right Image Area --- */
.app-developers-hero .hero-image {
    flex: 1;
    display: flex;
    justify-content: end;
    align-items: end;
    position: relative;
    z-index: 1;
    margin-right: -40px;
    margin-bottom: -40px;
}

.app-developers-hero .hero-image img {
    max-width: 360px;
    height: auto;
    display: block;
    /* Add a subtle shadow for depth, similar to the image */
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); */
    border-radius: 30px;
    /* Rounded corners for the image container */
}

.app-developers-hero .background-circle {
    position: absolute;
    width: 100%;
    max-width: var(--max-container);
    flex: auto;
    max-height: 640px;
    left: 0px;
    top: 0px;
    height: fit-content;
}

.app-developers-hero .yellow-circle {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    position: absolute;
    top: calc(100% + 200px);
    left: -100px;
    background: #FFF8F0;
    background: linear-gradient(130deg, rgba(255, 248, 240, 1) 0%, rgba(254, 210, 169, 1) 100%);
    opacity: 0.6;
}

.app-developers-hero .pink-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    position: absolute;
    top: -100px;
    left: calc(100% - 250px);
    background: #F1CDE9;
    background: linear-gradient(130deg, rgba(241, 205, 233, 1) 0%, rgba(251, 112, 143, 1) 100%);
    opacity: 0.4;
}

/* --- 4. Features Section ("Transforming") --- */
.transforming-workflow {
    display: flex;
    padding: 0px 0 120px 0px;
}

.transforming-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.transforming-workflow .section-intro {
    text-align: center;
    margin: 0 auto;
    padding-bottom: 40px;
}

.transforming-workflow .section-intro p {
    font-size: 16px;
    color: var(--text-color);
    max-width: 650px;
    line-height: 30px;
    margin: 0 auto;
}

/* Replaced border with subtle box-shadow */
.transforming-workflow-card {
    background-color: var(--color-white);
    border-radius: 40px;
    padding: 30px;
    text-align: left;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
}

.transforming-workflow-card img {
    height: 40px;
    margin-bottom: 15px;
}

.transforming-workflow-card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 40px;
    font-weight: 300;
    color: var(--primary-color);
}

.transforming-workflow-card p {
    font-size: 15px;
    line-height: 24px;
    color: var(--text-color);
}


/* ---  Marketplace --- */
.marketplace {
    width: 100%;
    display: block;
    padding: 0 0 120px 0;
    /* background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end)); */
    background: #FFFFFF;
    background: linear-gradient(0deg, rgba(10, 22, 59, 1) 50%, rgba(255, 255, 255, 1) 50%);
}

.marketplace .container {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    max-width: var(--max-container);
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);

}

.marketplace-card {
    background: var(--light-blue);
    border-radius: 40px;
    padding: 50px 60px;
    width: 100%;
    max-width: var(--max-container);
    text-align: center;
    margin: 0 auto;
}

/* --- 3. Header Text --- */
.marketplace-card .marketplace-header h1 {
    font-size: 55px;
    font-weight: 300;
    color: var(--white);
    margin: 0 0 10px 0;
}

.marketplace-card .marketplace-header h1 span {
    font-weight: 300;
    color: var(--primary-color);
}

.marketplace-card .marketplace-header p {
    color: var(--white) !important;
    margin-bottom: 50px;
}

/* --- 4. Flowchart Styling --- */
.marketplace-card .flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.marketplace-card .flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* The main boxes in the flowchart */
.marketplace-card .flow-box {
    border: 1px solid var(--border-color-white-20);
    border-radius: 20px;
    padding: 20px 40px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.marketplace-card .flow-box.large {
    min-width: 220px;
}

.marketplace-card .flow-box .title {
    font-size: 50px;
    line-height: 50px;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 5px;
}

.marketplace-card .flow-box img {
    max-width: 100%;
    min-width: 100%;
    height: auto;
    padding-bottom: 10px;
}

.marketplace-card .flow-box .title .logo-ad {
    color: var(--text-light);
}

.marketplace-card .flow-box .title .logo-el {
    color: var(--primary-color);
}

.marketplace-card .flow-box .subtitle {
    font-size: 20px;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Arrow styling */
.marketplace-card .arrow {
    flex-grow: 1;
    height: 1px;
    border-top: 1px dashed var(--border-color-white-20);
    position: relative;
    margin: 0 15px;
}

.marketplace-card .arrow::after {
    content: '▶';
    color: var(--border-color-white-20);
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

/* Vertical connection from DSP box down */
.marketplace-card .vertical-connector {
    width: 2px;
    height: 40px;
    border-left: 1px dashed var(--border-color-white-20);
    position: relative;
    bottom: -80px;
    left: -160px;
}

/* Horizontal line connecting the vertical lines */
.marketplace-card .horizontal-connector {
    width: 85%;
    height: 2px;
    border-top: 1px dashed var(--border-color-white-20);
    position: relative;
    top: 20px;
}

/* The little downward lines from the horizontal connector */
.marketplace-card .horizontal-connector .down-arrow {
    position: absolute;
    width: 2px;
    height: 20px;
    border-left: 1px dashed var(--border-color-white-20);
    top: 0;
}

/* Positioning each downward arrow */
.marketplace-card .horizontal-connector .down-arrow:nth-child(1) {
    left: 0%;
}

/* .marketplace-card .horizontal-connector .down-arrow:nth-child(2) { left: 30%; }
.marketplace-card .horizontal-connector .down-arrow:nth-child(3) { left: 50%; }
.marketplace-card .horizontal-connector .down-arrow:nth-child(4) { left: 70%; } */
.marketplace-card .horizontal-connector .down-arrow:nth-child(2) {
    left: 100%;
}


/* --- 5. Category Tags --- */
.marketplace-card .categories {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.marketplace-card .category-tag {
    border: 1px solid var(--border-color-white-20);
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 0.9rem;
    color: var(--white);
}


.marketplace .background-circle {
    position: absolute;
    width: 100%;
    max-width: var(--max-container);
    flex: auto;
    max-height: 640px;
    left: 0px;
    top: 0px;
    height: fit-content;
}

.marketplace .red-light {
    width: 550px;
    height: 500px;
    border-radius: 50%;
    position: absolute;
    top: -180px;
    left: -180px;
    background: #C63458;
    background: radial-gradient(circle, rgba(198, 52, 88, 1) 0%, rgba(10, 22, 59, 0) 100%);
    filter: blur(70px);
}

.marketplace .blue-light {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: absolute;
    top: 270px;
    right: -100px;
    background: #483AB5;
    background: radial-gradient(circle, rgba(72, 58, 181, 1) 0%, rgba(10, 22, 59, 0) 100%);
    filter: blur(50px);
}

/* --- 2. Main Card Container --- */
.monetization {
    width: 100%;
    display: block;
    padding: 0 0 120px 0;
    /* background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end)); */
    background: #FFFFFF;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 50%, rgba(10, 22, 59, 1) 50%);
}

.monetization .container {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: 40px;
    max-width: var(--max-container);
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);
}

.monetization .monetization-card {
    background-color: var(--card-bg);
    border-radius: 40px;
    padding: 40px;
    display: flex;
    overflow: hidden;
    /* Keeps illustration contained */
    position: relative;
}

/* --- 3. Content Column (Left Side) --- */
.monetization .content-column {
    z-index: 1;
}

.monetization .tag {
    display: inline-flex;
    margin-bottom: 25px;
    background-color: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--primary-color);
    padding: 5px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    align-items: center;
}

.monetization .main-heading {
    font-size: 55px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 15px;
}

.monetization .main-heading span {
    color: var(--primary-color);
    font-weight: 300;
}

.monetization .sub-heading {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.monetization .description {
    color: var(--text-color);
}

.monetization .description img {
    float: right;
    margin-left: 15px;
    width: 385px;
}

.monetization .description p {
    font-size: 18px !important;
    margin-bottom: 1.5em;
}

.monetization .description strong {
    color: var(--dark-blue);
    font-weight: 600;
}

.monetization .illustration-column{
    position: absolute;
    right: 0px;
    bottom:-20px;
}

/* --- 2. Main Section Container --- */
.ad-formats {
    width: 100%;
    display: block;
    padding: 0 0 120px 0;
    background: #FFFFFF;
}

.ad-formats .container {
    position: relative;
    border-radius: 40px;
    max-width: var(--max-container);
    /* box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2); */

}

.ad-formats .header h1 {
    font-size: 55px;
    font-weight: 300;
    color: var(--dark-blue);
    text-align: center;
}

.ad-formats .header h1 span {
    color: var(--primary-color);
}

.ad-formats .interstitial-section {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: var(--max-container);
    background-color: #ffffff;
    padding: 50px;
    border-radius: 40px;
    margin: 0 auto;
}

.ad-formats .rewarded-video-section {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: var(--max-container);
    background-color: #ffffff;
    padding: 50px;
    border-radius: 40px;
    margin: 0 auto;
}

/* --- 3. Phone & Illustration Column (Left) --- */
.ad-formats .interstitial-section .phone-column {
    flex: 1 1 40%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    /* Space for circles */
}

.ad-formats .rewarded-video-section .phone-column {
    position: relative;
    display: block;
}

.ad-formats .interstitial-section .decorative-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    left: -50px;
    top: -100px;
}

.ad-formats .rewarded-video-section .decorative-circles {
    position: absolute; 
    height: 100%;
    z-index: 1;
    left: calc(100% - 200px);
    top: -100px;
}

.ad-formats .interstitial-section .decorative-circles .circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
}

.ad-formats .interstitial-section .circle-peach {
    background-color: var(--circle-peach);
    width: 200px;
    height: 200px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ad-formats .interstitial-section .circle-lavender {
    background-color: var(--circle-lavender);
    width: 220px;
    height: 220px;
    top: 80px;
    left: 0;
}

.ad-formats .interstitial-section .circle-pink {
    background-color: var(--circle-pink);
    width: 180px;
    height: 180px;
    top: 180px;
    left: 20px;
}

.ad-formats .interstitial-section .phone-mockup {
    position: relative;
    z-index: 2;
    width: 250px;
    height: auto;
    right: -100px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}


.ad-formats .rewarded-video-section .phone-mockup {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    margin-bottom: 40px;
}

/* --- 4. Text Content Column (Right) --- */
.ad-formats .content-column {
    flex: 1 1 60%;
}

.ad-formats .main-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.ad-formats .stats {
    margin-bottom: 30px;
}

.ad-formats .stats p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 5px 0;
}

.ad-formats .details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.ad-formats .details ul {
    list-style-type: none;
    padding-left: 0;
}

.ad-formats .details ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.ad-formats .details ul li::before {
    content: '•';
    color: var(--text-dark);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* ---  "Revenue with One SDK" Section --- */
.sdk { 
    display: flex;
    padding: 0px 0 120px 0px;
    background: var(--white);
}
.sdk .container{
    /* position: relative; 
    background: var(--white);
    border-radius: 40px;
    max-width: var(--max-container); */
}
.sdk .sdk-section {
    position: relative; 
    border-radius: 40px;
    max-width: var(--max-container);
    margin: 0 auto; 
    /* box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.2); */
}

.sdk .sdk-comparison {
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}
 

.sdk .sdk-comparison img {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.sdk .section-intro {
    text-align: left;
    margin: 0 auto;
    /* padding-bottom: 40px; */
}

.sdk .section-intro p {
    font-size: 16px;
    color: var(--text-color); 
    line-height: 30px; 
}
.sdk .sub-heading {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--text-dark);
}
.sdk .section-intro .tag{
    display: inline-flex;
    margin-bottom: 25px;
    background-color: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--primary-color);
    padding: 5px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    align-items: center;
}

.sdk .main-heading {
    font-size: 55px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 15px;
}

.sdk .main-heading span {
    color: var(--primary-color);
    font-weight: 300;
}