/* --- Global & Variables --- */
:root {
    --primary-blue: #1f4fe0;
    --primary-hover: #1d4ed8;
    --text-main: #111111;
    --text-sub: #666666;
    --bg-light: #f7f8fa;
    --bg-hero: #eaf0ff;
    --ios-radius: 22px; 
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    background: var(--bg-light);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Sections Layout --- */
section {
    padding: 90px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-wrap {
    width: 100%;
    max-width: 1200px;
}

/* --- Hero --- */
.hero {
    background-color: var(--bg-hero);
    text-align: center;
    padding-top: 60px;
}

.logo img {
    width: 180px;
    margin-bottom: 40px;
}

.hero-text {
    font-size: clamp(32px, 7vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 auto 24px;
    max-width: 1000px;
}

.subtext {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-sub);
    max-width: 850px;
    margin: 0 auto 40px;
}

/* --- Buttons --- */
.CTA, .submit-btn {
    display: inline-flex;
    width: 100%;
    max-width: 520px;
    padding: 22px 32px;
    justify-content: center;
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: var(--ios-radius);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 20px 0;
}

.CTA:hover, .submit-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 10px 40px rgba(31, 79, 224, 0.4);
}

.CTA:active { transform: scale(0.98); }

/* --- Text & Content --- */
.section-white { background-color: #ffffff; }
.section-gray { background-color: var(--bg-light); }

.section-title {
    font-size: clamp(28px, 5vw, 64px);
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 400;
    text-align: left;
    width: 100%;
}

.text-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.text-stack div {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-sub);
    line-height: 1.6;
}

/* --- Cards Grid --- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    width: 100%;
    margin-top: 50px;
}

.card-1-tit { font-size: clamp(22px, 3vw, 30px); font-weight: 400; margin: 15px 0 10px; }
.card-1-descp { color: var(--text-sub); font-size: clamp(16px, 2vw, 24px); line-height: 1.5; }

/* --- Deliverables --- */
.deliverables-grid { display: flex; flex-direction: column; width: 100%; }
.deliv-item { border-bottom: 1px solid #e5e7eb; padding: 20px 0; }
.deliv-item-last {  padding: 20px 0; }
.deliv-title { font-size: 28px; font-weight: 400; margin-bottom: 10px; }
.deliv-desc { font-size: 20px; color: var(--text-sub); margin: 0; }

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

 #modalDesc{
    text-align: left;
}
.modal-content {
    background: white;
    width: 90%;
    max-width: 480px;
    margin: 2vh auto;
    padding: 24px 40px;
    border-radius: 28px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-size: clamp(22px, 5vw, 32px);
    margin-top: 0;
}

.modal-content p {
    font-size: clamp(16px, 3vw, 18px);
    line-height: 1.5;
}

.close-btn {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 32px;
    background: none; border: none;
    cursor: pointer; color: #64748b;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group { margin-bottom: 12px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
}

.textarea-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group textarea#message {
    height: 120px;
    resize: none;
    overflow: hidden;
    padding-bottom: 40px;
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 14px;
    color: #999;
    pointer-events: none;
}



/* --- Footer --- */
.footer {
    padding: 48px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    section { padding: 60px 5%; }
    .section-title { text-align: left; }
    .footer { flex-direction: column; text-align: center; }
    .info-cards { grid-template-columns: 1fr; }
    .footer-cta-text { font-size: 28px !important; }
    
    /* Modal Responsive */
    .modal-overlay {
        align-items: flex-end;
        justify-content: center;
    }
    
    .modal-overlay.active {
        display: flex;
    }
    
    .modal-content {
        width: 95%;
        max-width: 100%;
        padding: 20px 20px;
        border-radius: 24px 24px 0 0;
        margin: 0;
        max-height: 85vh;
    }
    
    .close-btn {
        top: 16px;
        right: 16px;
    }
   
}



@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        padding: 16px 16px;
        border-radius: 20px 20px 0 0;
    }
    
    .modal-content h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .modal-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .form-group input, .form-group textarea {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 18px 24px;
        font-size: 18px;
    }
}