/* ======================
   GLOBAL STYLES 
   ====================== */
:root {
    --primary-color: #2a4d69;
    --secondary-color: #f7fafd;
    --dark-color: black;
    --light-color: #ffffff;
    --accent-color: #2d465e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f7fafd;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #559bcc;
}


/* ======================
   HEADER & NAVIGATION 
   ====================== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px;
}

.logo img {
    padding: 0px;
    margin: 0px;
    /* Optional additional styles: */
    display: block;
    /* Ensures proper spacing */
    max-width: 30%;
    /* Makes logo responsive */
    height: auto;
    /* Maintains aspect ratio */
    border-radius: 4px;
    /* Softens edges if desired */
    transition: all 0.3s ease;
    /* Smooth hover effects */
}

.logo img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
}

nav ul li a.active {
    color: var(--accent-color);
    font-weight: 600;
}


/* ======================
   HERO SECTION (Homepage)
   ====================== */
.hero {
    padding: 60px 0;
    background: var(--secondary-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Animation for welcome text */
@keyframes zoomAndShadow {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(42, 77, 105, 0.4);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(42, 77, 105, 0.4),
            0 0 30px rgba(42, 77, 105, 0.3);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(42, 77, 105, 0.4);
    }
}

.welcome-text {
    animation: zoomAndShadow 2s ease-in-out infinite;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1 1 40%;
    /* Takes 60% of the container */
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 18px;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

/* Phone images styling */
.hero-image {
    flex: 1;
    position: relative;
    min-height: 500px;
    display: flex;
    justify-content: flex-end;
    align-items: right;

}

.phone-container {
    position: relative;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: 0;
}

.phone {
    position: absolute;
    width: 250px;
    /* Fixed width for both images */
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-phone {
    left: 0;
    top: 50px;
    z-index: 1;
    transform: rotate(-5deg);
}

.front-phone {
    left: 100px;
    top: 0;
    z-index: 2;
    transform: rotate(5deg);
}

/* Hover effect for both phones */
.phone:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}


/* ======================
   QUICK LINKS SECTION (Homepage)
   ====================== */
.quick-links {
    padding: 50px 0;
    background: var(--secondary-color);
}

.quick-links .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.link-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    min-height: 220px;
    /* You can adjust this to make the box shorter */
}


.link-card:hover {
    transform: translateY(-5px);
}

.link-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.link-card p {
    margin-bottom: 20px;
}

.link-card-image {
    width: 25%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* ======================
   PAGE HEADER (Shared)
   ====================== */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: var(--secondary-color);
}

.page-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}



/* ======================
   ABOUT PAGE
   ====================== */
.container {
    width: 100%;
    padding: 0 20px;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.left-content {
    flex: 1;
    text-align: left;
    color: var(--dark-color);
}

.right-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns */
    gap: 20px;
    /* Space between boxes */
}

.box {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    text-align: left;
}

.box:hover {
    transform: translateY(-5px);
}

.box h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.box p {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.box-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: left;
}

.objectives-section {
    padding: 40px 20px;
    background-color: var(--secondary-color);
    text-align: center;
}

.section-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: #555;
}

.cards-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.objective-card {
    flex: 1 1 calc(33.333% - 20px);
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.objective-card .img {
    position: relative;
    margin-bottom: 15px;
}

.objective-card .img img {
    width: 100%;
    border-radius: 8px;
    max-height: 180px;
    object-fit: cover;
}



.objective-card h3 {
    margin-top: 30px;
    font-size: 20px;
    color: #222;
}

.objective-card p {
    font-size: 15px;
    color: #444;
    margin-top: 10px;
}

/* Video Section Styling */
.video-section {
    background-color: var(--secondary-color);
    /* Light background to contrast with the rest of the page */
    padding: 10px 20px;
    /* Spacious padding for the video area */
    text-align: center;
    /* Centering content */
    margin-top: 20px;
}

.video-section .section-title {
    font-size: 32px;
    /* Large, bold font for the title */
    font-weight: 700;
    color: var(--dark-color);
    /* Darker shade for text */
    margin-bottom: 20px;
    text-transform: uppercase;
}

.video-section .section-description {
    font-size: 18px;
    /* Smaller size for the description */
    color: #7f8c8d;
    /* Slightly lighter color for the text */
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    max-width: 100%;
    /* Ensures the video stretches across the full width of its container */
    height: auto;
    margin-bottom: 40px;
}

.video-container iframe {
    width: 100%;
    /* Makes the video responsive */
    height: 500px;
    /* Height is set for the video */
    border: none;
    /* Removes border around iframe */
    border-radius: 8px;
    /* Soft rounded corners */
}

@media screen and (max-width: 768px) {
    .video-section .section-title {
        font-size: 28px;
        /* Slightly smaller title for mobile */
    }

    .video-section .section-description {
        font-size: 16px;
        /* Smaller font size for better readability on mobile */
        margin-bottom: 20px;
    }

    .video-container iframe {
        height: 300px;
        /* Reduced height on mobile */
    }
}

/* ======================
   FEATURES PAGE
   ====================== */
.features {
    padding: 40px 20px;
    background-color: var(--secondary-color);

}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.feature-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-img {
    flex: 1;
    padding: 10px;
    min-width: 250px;
}

.prototype {
    text-align: center;
    font-size: 35px;
    color: var(--primary-color);
}

.feature-img img {
    width: 100%;
    max-width: 300px;
    /* Adjust this value as needed */
    height: auto;
    display: block;
    margin: 0 auto;
    /* Optional: centers the image */
}

.feature-box {
    background-size: cover;
    background-position: center;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.feature-content {
    flex: 1;
    padding: 10px;
    min-width: 250px;
}

.feature-content h3 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.feature-content p {
    font-size: 16px;
    margin-bottom: 10px;
}

.feature-content ul {
    list-style: none;
    padding: 0;
}

.feature-content ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.feature-content ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: green;
    font-weight: bold;
}

.gallery-section {
    padding: 40px 20px;
    background-color: #f5faff;
    /* light blue like in your screenshot */
}

.swiper {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
    /* Prevent jitter */
}

.swiper-wrapper {
    display: flex;
    align-items: center;

}

.swiper-slide {
    width: auto;
    /* Swiper will handle size */
    flex-shrink: 0;
    margin-right: 10px;
    /* control space between slides */
    text-align: center;
}

.swiper-slide img {
    width: 160%;
    max-width: 250px;
    /*to reduce the size of the screen  */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.swiper-slide img:hover {
    transform: scale(1.05);
}

.swiper-pagination {
    margin-top: 20px;
    /* move down from swiper container */
    position: relative;
    /* make it respect normal document flow */
}


/* ======================
   PRICING SECTION
   ====================== */
.pricing-section {
    padding: 60px 20px;
    background: var(--secondary-color);
    text-align: center;
}

.pricing-section .section-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pricing-section .section-subtitle {
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    width: 300px;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.pricing-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.pricing-card .price span {
    font-size: 16px;
    color: #777;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #444;
}

.pricing-card .btn {
    padding: 10px 25px;
    font-size: 14px;
    margin-top: 10px;
    margin-top: auto;
    /* make the btn on the same line */
    align-self: center;
}

/* Highlight the most popular plan */
.pricing-card.popular {
    background-color: var(--light-color);
    transform: scale(1.13);
    /* Increase size for emphasis */
}


/* ======================
   BLOG PAGE
   ====================== */

/* Resources Section */
.page-header {
    background-color: var(--secondary-color);
    padding: 100px, 0, 20px;
    padding: 120px 0 0px;
}

.container h2 {
    color: var(--primary-color)
}

.resources {
    padding: 2rem 0;
    background-color: var(--secondary-color);
}

.resources .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.resources .subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.featured-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.featured-main {
    flex: 2;
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-main img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.featured-main .content {
    padding: 1rem;
}

.featured-main .category {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-main h3 {
    font-size: 1.19rem;
    margin-bottom: 0.5rem;
}

.featured-main .excerpt {
    font-size: 0.95rem;
    color: #555;
}

.featured-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-post {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.3s ease;
}

.side-post .text {
    flex: 2;
}

.side-post .category {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.side-post h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.side-post img {
    flex: 1;
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}


/* ======================
   TESTIMONIAL SECTION
   ====================== */
.testimonial-container {
    padding: 80px 20px;
    background: var(--secondary-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 24px;
    padding: 20px 0 40px;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
}

.testimonial-box {
    flex: 0 0 auto;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 24px 20px;
    text-align: center;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.user-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    color: var(--dark-color);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 20px;
    font-style: italic;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.user-name span {
    display: block;
    font-size: 0.85rem;
    color: #777;
}



/* ======================
   faq PAGE
   ====================== */

.faq-section {
    padding: 120px 0 20px;
    background: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}


.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    line-height: 1.6;
}

/* Table Styling */
.table-title {
    text-align: center;
    margin: 40px 0 20px;
    color: var(--dark-color);
    font-size: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
}

.comparison-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.comparison-table tr:hover {
    background-color: #95c8ed1c;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-toggle {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(90deg);
}

/* ======================
   CONTACT 
   ====================== */

.contact {
    background-color: #f7fafd;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.contact-info {
    flex: 1;
    min-width: 250px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.icon {
    width: 60px;
    height: 60px;
    background-color: #e6f0fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item h4 {
    margin: 0 0 5px;
    font-weight: 600;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #f8fbff;
    color: #333;
}

.form-row input {
    flex: 1;
}

.contact-form .btn {
    background-color: #4aa3df;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    margin-left: auto;
}


/* ======================
   FOOTER (Shared)
   ====================== */
footer {
    background: #2d465e;
    color: var(--secondary-color);
    padding: 20px 0;
    text-align: center;
}

footer .sitename {
    color: #ffffff !important;
}


.social-links {
    margin: 20px 0;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
}

.social-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}


 /* ===================================================
   RESPONSIVE ADJUSTMENTS
   =================================================== */
/* For phones (general) */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
    }

    .logo img {
        max-width: 50%;
        margin-bottom: 5px;
    }

    nav {
        width: 120%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin-left: 0;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
    }

    header .container::after {
        content: '\2261';
        font-size: 28px;
        color: var(--primary-color);
        position: absolute;
        top: 18px;
        right: 15px;
        cursor: pointer;
        display: block;
    }

    header .container.open::after {
        content: '\2715';
    }

    .hero {
        padding: 0px;
        min-height: auto;
    }

    .hero .container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text within items */
    }

    .hero-content {
        flex: 0 0 auto; /* Take up necessary height */
        margin-bottom: 20px; /* Space below text */
        padding: 25px; /* Add more padding around the content */
        width: 100%; /* Full width for content */
        display: flex; /* Enable flexbox for content ordering */
        flex-direction: column; /* Stack content within */
        align-items: center; /* Center content within */
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 10px;
        color: var(--primary-color);
        display: block; /* Ensure it's displayed */
        opacity: 1; /* Ensure it's visible */
        order: 0; /* H2 first */
        margin-top: 80px; /* Add some top margin to the H2 */
    }

    .hero-image {
        display: none; /* Remove the hero image for phone sizes */
        margin-bottom: 0px;
        width: 0%;
        max-width: 0px;
        order: 1; /* Image second */
        padding: 0px;
    }

    .phone-container {
        display: none; /* Remove the phone container as well */
        width: 0%; /* Take full width of hero-image */
        position: relative;
        padding: 0;
    }

    .phone {
        width: 0%;
        max-width: 0px;
        border-radius: 0px;
        box-shadow: none;
    }

    .back-phone {
        left: 0;
        top: 15%;
    }

    .front-phone {
        right: 0;
        top: 0;
    }

    .hero-content p {
        font-size: 0.7rem;
        line-height: 1.5;
        margin-bottom: 0px; /* Space below paragraph */
        order: 2; /* Paragraph third */
    }

    .download-buttons {
        /* Display inline-flex to put buttons on the same line */
        display: inline-flex;
        gap: 10px; /* Space between buttons */
        align-items: center; /* Vertically align items */
        justify-content: center; /* Center buttons if space allows */
        width: auto; /* Adjust width to content */
        margin: 20px auto; /* Center the button container */
        order: 3; /* Buttons last */
    }

    .download-buttons a {
        width: auto; /* Adjust width to content */
        text-align: center;
        margin-bottom: 0; /* Remove bottom margin for inline layout */
        padding: 10px 20px; /* Shorter buttons */
        font-size: 1rem;
    }

    .quick-links {
        padding: 0;
    }

    .quick-links .container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
    }

    .link-card {
        padding: 25px;
        min-height: auto;
    }

    .link-card h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .link-card p {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .link-card-image {
        width: 35%;
        margin: 15px 0;
    }
}

/* Specific adjustments for your phone size (approximately 430x932) */
@media (max-width: 450px) and (max-height: 950px) {
    .hero-content h2 {
        font-size: 1.6rem; /* Even smaller for very narrow screens */
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .download-buttons a {
        font-size: 0.8rem;
        padding: 12px 15px;
    }

    .quick-links .link-card h3 {
        font-size: 1rem;
    }

    .quick-links .link-card p {
        font-size: 0.7rem;
    }
}


/* About Page */
@media screen and (max-width: 768px) {
    /* Existing styles for video section on mobile */
    .video-section .section-title {
        font-size: 28px;
    }

    .video-section .section-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .video-container iframe {
        height: 300px;
    }

    /* Styles for the "Your Health, Our Mission" section on mobile */
    .container {
        padding: 0 15px; /* Adjust container padding for smaller screens */
    }

    .flex-container {
        flex-direction: column; /* Stack left and right content */
        align-items: stretch; /* Make items take full width */
        gap: 30px; /* Increase gap between sections */
    }

    .left-content {
        text-align: center; /* Center text for better mobile view */
        margin-bottom: 30px; /* Add space below the text */
    }

    .left-content h2 {
        font-size: 1.6rem; /* Smaller heading for better fit */
        margin-bottom: 15px;
    }

    .left-content p {
        font-size: 1rem; /* Adjust paragraph font size */
        line-height: 1.6;
    }

    .right-content {
        grid-template-columns: 1fr; /* Single column for the boxes */
        gap: 25px; /* Adjust gap between boxes */
    }

    .box {
        text-align: center; /* Center content within boxes */
        padding: 15px; /* Adjust padding for boxes */
    }

    .box-icon {
        width: 40px; /* Smaller icons */
        height: 40px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
    }

    .box h3 {
        font-size: 1.2rem; /* Smaller box heading */
        margin-bottom: 8px;
    }

    .box p {
        font-size: 0.8rem; /* Smaller box paragraph */
    }

    .objectives-section {
        padding: 30px 15px; /* Adjust padding for objectives section */
    }

    .section-title h2 {
        font-size: 24px; /* Smaller objectives title */
        margin-bottom: 8px;
    }

    .section-title p {
        font-size: 14px; /* Smaller objectives subtitle */
    }

    .cards-wrapper {
        flex-direction: column; /* Stack objective cards */
        gap: 25px;
        margin-top: 20px;
    }

    .objective-card {
        flex-basis: auto; /* Allow cards to take full width */
        padding: 15px;
    }

    .objective-card h3 {
        font-size: 1.1rem; /* Smaller objective card heading */
        margin-top: 15px;
    }

    .objective-card p {
        font-size: 0.9rem; /* Smaller objective card paragraph */
    }
}

/* Features Page */
@media (max-width: 768px) {
    /* Adjustments for the page header */
    .page-header .container h2 {
        font-size: 1.6rem; /* Smaller main heading */
        margin-bottom: 10px;
    }

    .page-header .container p {
        font-size: 1rem; /* Smaller paragraph */
        line-height: 1.6;
    }

    /* Adjustments for the feature rows */
    .feature-row {
        flex-direction: column; /* Stack image and text */
        align-items: center; /* Center items */
        text-align: center; /* Center text within */
        margin-bottom: 25px; /* Add more space between rows */
    }

    .feature-row.reverse {
        flex-direction: column; /* Keep stacking for reversed rows */
    }

    .feature-img {
        margin-bottom: 10px; /* Space between image and text */
    }

    .feature-img img {
        max-width: 80%; /* Make images responsive */
        height: auto;
    }

    .feature-content h3 {
        font-size: 1.5rem; /* Smaller feature heading */
        margin-top: 20px; /* Add space above heading */
    }

    .feature-content p {
        font-size: 1rem; /* Smaller feature paragraph */
        margin-bottom: 15px;
    }

    .feature-content ul li {
        font-size: 1rem; /* Smaller list item text */
        margin-bottom: 8px;
    }

    .feature-content ul li::before {
        font-size: 0.8rem; /* Smaller checkmark */
    }

    /* Adjustments for the prototype section */
    .prototype {
        font-size: 2rem; /* Smaller prototype heading */
        margin-top: 0px;
    }
    .gallery-section{
        padding: 0px;
    }
}

/* Pricing */
@media (max-width: 768px) {
    .pricing-section {
        padding: 45px 15px; /* Adjust overall padding */
    }

    .pricing-section .section-title {
        font-size: 25px; /* Smaller title */
        margin-bottom: 15px;
        margin-top: 40px;
    }

    .pricing-cards {
        flex-direction: column; /* Stack cards on smaller screens */
        align-items: center; /* Center the stacked cards */
        gap: 20px; /* Adjust gap between stacked cards */
    }

    .pricing-card {
        width: 90%; /* Make cards take up more width */
        max-width: 350px; /* Ensure they don't get too wide */
        padding: 25px 15px; /* Adjust padding inside cards */
        min-height: 400px; /* Set a minimum height for all cards */
        display: flex; /* Enable flexbox for content alignment */
        flex-direction: column; /* Stack content within */
        transform: none !important; /* Override any scaling */
    }

    .pricing-card h3 {
        font-size: 1.5rem; /* Smaller card heading (like Features page) */
        margin-bottom: 10px;
    }
}

/* Specific adjustments for even smaller screens */
@media (max-width: 480px) {
    .pricing-card {
        width: 95%; /* Take up even more width on very small screens */
        min-height: 450px; /* Adjust min-height for smaller screens if needed */
    }

    .pricing-card h3 {
        font-size: 1.3rem; /* Even smaller card heading */
    }
}

/* Tesitimonials */
@media (max-width: 768px) {
    .testimonial-box {
        width: 85%;
        margin: 0 auto;
        padding: 10;
    }

    .testimonial-slider{
        padding: 0;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .user-name {
        font-size: 1rem;
    }

    .user-name span {
        font-size: 0.8rem;
    }
}

/* Blog */
@media (max-width: 768px) {
    .page-header {
        padding-top: 80px; /* Adjust top padding */
    }

    .page-header .container h2 {
        font-size: 1.6rem; /* Smaller heading for phones */
        padding-top: 20px;
    }

    .resources .section-title {
        font-size: 1.6rem; /* Smaller section title */
    }

    .resources .subtitle {
        font-size: 0.85rem; /* Smaller subtitle */
    }

    .featured-grid {
        flex-direction: column; /* Stack featured and side content */
        gap: 1.5rem; /* Adjust gap */
    }

    .featured-main h3 {
        font-size: 1rem; /* Smaller main post heading */
    }

    .featured-main .excerpt {
        font-size: 0.9rem; /* Keep excerpt size */
    }

    .featured-side {
        gap: 1rem; /* Adjust gap */
    }

    .side-post h4 {
        font-size: 0.85rem; /* Smaller side post heading */
    }

    .side-post img {
        width: 70px; /* Smaller side image width */
        height: 50px; /* Smaller side image height */
    }
}

/* Contact */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Stack info and form */
        align-items: center; /* Center items horizontally */
        padding: 30px 15px; /* Adjust padding */
    }

    .contact-info {
        width: 100%; /* Take full width */
        margin-bottom: 0px;
    }

    .contact-form {
        width: 100%; /* Take full width */
    }

    .contact-form .btn {
        display: block; /* Ensure it's a block-level element */
        margin-left: auto; /* Remove left auto */
        margin-right: auto; /* Center horizontally */
        text-align: center; /* Center the text within the button (optional) */
    }
}