@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --bg-color: #0a0a0a;           /* background color (black) */
    --second-bg-color: #121212;    /* Secondary (slightly lighter black for cards) */
    --accent-color: #1e1e1e;       /* Border color */
    --text-color: #ffffff;         /* Primary text color (white) */
    --text-secondary: #b0b0b0;     /* Secondary text color (gray) */
    --main-color: #ff1a1a;         /* Accent color (red) used for highlights */
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background-color: var(--bg-color);
    color:var(--text-color);
}

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

.header{
    padding: 4rem 0;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.headline{
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.headline .highlight{
    color: var(--main-color);
}

.subheading {
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

.service-title {
    font-size: 3rem;
    text-align: center;
    margin: 2rem 0 4rem
}

.red-underline{
    width: 50%;
    height: 3px;
    background-color: var(--main-color);
    margin: 0 auto 4rem;
}

.services-container{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
}
.service-card{
    flex: 1;
    min-width: 250px;
    background-color: var(--second-bg-color);
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease,box-shadow 0.3s ease;
    border: 1px solid var(--accent-color);
    opacity: 0;
    transform: translate(50px);
    animation: fadeInUp 0.8s ease forwards;
}
.service-card:nth-child(1) {
    animation-delay: 0.2s;
}

.service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.service-card:nth-child(3) {
    animation-delay: 0.6s;
}

.service-card:hover{
    transform: translate(-10px);
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
}
.service-title{
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.service-subtitle{
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* appssectiom */
.apps-section{
    margin-top: 6rem;
    padding: 0 2rem;
}

.apps-heading{
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInDown 1s ease-out forwards;
    opacity: 0;
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 0.5rem;
}
.apps-highlight{
    color: var(--main-color);
    display: inline-block;
}
.apps-underline{
    width: 100px;
    height: 4px;
    width: 25%;
    height: 3px;
    background-color: var(--main-color);
    margin: 0 0 4rem;
    animation: slideIn 1.2s ease-out forwards;
    transform: scaleX(0);
    transform-origin: left;
}
.apps-container{
    display: flex;
    justify-content: center;
    gap:2rem;
    margin: 3rem 0;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}
.app-screenshot {
    max-width: 280px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app-screenshot:hover{
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 26, 26, 0.2);
}

.app-description {
    text-align: center;
    margin-top: 2rem;
    animation: fadeInUp 1.4s ease forwards;
    opacity: 0;
}

.app-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
}

.app-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.app-info {
    background-color:var(--second-bg-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* humble hearts  */

.ems-section{
    margin-top: 6rem;
    padding-bottom: 4rem;
    text-align: center;
}
.app-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    animation: fadeInUp 1.2s ease forwards;
    margin-bottom: 3rem;
    opacity: 1;
}
.phone-container{
    border-radius: 30px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.phone-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 26, 26, 0.2);
}

.phone-container:nth-child(1) {
    width: 228px; 
    height: 496px;
    z-index: 1; 
}

.phone-container.center-phone {
    width: 274px;
    height: 576px;
    z-index: 2;
}

.phone-container:nth-child(3) {
    width: 220px;
    height: 496px;
    z-index: 1;
}

.phone-screenshot{
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 10px 20px rgb(0,0,0,0.5);
}

.ems-title{
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease forwards;
    opacity: 1;
}

.ems-underline {
    width: 120px;
    height: 4px;
    background-color: var(--main-color);
    margin: 0 auto 3rem;
    animation: slideIn 1.2s ease-out forwards;
    transform: scaleX(1);
}

.ems-description {
    background-color: var(--second-bg-color, #121212);
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    animation: fadeInUp 1.4s ease forwards;
    opacity: 1;
}



@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
    }
    
    .headline {
        font-size: 2.5rem;
    }
    
    .apps-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .app-showcase {
        flex-direction: column;
    }
    
    .phone-container, 
    .phone-container:nth-child(1),
    .phone-container.center-phone,
    .phone-container:nth-child(3) {
        width: 240px;
        height: 480px;
        margin-bottom: 1rem;
    }
    
    
    .ems-title {
        font-size: 2.5rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}