header {
    height: calc(100vh - 70px);
    width: 100vw;
    position: relative;
    color: white;
    text-shadow: 1px 1px 2px black;
    overflow: hidden;
}
@keyframes slider {
    to{
        transform: translateX(-300vw);
    }
}

header>.header-bg {
    height: 100%;
    width: 301vw;
    object-fit: cover;
    display: flex;
    flex-flow: row nowrap;
    animation: slider 6s 1s steps(3, end) normal infinite;
}

.header-bg>img {
    height: 100%;
    width: 100vw;
}

header>.header-fg {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 10;
    top: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.5);
}

.header-flex {
    height: 70vh;
    width: 80vw;
    margin: 5vh auto;
    display: flex;
    flex-flow: row wrap-reverse;
    justify-content: space-evenly;
    align-items: center;
}

.header-flex img {
    border-radius: 20px;
    box-shadow: 2px 2px 3px black;
}

.header-flex h1 {
    font-size: 50px;
}

#header-text-slide {
    height: 35px;
    width: 230px;
    overflow: hidden;
}

#header-text-slide>div {
    display: flex;
    flex-flow: column;
    font-size: 30px;
    gap: 10px;
    transition: transform 200ms 0s linear;
}
#header-text-slide>div > p{
    height: 35px;
}
@keyframes wave {
    from{outline-offset: -2px;}
    to{outline-offset: 5px;}
}
.header-flex button{
    height: 35px;
    width: 130px;
    border: none;
    outline: 2px solid #eb7171;
    background-color: #eb7171;
    color: white;
    font-size: inherit;
    border-radius: 20px;
    padding: 10px;
    cursor: pointer;
    animation: wave 1s 0s linear normal infinite;
    margin-top: 10px;
}
@media screen and (max-width: 450px){
    .header-flex h1 {
    font-size: 26px;
}
}
@media screen and (max-width: 500px){
	.header-flex img{
	    display: none;
	}
}
/* ----------------------- Main About ----------------------- */
main{
    width: 80vw;
    margin: 10px auto;
    font-size: 18px;
    color: white;
}
.about{
    display: flex;
    flex-flow: row wrap-reverse;
    justify-content: space-evenly;
    align-items: center;
    background-color: #eb7171;
    padding: 10px;
    border-radius: 20px;
}
.about > div:last-child{
    width: 45%;
    text-align: justify;
}
@media screen and (max-width: 1150px){
    .about > div:last-child{
    width: 100%;
}
}
@media screen and (max-width: 700px){
    main{
        width: 100vw;
        padding: 2px;
        box-sizing: border-box;
    }
    .about iframe{
        height: 200px;
        width: 100%;
    }
    .about > div:last-child{
    text-align: left;
}
}
/* ----------------------- Main Services ----------------------- */
.services {
    width: 80vw;
    margin: 10px auto;
    color: black;
}
.services-flex{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 20px;
    padding: 10px 20px;
    box-sizing: border-box;
}
.services > h2{
    text-align: center;
    margin-bottom: 15px;
}
.services-flex > .service{
    height: 300px;
    width: 290px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 1px 1px 5px #eb7171;
}
.service > img{
    height: 100%;
    width: 100%;
    transition: all 200ms 0s linear;
}
.service > div{
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    position: absolute;
    padding: 3px 10px;
    box-sizing: border-box;
    text-shadow: 1px 1px 2px black;
    bottom: -89%;
    left: 0px;
    transition: all 200ms 0s linear;
}
.service:hover > div{
    transform: translateY(-89%);
}
.service:hover > img{
    transform: scale(1.05, 1.05);
}
.service button{
    height: 30px;
    width: 100px;
    border: none;
    border-radius: 20px;
    outline: none;
    background-color: blue;
    color: white;
    margin-top: 5px;
}
.service button:hover{
    transform: scale(1.07, 1.07);
}
@media screen and (max-width: 400px){
    .services {
    width: 100vw;
    margin: 10px auto;
    color: black;
}
}
/* ----------------------- GST Tool CSS --------------------- */
dialog{
    height: 100vh;
    width: 100vw;
    background-color: transparent;
    overflow: visible;
    border: none;
}
dialog::backdrop{
    background-color: rgba(0, 0, 0, 0.4);
}
.gst{
    height: 300px;
    width: 80%;
    margin: auto;
    margin-top: calc(60vh - 300px);
    background-color: #eb7171;
    border-radius: 20px;
    padding: 10px;
    padding-bottom: 40px;
    box-sizing: border-box;
    position: relative;
}
#close-gst{
    height: 50px;
    width: 50px;
    position: absolute;
    top: 10px;
    right: 10px;
}
#close-gst > div{
    height: 10%;
    margin: 5% auto;
    width: 90%;
    background-color: white;
    border-radius: 20px;
    position: absolute;
    top: 30%;
    left: 1%;
}
#close-gst > div:first-child{
    transform: translateY(20%) rotate(45deg);
}
#close-gst > div:last-child{
    transform: translateY(10%) rotate(-45deg);
}
#close-gst:hover{
    transform: scale(1.05, 1.05);
}
.gst > h2{
    text-align: center;
}
.gst > .calculator{
    width: 80%;
    background-color: white;
    margin-left: 10%;
    margin-top: 25px;
    color: black;
    padding: 10px;
    border-radius: 20px;
    box-sizing: border-box;
}
.calculator > .inputs-flex{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    margin: 20px auto;
}
.calculator > .inputs-flex input, .calculator > .inputs-flex select{
    width: 200px;
    font-size: 20px;
    height: 30px;
    padding:0px;
}
.calculator > .outputs-flex{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    margin: 20px auto;
}
.calculator > .outputs-flex > div{
    height: 70px;
    width: 150px;
    text-align: center;
    display: grid;
    grid-template-rows: 1fr 20px;
}
.calculator > .outputs-flex > div > span:first-child{
    font-size: 35px;
}
.calculator > .outputs-flex > div:nth-child(2n){
    width: 50px;
    font-size: 35px;
}
@media screen and (max-width: 900px){
    .calculator > .outputs-flex > div{
        height: 50px;
    width: 100px;
}
.calculator > .outputs-flex > div > span:first-child{
    font-size: 20px;
}
.calculator > .outputs-flex > div{
    font-size: 15px;
}
.calculator > .outputs-flex > div:nth-child(2n){
    width: 30px;
    font-size: 20px;
}
}
@media screen and (max-width: 480px){
    .gst{
        width: 100%;
        margin-left: 5vw;
    }
    .calculator > .outputs-flex > div{
        height: 30px;
    width: 60px;
}
.calculator > .outputs-flex > div > span:first-child{
    font-size: 15px;
}
.calculator > .outputs-flex > div{
    font-size: 10px;
}
.calculator > .outputs-flex > div:nth-child(2n){
    width: 15px;
    font-size: 15px;
}
.calculator > .inputs-flex input, .calculator > .inputs-flex select{
    width: 100px;
    font-size: 18px;
    height: 25px;
    padding:0px;
}
#close-gst{
    height: 30px;
    width: 30px;
}
}
/* ----------------------- SIP Calculator ------------------- */
.sip-calc{
    height: 500px;
    width: 90vw;
    margin: auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    position: relative;
    margin-top: 3vh;
}
#close-sip{
    height: 30px;
    width: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
}
#close-sip > div{
    height: 10%;
    margin: 5% auto;
    width: 90%;
    background-color: black;
    border-radius: 20px;
    position: absolute;
    top: 30%;
    left: 1%;
}
#close-sip > div:first-child{
    transform: translateY(20%) rotate(45deg);
}
#close-sip > div:last-child{
    transform: translateY(10%) rotate(-45deg);
}
#close-sip:hover{
    transform: scale(1.05, 1.05);
}
.sip-calc > h2 {
    margin-bottom: 20px;
    color: #333333;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.sip-calc label {
    display: block;
    margin-bottom: 8px;
    color: #666666;
    font-size: 14px;
}

.sip-calc input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.sip-calc input:focus {
    border-color: #eb7171;
}

.sip-calc button {
    width: 100%;
    padding: 14px;
    background-color: #eb7171;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sip-calc button:hover {
    background-color: #dd5a5a;
}

.results {
    margin-top: 25px;
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #555555;
    font-size: 15px;
}

.result-item .value {
    font-weight: 600;
    color: #333333;
}

.result-item.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #dddddd;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
}

.result-item.total .value {
    color: #eb7171;
}
@media screen and (max-width: 450px){
    .sip-calc{
        width: 90vw;
        padding: 5px;
        margin-left: 3%;
    }
    .sip-calc input{
        width: 90%;
    }
}

/* ----------------------- Income tax ----------------------- */
#income-tax{
    overflow-y: auto;
}
.tax-container {
    background-color: white;
    max-width: 850px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: auto;
    margin: auto;
    position: relative;
}

#close-income-tax{
    height: 30px;
    width: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
}
#close-income-tax > div{
    height: 10%;
    margin: 5% auto;
    width: 90%;
    background-color: black;
    border-radius: 20px;
    position: absolute;
    top: 30%;
    left: 1%;
}
#close-income-tax > div:first-child{
    transform: translateY(20%) rotate(45deg);
}
#close-income-tax > div:last-child{
    transform: translateY(10%) rotate(-45deg);
}
#close-income-tax:hover{
    transform: scale(1.05, 1.05);
}

.tax-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
}

.tax-container h2 small {
    color: #64748b;
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.regime-toggle-info {
    grid-column: span 2;
    background-color: #f8fafc;
    padding: 10px;
    border-left: 4px solid #3b82f6;
    font-size: 13px;
    color: #475569;
}

.tax-container label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
}

.tax-container input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}

.tax-container input:focus {
    border-color: #3b82f6;
}

.tax-container button {
    grid-column: span 2;
    padding: 14px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.tax-container button:hover {
    background-color: #1d4ed8;
}

.result-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.regime-card {
    padding: 20px;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.new-regime {
    border-top: 5px solid #10b981;
}

.old-regime {
    border-top: 5px solid #f59e0b;
}

.regime-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #1e293b;
    text-align: center;
}

.res-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #64748b;
}

.bold {
    color: #0f172a;
    font-weight: 600;
}

.green {
    color: #10b981;
    font-weight: 600;
}

.res-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
    font-size: 16px;
    font-weight: bold;
    color: #1e293b;
}

.tax-value {
    font-size: 18px;
    color: #0f172a;
}

.verdict-box {
    margin-top: 25px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 6px;
    display: none;
}

@media (max-width: 650px) {
    .form-section, .result-section {
        grid-template-columns: 1fr;
    }
    button, .regime-toggle-info {
        grid-column: span 1;
    }
}

/* ----------------------- Founder message ------------------ */
.founder-message{
    color: black;
    width: 80vw;
    margin: 10px auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 20px;
    align-items: center;
    border: 1px solid gray;
    padding: 5px;
}
.founder-message > div:last-child{
    font-family: 'Dancing Script', cursive;
    height: 800px;
    width: 40%;
    min-width: 300px;
    font-size: 20px;
    display: flex;
    flex-flow: column;
    gap: 20px;
}
.founder-message h4{
    color: blue;
    text-align: right;
}
@media screen and (max-width: 1300px){
    .founder-message img{
        height: 600px;
        width: 400px;
    }
}
@media screen and (max-width: 900px){
    .founder-message img{
        height: 800px;
        width: 100%;
    }
    .founder-message > div:first-child{
        width: 100%;
    }
    .founder-message > div:last-child{
        height: auto;
        width: 100%;
    }
}
@media screen and (max-width: 600px){
    .founder-message img{
        height: 600px;
        width: 100%;
    }
}
@media screen and (max-width: 400px){
    .founder-message{
        width: 95vw;
    }
    .founder-message img{
        height: 400px;
        width: 100%;
    }
    .founder-message h4 {
        font-size: 15px;
    }
}
/* ----------------------- Main Clients --------------------- */
@keyframes slide {
    from{transform: translateX(80vw);}
    to{transform: translateX(-2210px);}
}
.clients {
    height: 150px;
    width: 80vw;
    margin: 20px auto;
    padding-top: 13px;
    box-sizing: border-box;
    overflow: hidden;
}
.clients > div {
    height: 90%;
    width: calc(220px * 10);
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    animation: slide 20s 0s linear infinite normal;
}
.clients div:hover{
    animation-play-state: paused;
}
.clients img{
    height: 100%;
    width: 180px;
    border-radius: 20px;
}
