@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: #D9D9D9; 
    padding-top: 30px; 
    min-height: 100vh;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 20px;
}

.hero-content {
    flex: 1;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: #1a1a1a;
    font-weight: 400;
    margin-bottom: 15px;
}

.highlight { color: #F89b42; }
.highlight-2 { color: #1A2238;}

.hero-content p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-upload {
    display: inline-block;
    background: #1A2238;
    color: white;
    text-decoration: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 155, 66, 0.5);
}

.hero-image-container {
    flex: 1.6;
    display: flex;
    justify-content: flex-end;
}

.hero-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(10px 10px 20px rgba(0,0,0,0.1));
}

.bottom-section-wrapper {
    width: 100%;
    background-color: #F2F2F2;
    padding: 100px 0;
}

.ai-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* naislan ni na function */
.ai-image-card {
    flex: 1.5;
    background-color: #efeded; 
    border-radius: 30px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    box-shadow: 0 20px 50px rgba(160, 138, 138, 0.1); 
    position: relative;
    transition: transform 0.3s ease;
}

.ai-content {
    flex: 1.5;
    border-left: 4px solid #1A2238; 
    padding-left: 40px;
    padding-top: 20px;
    padding-bottom: 20px; 
}

.ai-content h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 20px;
}

.ai-content p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.8;
    font-weight: 300;
    text-align: left; 
}

/* bag o ni siya */

.ai-image-link {
    display: block;
    text-decoration: none;
    border-radius: 30px;
    overflow: hidden;
}

.ai-image-link:hover .ai-image-card {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-image-link:hover .image-overlay {
    opacity: 1;
}

.hover-btn {
    background-color: #f28c28;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transform: translateY(20px); 
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-family: 'Kanit', sans-serif;
}

.ai-image-link:hover .hover-btn {
    transform: translateY(0);
}

.text-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.text-link:hover {
    transform: scale(1.03);
}

.text-link .highlight {
    position: relative;
    border-bottom: 3px dashed #F89b42; 
}

.text-link:hover .highlight {
    border-bottom: 3px solid #F89b42;
}

.action-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: transparent;
    color: #F89b42; 
    border: 2px solid #F89b42;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #F89b42;
    color: white;
    transform: translateY(-2px);
}

/* kutob diri ang bag o */

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-box {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out;
}

.modal-content i {
    font-size: 3rem;
    color: orange;
    margin-bottom: 20px;
    display: block;
}

.modal-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-family: 'Kanit', sans-serif;
    font-size: 1.5rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.btn-login, .btn-signup {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-login {
    background-color: #1A2238;
    color: white;
}

.btn-signup {
    background-color: #f5f5f5;
    color: #333;
}

.btn-login:hover, .btn-signup:hover {
    transform: translateY(-2px);
}

/* feature */

/* HOW IT WORKS SECTION */

.how-it-works{
    background:#D9D9D9;
    padding:80px 5%;
    text-align:center;
}

.how-title{
    font-size:2.4rem;
    color:#1A2238;
    margin-bottom:10px;
}

.how-subtitle{
    color:#666;
    font-size:1rem;
    margin-bottom:50px;
}

.how-container{
    display:flex;
    justify-content:center;
    gap:80px;
    flex-wrap:wrap;
}

.how-step{
    max-width:260px;
}

.step-circle{
    width:55px;
    height:55px;
    border-radius:50%;
    border:3px solid #F89b42;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 20px auto;
    font-weight:600;
    color:#1A2238;
    font-size:1.2rem;
    background:white;
}

.how-step h3{
    font-size:1.3rem;
    margin-bottom:10px;
    color:#1A2238;
}

.how-step p{
    font-size:0.9rem;
    color:#555;
    line-height:1.5;
}

/* responsive */

@media(max-width:768px){

    .how-container{
        gap:40px;
    }

    .how-title{
        font-size:2rem;
    }

}

/* Mobile Responsiveness for New Feature Section */
@media (max-width: 900px) {
    .features-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .feature-box {
        width: 100%;
        max-width: 100%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-img, .ai-image-card img {
    max-width: 100%;
    height: auto;
}

.category-section {
    padding: 70px 5%;
    background-color: #F2F2F2;
}

.section-title {
    color: #1A2238;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
    margin-bottom: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #f09848;
    border-radius: 2px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 70px; 
    flex-wrap: wrap;
}

.appliance-card {
    background-color: #e6e6e6;
    border-radius: 25px;
    overflow: hidden;
    flex: 0 1 360px;
    max-width: 360px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.appliance-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 250px;
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.appliance-card h3 {
    color: #1A2238;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.appliance-card p {
    color: #4a4a4a;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-view {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background-color: #1A2238;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #f09848;
    color: #1A2238;
}

.appliance-card.highlight {
    background-color: #f09848; 
}

.appliance-card.highlight h3 {
    color: #fff; 
}

.appliance-card.highlight p {
    color: #1a1a1a; 
}

.appliance-card.highlight .btn-view {
    background-color: #ffffff; 
    color: #1A2238;
}

.appliance-card.highlight .btn-view:hover {
    background-color: #1A2238;
    color: #ffffff;
}
@media (max-width: 900px) {
    body {
        padding-top: 20px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        margin: 30px auto;
        width: 90%;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .ai-section {
        flex-direction: column-reverse;
        gap: 40px;
        width: 90%;
    }

    .ai-content {
        border-left: none;
        border-top: none;
        padding-left: 0;
        padding-top: 0;
        padding-bottom: 30px;
        text-align: center;
    }

    .ai-content p {
        text-align: center;
    }

    .ai-image-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 30px;
		display: none;
    }
	
	.category-section {
        padding: 50px 3%;
    }
    
    .card-container {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    
    .hero-section {
        margin: 10px auto 30px auto;
        width: 92%;
    }

    .hero-content h1 {
        font-size: 2rem; 
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px; 
    }

    .hero-image-container {
        justify-content: center;
        max-width: 320px; 
        margin: 0 auto;
    }

    .btn-upload {
        width: 100%; 
        max-width: 300px;
        padding: 14px 20px;
        font-size: 16px;
    }

    .bottom-section-wrapper {
        padding: 50px 0;
    }

    .ai-section {
        gap: 25px; 
    }

    .ai-content h2 {
        font-size: 1.6rem;
    }
	
	.ai-content p {
        font-size: 1rem;
    }

    .ai-image-card {
        padding: 20px;
        max-width: 450px; 
        border-radius: 20px;
    }

    .modal-box {
        width: 95%;
        padding: 25px 15px;
    }

    .modal-actions {
        flex-direction: column; 
        gap: 10px;
    }

    .btn-login, .btn-signup {
        width: 100%;
        padding: 12px 0;
    }
	
	.category-section {
        padding: 40px 20px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .appliance-card {
        width: 100%;
        max-width: 100%; 
        flex: none;
    }

    .card-image {
        height: 200px;
    }

    .appliance-card h3 {
        font-size: 1.5rem;
    }

    .appliance-card:hover {
        transform: none;
    }
}

@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .btn-upload {
        font-size: 15px;
        padding: 12px;
    }
}