/* ---
    Infotech Wizard - Front End Assignment
    Submitted by: [Your Name]
    Date: October 1, 2025
--- */


/* --- 1. General Setup & Variables --- */
:root {
    --primary-color: #FA1239;
    --secondary-color: #FFF1F4;
    --dark-color: #2c2c2c;
    --text-color: #555;
    --light-color: #fff;
    --border-color: #ddd;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- 2. Header & Navigation --- */
.main-header {
    background: var(--light-color);
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo svg {
    margin-right: 10px;

}

.logo-text {
    display: flex;
    flex-direction: column;


}

.logo-text span:first-child {
    display: block;
    font-weight: 300;
    color: var(--dark-color);
    font-size: 1.8rem;
    line-height: 1.2;
    width: 100px;



}

.line {
    position: absolute;
    top: 124px;
    left: 1px;
    width: 310px;
}

.logo-text span:last-child {
    font-size: 1rem;
    color: var(--text-color);
    letter-spacing: 1px;
    margin-top: -10px;
    font: lighter;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin: 0 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}


/* --- 3. Reusable Components (Buttons) --- */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 0px 6px 0#d62c46;
}

.btn-primary:hover {
    background-color: #f30b2e;
    transform: translateY(-2px);

}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0px 6px 0#d62c46;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}


/* --- 4. Hero Section --- */
.hero {
    background-color: var(--secondary-color);
    padding: 60px 0;
    overflow: hidden;
    background-image: linear-gradient(to right, #fbb6c1 0%, #fee9ed 70%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 80px;

}

.hero-content {
    flex: 1;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 70px;
}

.hero-content .highlight {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}


.hero-content .highlight::after {
    /* Top, THINNER Line */
    bottom: -2px;
    width: 55%;
    left: 10%;
    border-top: 3.5px solid var(--primary-color);
    /* Switched to border-top */
}

.hero-content .highlight::before {
    /* Bottom, THICKER Line */
    bottom: -9px;
    width: 85%;
    left: 0%;
    border-top: 3px solid var(--primary-color);
    /* Switched to border-top */
}


.hero-content p {
    font-size: 0.75rem;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 34px;
    letter-spacing: 0px;
    font: normal;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper img {
    max-width: 100%;
    height: 600px;
    position: absolute;
    border-radius: 20px;


}

.info-card {
    position: absolute;
    background: var(--light-color);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-card {

    top: 25px;
    left: 30px;


}

.rating-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1CB098;

}

.rating-details .stars {
    color: #FFC107;
}

.rating-details span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.stats-card {
    top: 70%;
    right: -30px;
}

.stats-icon {
    background-color: var(--secondary-color);
    padding: 10px;
    border-radius: 10px;
    color: var(--primary-color);
}

.stats-icon svg {
    width: 30px;
    height: 30px;
}

.stats-details {
    display: flex;
    flex-direction: column;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stats-details span:last-child {
    font-size: 0.9rem;
    color: var(--text-color);
}


/* --- 5. Features Section --- */
.features {
    padding: 100px 0;
}

.features .container {
    text-align: center;
}

.section-tag {
    display: inline-block;
    background-color: #fed5da;
    padding: 6px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 60px;
    max-width: auto;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-card img {
    max-width: 400px;
    height: 150px;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    text-align: start;
}

.feature-card p {
    font-size: 0.79rem;
    text-align: start;
}


/* --- 6. Responsive Design --- */

/* Tablet View */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
        /* Content appears below the image */
    }

    .hero-image-wrapper {
        order: 1;
        /* Image appears on top */
        margin-bottom: 40px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-buttons {
        justify-content: center;

    }

    .info-card {
        padding: 10px 15px;
    }

    .rating-card {
        left: 0;
    }

    .stats-card {
        right: 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid on tablets */
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        /* For a real site, implement a hamburger menu */
    }

    .main-header .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .section-title {
        font-size: 1.8rem;
    }

    .rating-card {
        bottom: 5%;
        left: 5%;
    }

    .stats-card {
        top: 75%;
        right: 5%;
    }
}