/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Modern Color Scheme */
:root {
    --dark-charcoal: #1a1a2e;
    --vibrant-teal: dodgerblue;
    --cool-gray: #e0e0e0;
    --light-gray: #f4f7fb;
    --white: #ffffff;
    --accent-blue: #0066cc;
}

/* Body */
body {
    background: var(--white);
    color: var(--dark-charcoal);
}

/* Navbar */
header {
    position: relative;
    z-index: 10;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--cool-gray);
}

.nav .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-charcoal);
    letter-spacing: 1px;
}

.cta-button {
    background-color: var(--vibrant-teal);
    color: #fff;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.cta-button:hover {
    background-color: #0077b6;
    transform: translateY(-3px);
}

/* Responsive Navbar */
@media (min-width: 768px) {
    .nav {
        flex-direction: row;
    }
    .cta-button {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }
    .cta-button {
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Hero Section */
.hero {
    background-color: #061a2b;
    background-image: url('images/wave-hero.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    padding: 140px 20px 240px;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    background: #0c1726;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero .cta-button {
    background-color: var(--vibrant-teal);
    color: white;
    padding: 16px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.hero .cta-button:hover {
    background-color: #0077b6;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 180px;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero .cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Services Section */
.services {
    padding: 80px 20px;
    text-align: center;
    background: var(--cool-gray);
}

.services h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-charcoal);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.service-box {
    background: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-charcoal);
}

.service-box p {
    font-size: 16px;
    color: #555;
}

/* CTA Section */
.cta-section {
    background: var(--dark-charcoal);
    color: var(--white);
    padding: 70px 20px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: auto;
}

.cta-section h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 25px;
}

.cta-dark {
    background: var(--vibrant-teal);
    color: var(--white);
}

.cta-dark:hover {
    background: #0077b6;
}

/* Footer */
footer {
    background: var(--dark-charcoal);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* About Section */
.about {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(to bottom, var(--white), #f8f9fa);
}

.about .container {
    max-width: 850px;
    margin: auto;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.about h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-charcoal);
}

.about p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--vibrant-teal);
    margin: 12px auto;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .about .container {
        padding: 20px 15px;
    }

    .about h3 {
        font-size: 1.5rem;
    }

    .about p {
        font-size: 0.95rem;
    }
}

/* Centered Nav Branding */
.nav-center {
    justify-content: center;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.5px;
}
"""

# Save the updated CSS to a file
path = "/mnt/data/practicepoint-cleaned-responsive.css"
Path(path).write_text(updated_css)

path

Analyzed
python
Always show details

Copy
from pathlib import Path

# Redefine the updated CSS content after code execution environment reset
updated_css = """
/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Modern Color Scheme */
:root {
    --dark-charcoal: #1a1a2e;
    --vibrant-teal: dodgerblue;
    --cool-gray: #e0e0e0;
    --light-gray: #f4f7fb;
    --white: #ffffff;
    --accent-blue: #0066cc;
}

/* Body */
body {
    background: var(--white);
    color: var(--dark-charcoal);
}

/* Navbar */
header {
    position: relative;
    z-index: 10;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--cool-gray);
}

.nav .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-charcoal);
    letter-spacing: 1px;
}

.cta-button {
    background-color: var(--vibrant-teal);
    color: #fff;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.cta-button:hover {
    background-color: #0077b6;
    transform: translateY(-3px);
}

/* Responsive Navbar */
@media (min-width: 768px) {
    .nav {
        flex-direction: row;
    }
    .cta-button {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }
    .cta-button {
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Hero Section */
.hero {
    background-color: #061a2b;
    background-image: url('images/wave-hero.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    padding: 140px 20px 240px;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    background: #0c1726;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero .cta-button {
    background-color: var(--vibrant-teal);
    color: white;
    padding: 16px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.hero .cta-button:hover {
    background-color: #0077b6;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 180px;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero .cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Services Section */
.services {
    padding: 80px 20px;
    text-align: center;
    background: var(--cool-gray);
}

.services h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-charcoal);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.service-box {
    background: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-charcoal);
}

.service-box p {
    font-size: 16px;
    color: #555;
}

/* CTA Section */
.cta-section {
    background: var(--dark-charcoal);
    color: var(--white);
    padding: 70px 20px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: auto;
}

.cta-section h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 25px;
}

.cta-dark {
    background: var(--vibrant-teal);
    color: var(--white);
}

.cta-dark:hover {
    background: #0077b6;
}

/* Footer */
footer {
    background: var(--dark-charcoal);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* About Section */
.about {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(to bottom, var(--white), #f8f9fa);
}

.about .container {
    max-width: 850px;
    margin: auto;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.about h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-charcoal);
}

.about p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--vibrant-teal);
    margin: 12px auto;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .about .container {
        padding: 20px 15px;
    }

    .about h3 {
        font-size: 1.5rem;
    }

    .about p {
        font-size: 0.95rem;
    }
}

/* Centered Nav Branding */
.nav-center {
    justify-content: center;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.5px;
}