﻿/* General Reset */
body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Banner Section */
.banner {
    height: 100vh; /* Full-screen height */
    background: url(image.jpg); /* Gradient background */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .banner .content h1 {
        font-size: 3rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .banner .content p {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .banner .buttons a {
        display: inline-block;
        margin: 10px;
        padding: 10px 20px;
        font-size: 1.2rem;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .banner .buttons .get-started {
        background: #09e9b1b5;
        color: #fff;
    }

    .banner .buttons .learn-more {
        background: #2b8dedb0;
        color: #fff;
    }

    .banner .buttons a:hover {
        opacity: 0.8;
    }

/* Features Section */
.features {
    padding: 80px 20px;
    background: #f8f9fa; /* Light gray for contrast */
    text-align: center;
    margin-top: 50px;
}

    .features h2 {
        font-size: 2.5rem;
        font-weight: bold;
        color: #333;
        margin-bottom: 40px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    }

    .feature-card img {
        max-width: 100px;
        margin-bottom: 20px;
        transition: transform 0.3s ease;
    }

    .feature-card:hover img {
        transform: scale(1.1);
    }

    .feature-card h3 {
        font-size: 1.5rem;
        color: #444;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 1rem;
        color: #666;
    }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .banner .content h1 {
        font-size: 2.5rem;
    }

    .banner .content p {
        font-size: 1.2rem;
    }
}

/* Preview Section */
.preview-section {
    background: #f8f9fa; /* Light gray background */
    padding: 80px 20px;
}

.editor-preview {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap; /* Ensure responsiveness */
    justify-content: space-between;
}

#preview-text {
    flex: 1;
    text-align: left;
    max-width: 50%; /* Occupy half the container width */
}

    #preview-text h2 {
        font-size: 2.5rem;
        font-weight: bold;
        color: #333;
        margin-bottom: 20px;
    }

    #preview-text pre {
        font-size: 1.2rem;
        color: #666;
        line-height: 1.5;
        margin-bottom: 30px;
        font-family: 'Courier New', Courier, monospace;
        font-weight:600;
    }

    #preview-text .cta-btn {
        padding: 10px 20px;
        font-size: 1.2rem;
        text-transform: uppercase;
        border: none;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

        #preview-text .cta-btn:hover {
            background-color: #c82333;
            color: #fff;
        }

.carousel {
    flex: 1;
    max-width: 50%; /* Occupy half the container width */
}

    .carousel img {
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-width: 100%; /* Ensure the image doesn't overflow */
        height: auto; /* Maintain aspect ratio */
    }

/* Media Query for Small Screens (Phones) */
@media screen and (max-width: 768px) {
    .editor-preview {
        flex-direction: column; /* Stack elements vertically */
        align-items: center;
        text-align: center;
    }

    #preview-text {
        max-width: 100%; /* Make text area full width on small screens */
    }

    .carousel {
        max-width: 100%; /* Make carousel full width on small screens */
        margin-top: 20px; /* Add space between text and carousel */
    }

    #preview-text h2 {
        font-size: 1.8rem; /* Adjust font size for smaller screens */
    }

    #preview-text pre {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }
}

/* General Layout */
.practice {
    display: flex;
    align-items: center;
    position: relative;
    height: 500px; /* Adjust based on your design */
    padding: 20px;
    overflow: hidden;
}

/* Image Styling */
.image {
    flex: 0 0 70%; /* Image covers 70% of the width */
    position: relative;
}

    .image img {
        width: 100%;
        height: 100%;
/*        object-fit: cover;*/
        background-size:cover;
        border-radius: 10px; /* Optional: Adds rounded corners */
    }

/* Cards Styling */
.my_cards {
    position: absolute;
    right: 15%; /* Pushes cards to the right over the image */
    top: 50%; /* Centers vertically */
    transform: translateY(-50%);
    background: transparent; /* Slightly transparent background */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    max-width: 450px;
    backdrop-filter:blur(2px);
}

    .my_cards h2 {
        margin-bottom: 15px;
    }

.card {
    margin-bottom: 10px;
    background-color: transparent !important;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(2px);
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .practice {
        flex-direction: column;
        height: auto;
    }

    .image {
        flex: 0 0 auto;
        width: 100%; /* Image takes full width */
        height: auto;
    }

    .my_cards {
        position: static; /* Removes absolute positioning */
        transform: none; /* Resets transformation */
        width: 100%; /* Cards take full width */
        margin-top: 20px;
        box-shadow: none; /* Removes shadow for simplicity */
    }

    .card {
        margin-bottom: 10px;
    }
}

/* General Footer Styling */
.footer {
    display: flex;
    justify-content: space-between;
    background-color: #2c2f33; /* Dark background color */
    color: #ffffff; /* White text for contrast */
    padding: 20px 50px;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
}

.footer-section {
    flex: 1; /* Equal space for each section */
    margin: 10px;
    min-width: 250px; /* Ensures proper spacing even when wrapping */
}

    .footer-section h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: #fff; /* Highlighted headings */
        border-bottom: 2px solid #ffcc00;
        display: inline-block;
        padding-bottom: 5px;
    }

    .footer-section p,
    .footer-section ul {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }

        .footer-section ul li {
            margin-bottom: 5px;
        }

            .footer-section ul li a {
                text-decoration: none;
                color: #ffffff;
                transition: color 0.3s ease;
            }

                .footer-section ul li a:hover {
                    color: #ffcc00; /* Highlight links on hover */
                }

    /* Contact Section */
    .footer-section.contact p {
        margin-bottom: 8px;
    }

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .footer {
        flex-direction: column; /* Stack sections vertically */
        align-items: flex-start;
        padding: 20px;
    }

    .footer-section {
        width: 100%; /* Full width for each section */
        margin-bottom: 20px; /* Add space between sections */
    }

        .footer-section h2 {
            font-size: 1.2rem; /* Slightly smaller headings */
        }

        .footer-section p,
        .footer-section ul {
            font-size: 0.85rem;
        }
}
