@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,500;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

:root {
    --white-color: #fff;
    --dark-color: #252525;
    --primary-color: #ca1c1c;
    --secondary-color: rgb(10, 45, 70);
    --light-blue: #5d7299;
    --dark-gray: #3e3e3e;

    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.3rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 500px;

    --site-max-width: 1300px;

}

html{
    scroll-behavior: smooth;
}

/*Styling for the whole page*/
ul{
    list-style: none;
}

a{
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    /*padding: 60px 0 100px;*/
    font-size: var(--font-size-xl);
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-s);
    background-color: var(--white-color);
}

.section-content{
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

/*Nav Bar styling */
header{
    position: fixed;
    width: 100%;
    z-index: 5;
    background: var(--light-blue);
    transition: 0.4s;
    top: 0;
}

header.scrolled {
    height: 60px;
    border-radius: 500px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: calc(100% - 40px);
    top: 10px;
    padding: 0 20px;
    left: 20px;
}

header .navbar {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
}

header .navbar.scrolled {
    height: 60px;
    top: 10px;
    width: calc(100%-40px);
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;
}

.navbar .nav-logo {
    display: flex;
    gap: 10px;
}

.navbar .nav-menu .nav-link {
    padding: 10px 18px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    border-radius: var(--border-radius-m);
    transition: 0.15s ease;
}

.navbar .nav-menu .nav-link:hover {
    color: var(--white-color);
    background: var(--primary-color);
}

.navbar :where(#menu-close-button, #menu-open-button){
    display: none;
}

/*Hero section styling*/
.hero-section{
    min-height: 100vh;
    background: var(--dark-color);
}

.hero-section .section-content{
    display: flex;
    align-items: center;
    min-height: 100vh;
    color: var(--white-color);
    justify-content: space-between;
}

.hero-section .hero-details .title{
    font-size: var(--font-size-m);
    color: var(--primary-color);
}

.hero-section .hero-details .subtitle {
    margin-top: 8px;
    max-width: 70%;
    font-size: var(--font-size-xxl);
    font-weight: var(--font-weight-semibold);
}

.hero-section .hero-details .description {
    max-width: 70%;
    margin: 24px 0 40px;
    font-size: var(--font-size-m);
}

.hero-section .hero-image-wrapper {
    max-width: 500px;
    margin-right: 30px;
}

.hero-section .hero-details .buttons {
    display: flex;
    gap: 23px;
} 

.hero-section .hero-details .button {
    padding: 10px 26px;
    border: 2px solid transparent;
    color: var(--white-color);
    border-radius: var(--border-radius-m);
    background-color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    transition: 0.2s ease;
}

.hero-section .hero-details .button:hover {
    color: var(--white-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #d80000; /* Accent Red */
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #ff1a1a; /* Lighter red */
}

/*About Section*/
.about-section {
    padding: 60px 0;
    background: var(--dark-color);
    text-align: center;
}

.about-section .section-content{
    display: flex;
    gap: 5%;
    align-items: center;
    justify-content: space-between;
}
.about-section .about-image-wrapper .about-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-circle);
}

.about-section .about-details .section-title{
    padding: 0;
    color: #d80000;
    margin-bottom: 20px;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.accordion-item {
    margin-bottom: 15px;
    background: #222;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-item label {
    display: block;
    padding: 15px 20px;
    background: #333;
    cursor: pointer;
    color: #d80000;
    font-weight: bold;
}

.accordion-item input {
    display: none;
}

.accordion-item .content {
    max-height: 0;
    overflow: hidden;
    background: #222;
    padding: 0 20px;
    transition: max-height 0.3s ease-in-out;
    color: #fff;
}

.accordion-item input:checked ~ .content {
    max-height: 200px; /* Adjust based on content size */
    padding: 20px;
}

/*Available Devices List*/
.devices-section {
    background-color: var(--dark-color);
    margin: 0;
    padding: 0;
}

.devices-section .devices-details .text {
    line-height: 30px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: var(--font-size-m);
    list-style: none;
    color: white;
}

.devices-section .devices-list {
    margin: 50px 0 30px;
    display: flex;
    gap: 100px;
    justify-content: center;
    font-size: var(--font-size-xxl);
    color: white;
}

.devices-section .devices-list p{
    font-size: var(--font-size-m);
}

.devices-section .devices-list li{
    display: inline;
    float: left;
    margin: 0 10px 10px 0;
    padding: 10px;
 	text-align: center; 
}

.devices-section .section-title {
    color: white;
}

.devices-section .section-title::after {
    background-color: #d80000;
}

.devices-section .section-title,
.devices-section .devices-list,
.devices-section .devices-details {
    margin-bottom: 0;
}
/*Pricing Section*/
.pricing-section {
    padding: 60px 0;
    background: var(--dark-color);
    text-align: center;
}

.pricing-section h2 {
    margin-bottom: 30px;
    color: #d80000;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.card h3 {
    color: #d80000;
    margin-bottom: 10px;
}

.card .price {
    font-size: 2rem;
    margin: 20px 0;
    color: #fff;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.card ul li {
    padding: 5px 0;
    border-bottom: 1px solid #444;
    color: white;
}


/*Footer section*/
.footer-section {
    padding: 20px 0;
    background-color: var(--light-blue);
}

.footer-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-section .social-link-list {
    display: flex;
    gap: 25px;
}

.footer-section .social-link-list .social-link {
    font-size: var(--font-size-l);
}

.footer-section .social-link-list .social-link:hover, .footer-section .policy-text .policy-link:hover{
    color: var(--primary-color);
}

.footer-section :where(.copyright-text, .social-link, .policy-link){
    color: var(--white-color);
    transition: 0.2s ease;
}

.footer-section .policy-text .seperator{
    color: var(--white-color);
}

#sign-up {
    color: var(--white-color);
    font-size: var(--font-size-m);
    background-color: var(--primary-color);
    border-radius: var(--border-radius-m);
}

#dashboard {
    color: var(--white-color);
    font-size: var(--font-size-m);
    background-color: var(--primary-color);
    border-radius: var(--border-radius-m);
}

.logo {
    max-width: 50px;
}

.logo-text {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-style: italic;
    color: var(--white-color);
    padding: 10px;
}

.accordion{
    margin: 60px auto;
    width: 600px;
}

.accordion li {
    list-style: none;
    width: 100%;
    margin: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: #e3edf7;
    box-shadow: 6px 6px 10px -1px rgba(0, 0, 0, 0.15);
}

.accordion li label {
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
}

label::before{
    content: '+';
    margin-right: 10px;
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
}

input[type="radio"]{
    display: none;
}

.accordion .accordion-content{
    color: #555;
    padding: 0 10px;
    line-height: 26px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s, padding 0.5s;
}

.accordion input[type="radio"]:checked + label + .accordion-content{
    max-height: 400px;
    padding: 10px 10px 20px;
}

.accordion input[type="radio"]:checked + label::before {
    content: '-';
}

/* Responsive media query code for max width 1024px*/
@media screen and (max-width: 1024px) {
    
}

/* Responsive media query code for max width 900px*/
@media screen and (max-width: 900px){
    :root{
        --font-size-m: 1rem;
        --font-size-l: 1.3rem;
        --font-size-xl: 1.5rem;
        --font-size-xxl: 1.8rem;
    }

    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.2);
    }

    .navbar :where(#menu-close-button, #menu-open-button){
        display: block;
        font-size: var(--font-size-l);
    }

    .navbar #menu-close-button{
        position: absolute;
        right: 30px;
        top: 30px;
    }

    .navbar #menu-open-button{
        color: var(--white-color);
    }

    .navbar .nav-menu{
        display: block;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.3s ease;
    }

    header .navbar.scrolled {
        top: 0; /* Bring it even closer to the top for mobile view */
    }

    body.show-mobile-menu .navbar .nav-menu{
        left: 0;
    }

    .navbar .nav-menu .nav-link {
        color: var(--dark-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);
    }

    .hero-section .section-content{
        gap: 50px;
        text-align: center;
        padding: 30px 20px 20px;
        flex-direction: column-reverse;
        justify-content: center;
    }

    .hero-section .hero-details :is(.subtitle, .description) {
        max-width: 100%;
    }

    .hero-section .hero-details .buttons {
        justify-content: center;
    }

    .hero-section .hero-image-wrapper {
        max-width: 270px;
        margin-right: 0;
    }
    

    .about-section .section-content {
        gap: 70px;
        flex-direction: column;
    }

    .about-section .about-image-wrapper .about-image{
        width: 100%;
        height: 100%;
        max-width: 250px;
        aspect-ratio: 1;
    }

    .devices-section .devices-list {
        flex-direction: row;
        gap: 25px;
        font-size: var(--font-size-l);
    }

}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-section {
        flex-direction: column;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    header.scrolled {
        height: 85px;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-image {
        display: none;
    }
}


/* Responsive media query code for max width 1680px*/
@media screen and (max-width: 1680px) {
    .about-section .about-details .accordion {
        line-height: 30px;
        width: 95%;
        margin: 50px 0 30px;
        text-align: center;
        font-size: var(--font-size-m);
        justify-content: center;
    }
}

/* Responsive media query code for max width 640px*/
@media screen and (max-width: 640px) {
    .devices-section .devices-list {
        flex-direction: row;
        gap: 10px;
        font-size: var(--font-size-l);
        
    }

    .pricing-section .pricing-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .pricing-section .pricing-details .price-card,
    .pricing-section .pricing-details .price-card-1 {
        width: 90%; /* Adjust card width for small screens */
        margin-bottom: 20px; /* Space between stacked cards */
        float: none; /* Remove float for stacking */
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto; /* Allow cards to adjust height dynamically */
        padding-bottom: 20px; /* Add extra space at the bottom */
    }

    .pricing-section .pricing-details .middle.m1 {
        margin-top: 0; /* Reset middle card offset */
        box-shadow: none; /* Simplify shadow for smaller screens */
        z-index: auto;
        position: static;
        height: auto; /* Allow dynamic height */
        padding-bottom: 20px; /* Consistent space at the bottom */
    }

    /* Remove hover effects on mobile for the entire card */
    .pricing-section .pricing-details .price-card:hover,
    .pricing-section .pricing-details .price-card-1:hover,
    .pricing-section .pricing-details .middle:hover {
        box-shadow: none; /* Disable hover shadow */
        transform: none; /* Prevent movement on hover */
    }
    
    .footer-section .section-content{
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 520px) {
    .devices-section .devices-list {
        flex-direction: row;
        gap: 10px;
        font-size: var(--font-size-m);
    }
}

@media screen and (max-width: 320px) {
    .devices-section .devices-list {
        flex-direction: row;
        gap: 7px;
        font-size: var(--font-size-n);
    }
}
