:root {
    --primary-color: #063970; /* Dark Blue */
    --secondary-color: #ffffff; /* White */
    --text-color: #000000; /* Black */
    --four-color: #007BFF; /* Blue */
    --tri-color: #f4f4f4; /* Gray */
    --font-family: 'Poppins', sans-serif; /* Default Font Family */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a:focus, button:focus {
    outline: 2px solid var(--four-color);  
    box-shadow: 0 0 0 2px var(--four-color); 
}

body.dark-mode {
    background-color: var(--tri-color);
    color: var(--secondary-color);
}

/* Header Styles */
header {
    width: 100%;
    background-color: var(--primary-color);
    padding: 0.9375rem;
    display: flex;
    justify-content: center;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
nav {
    width: 90%;
    max-width: 75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Styles */
.logo {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo img {
    display: inline;
    width: 2.5rem;
    height: auto;
}

.logo:hover, .logo:focus {
    transform: scale(1.05);
    color: var(--four-color);
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 0.9375rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.3125rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--four-color); /* Change color on hover */
    background-color: rgba(255, 255, 255, 0.1); /* Add light background on hover */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0.125rem;
    background-color: var(--secondary-color);
    bottom: -0.3125rem;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger:focus {
    outline: 2px solid var(--four-color);
}

/* Date Container */
.date-container {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.current-date, .time-container  {
    color: var(--secondary-color);
    font-size: 1rem;
}

.current-date:hover, .time-container:hover {
    color: var(--four-color); /* Change color on hover */
}

/* Responsive CSS Fix for Mobile View */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 67.5rem) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    header {
        padding: 10px;
        text-align: center;
    }
    
    .logo {
        font-size: 2.2rem;
    }

    .logo img {
        width: 1.8rem;
    }

    .container {
        padding: 0 10px;
    }

    .services {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .services .service-card {
        width: 90%;
        margin-bottom: 20px;
    }

    .footer {
        text-align: center;
        padding: 20px;
        position: relative;
        bottom: 0;
        width: 100%;
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }
}


@media (max-width: 67.5rem) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 5rem;
        right: 0;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        padding: 0.625rem 0;
        box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.625rem 0;
    }

    .nav-links a {
        padding: 0.625rem;
        display: block;
    }

    .nav-links .mobile-only .date-container {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 0.625rem;
        padding: 0.625rem 0;
    }

    .nav-links .mobile-only .current-date {
        display: block !important;
        color: var(--secondary-color);
        font-size: 1.25rem;
    }

    .nav-links .mobile-only .e-Paper {
        display: block !important;
        color: var(--secondary-color);
        text-decoration: none;
    }

    .nav-links .mobile-only .e-Paper:hover {
        color: var(--four-color);
    }

    .nav-links .mobile-only .login-btn {
        width: 100%;
        text-align: center;
        margin: 0.625rem 0;
        background-color: var(--four-color);
        color: var(--secondary-color);
        border: none;
        padding: 0.625rem;
        border-radius: 0.3125rem;
        cursor: pointer;
    }

    .nav-links .mobile-only .login-btn:hover {
        background-color: var(--primary-color);
    }

    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 67.5rem) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 67.5rem) {
    .footer-container {
        padding: 1rem 0.5rem;
    }

    .footer-second-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-about {
        text-align: center;
    }

    .contact-info {
        min-width: 100%;
        text-align: center;
    }

    .links-container {
        flex-direction: row;
        gap: 1.5rem;
        min-width: 100%;
    }

    .social-links,
    .useful-links {
        min-width: 100%;
        text-align: center;
    }

    .copyright-policy-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .policy-buttons {
        justify-content: center;
        flex-direction: column;
    }
}

/* Footer Styles */

footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 2rem 1rem;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.footer-about {
    flex: 1;
    width: 100%;
    text-align: left;
}

.footer-about p {
    font-size: 1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
}

.footer-second-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.contact-info {
    flex: 1;
    max-width: 30%;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--four-color);
}

.contact-info a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
}

.contact-info a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--four-color);
    bottom: -0.25rem;
    left: 0;
    transition: width 0.3s ease;
}

.contact-info a:hover::after {
    width: 100%;
}

.contact-info a:hover {
    color: var(--four-color);
    transform: translateX(5px);
}

.links-container {
    display: flex;
    gap: 2rem;
    flex: 1;
    min-width: 300px;
}

.social-links,
.useful-links {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.social-links h3,
.useful-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--four-color);
}

.social-links ul,
.useful-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links ul li,
.useful-links ul li {
    margin-bottom: 0.5rem;
}

.social-links ul li a,
.useful-links ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.social-links ul li a::after,
.useful-links ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--four-color);
    bottom: -0.25rem;
    left: 0;
    transition: width 0.3s ease;
}

.social-links ul li a:hover::after,
.useful-links ul li a:hover::after {
    width: 100%;
}

.social-links ul li a:hover,
.useful-links ul li a:hover {
    color: var(--four-color);
    transform: translateX(5px);
}

.social-links ul li a i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links ul li a:hover i {
    transform: scale(1.2);
}

.useful-links ul li a i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.useful-links ul li a:hover i {
    transform: scale(1.2);
}

.copyright-policy-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    border-top: 1px solid rgba(209, 248, 239, 0.2);
    margin-top: 2rem;
}

.copyright-policy-container p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.copyright-policy-container p a {
    text-decoration: none;
    color: var(--four-color);
    font-weight: 600;
}

.policy-buttons {
    display: flex;
    gap: 1rem;
}

.policy-btn {
    color: var(--four-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.policy-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -0.25rem;
    left: 0;
    transition: width 0.3s ease;
}

.policy-btn:hover::after {
    width: 100%;
}

.policy-btn:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Floating Buttons Section */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

/* Button Container */
.floating-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--four-color); /* Base Color */
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Button Hover Effect */
.floating-button-container:hover {
    background-color: var(--primary-color); /* Darker Shade */
    transform: scale(1.1);
}

/* Icons */
.floating-button-container i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Dropdowns and Options */
.language-selector,
.share-options,
.chat-options {
    display: none;
    position: absolute;
    right: 60px;
    bottom: 0; /* Align dropdowns to the bottom of the button */
    background-color: var(--primary-color); /* Light Green */
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 150px;
    z-index: 1001; /* Ensure it appears above other elements */
}

.language-selector.show,
.share-options.show,
.chat-options.show {
    display: block;
}

.language-selector label,
.share-options button,
.chat-options a {
    color: var(--four-color); /* Dark Blue */
    font-size: 1rem;
    font-weight: bold;
}

.language-selector select,
.share-options button,
.chat-options a {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    background-color: var(--four-color);
    color: var(--secondary-color); /* Corrected text color */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-selector select:hover,
.share-options button:hover,
.chat-options a:hover {
    background-color: var(--text-color); /* Medium Blue */
    color: var(--secondary-color);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: var(--text-color);
    color: var(--secondary-color);
}

body.dark-mode .floating-button-container {
    background-color: var(--four-color);
}

body.dark-mode .floating-button-container:hover {
    background-color: var(--primary-color);
}

body.dark-mode .language-selector,
body.dark-mode .share-options,
body.dark-mode .chat-options {
    background-color: var(--text-color); /* Darker background for dropdowns in dark mode */
    color: var(--secondary-color);
}

body.dark-mode .language-selector select,
body.dark-mode .share-options button,
body.dark-mode .chat-options a {
    background-color: var(--primary-color);
    color: var(--text-color);
}

body.dark-mode .language-selector select:hover,
body.dark-mode .share-options button:hover,
body.dark-mode .chat-options a:hover {
    background-color: var(--four-color);
    color: var(--primary-color);
}

/* Dark Mode Navigation Styles */
body.dark-mode header {
    background-color: var(--text-color); /* Dark background for header */
}

body.dark-mode .logo {
    color: var(--secondary-color); /* White text for logo */
}

body.dark-mode .nav-links a {
    color: var(--secondary-color); /* White text for navigation links */
}

body.dark-mode .nav-links a:hover {
    color: var(--four-color); /* Blue text on hover */
    background-color: rgba(255, 255, 255, 0.1); /* Light background on hover */
}

body.dark-mode .nav-links a::after {
    background-color: var(--four-color); /* Blue underline on hover */
}

body.dark-mode .hamburger {
    color: var(--secondary-color); /* White color for hamburger icon */
}

body.dark-mode .hamburger:hover {
    color: var(--four-color); /* Blue color on hover */
}

body.dark-mode .current-date {
    color: var(--secondary-color); /* White color for current date */
}

body.dark-mode .current-date:hover {
    color: var(--four-color); /* Blue color on hover */
}

/* Dark Mode Footer Styles */
body.dark-mode footer {
    background-color: var(--text-color); /* Dark background for footer */
}

body.dark-mode .footer-about p {
    color: rgba(255, 255, 255, 0.8); /* Light text color for footer about section */
}

body.dark-mode .contact-info a {
    color: var(--secondary-color); /* White text for contact links */
}

body.dark-mode .contact-info a:hover {
    color: var(--four-color); /* Blue text on hover */
}

body.dark-mode .contact-info a::after {
    background-color: var(--four-color); /* Blue underline on hover */
}

body.dark-mode .social-links ul li a,
body.dark-mode .useful-links ul li a {
    color: var(--secondary-color); /* White text for social and useful links */
}

body.dark-mode .social-links ul li a:hover,
body.dark-mode .useful-links ul li a:hover {
    color: var(--four-color); /* Blue text on hover */
}

body.dark-mode .social-links ul li a::after,
body.dark-mode .useful-links ul li a::after {
    background-color: var(--four-color); /* Blue underline on hover */
}

body.dark-mode .copyright-policy-container p {
    color: rgba(255, 255, 255, 0.7); /* Light text color for copyright text */
}

body.dark-mode .copyright-policy-container p a {
    color: var(--four-color); /* Blue text for links in copyright section */
}

body.dark-mode .policy-btn {
    color: var(--four-color); /* Blue text for policy buttons */
}

body.dark-mode .policy-btn:hover {
    color: var(--secondary-color); /* White text on hover */
}

body.dark-mode .policy-btn::after {
    background-color: var(--secondary-color); /* White underline on hover */
}

main h1, h2, h3 {
    color: var(--primary-color);
}

p {
    color: var(--text-color);
    line-height: 1.6;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero {
    background-color: var(--tri-color);
    padding: 50px 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
}

/* Color for "GyanTimes.com" */
#typewriter .highlight {
    color: var(--four-color); /* Green color for GyanTimes.com */
}

#changingText {
    color: var(--tri-color);
    background-color: var(--four-color);
}

/* Color for changing words */
#changingText .highlight {
    color: var(--secondary-color); /* Red color for Notes, Guidelines, PracticeSet, Tools */
}



.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}



.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--four-color);
    color: var(--secondary-color);
    font-weight: bold;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--four-color);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Services Section */
.services {
    padding: 50px 20px;
    background-color: var(--secondary-color);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.services-container p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--tri-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 5rem;
    color: var(--four-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
}

/* Dark Mode Styles for Main Section */
body.dark-mode main {
    background-color: var(--text-color);
    color: var(--secondary-color);
}

body.dark-mode main h1,
body.dark-mode main h2,
body.dark-mode main h3 {
    color: var(--secondary-color);
}

body.dark-mode main p {
    color: var(--secondary-color);
}

body.dark-mode .hero {
    background-color: var(--text-color);
}

body.dark-mode .hero-content h1 {
    color: var(--secondary-color);
}

body.dark-mode .hero-content p {
    color: var(--secondary-color);
}

body.dark-mode .cta-btn {
    background-color: var(--four-color);
    color: var(--secondary-color);
}

body.dark-mode .cta-btn:hover {
    background-color: var(--primary-color);
}

body.dark-mode .services {
    background-color: var(--text-color);
}

body.dark-mode .services-container h2 {
    color: var(--secondary-color);
}

body.dark-mode .services-container p {
    color: var(--secondary-color);
}

body.dark-mode .service-card {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

body.dark-mode .service-card h3 {
    color: var(--secondary-color);
}

body.dark-mode .service-card p {
    color: var(--secondary-color);
}

body.dark-mode .service-icon {
    color: var(--four-color);
}

/* Blog Section */
.blog {
    padding: 50px 20px;
    background-color: var(--secondary-color);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.blog-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.blog-container p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.blog-card {
    background-color: var(--tri-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-content p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.blog-content .cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--four-color);
    color: var(--secondary-color);
    font-weight: bold;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.blog-content .cta-btn:hover {
    background-color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
    padding: 50px 20px;
    background-color: var(--tri-color);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.testimonials-container p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.testimonial-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-content span {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Newsletter Section */
.newsletter {
    padding: 50px 20px;
    background-color: var(--secondary-color);
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.newsletter-container p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    padding: 10px;
    width: 300px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form .cta-btn {
    padding: 10px 20px;
    background-color: var(--four-color);
    color: var(--secondary-color);
    font-weight: bold;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form .cta-btn:hover {
    background-color: var(--primary-color);
}

/* Dark Mode Styles for Blog, Testimonials, and Newsletter Sections */
body.dark-mode .blog {
    background-color: var(--text-color);
}

body.dark-mode .blog-container h2 {
    color: var(--secondary-color);
}

body.dark-mode .blog-container p {
    color: var(--secondary-color);
}

body.dark-mode .blog-card {
    background-color: var(--primary-color);
}

body.dark-mode .blog-card h3 {
    color: var(--secondary-color);
}

body.dark-mode .blog-card p {
    color: var(--secondary-color);
}

body.dark-mode .testimonials {
    background-color: var(--text-color);
}

body.dark-mode .testimonials-container h2 {
    color: var(--secondary-color);
}

body.dark-mode .testimonials-container p {
    color: var(--secondary-color);
}

body.dark-mode .testimonial-card {
    background-color: var(--primary-color);
}

body.dark-mode .testimonial-card p {
    color: var(--secondary-color);
}

body.dark-mode .testimonial-card h3 {
    color: var(--secondary-color);
}

body.dark-mode .testimonial-card span {
    color: var(--secondary-color);
}

body.dark-mode .newsletter {
    background-color: var(--text-color);
}

body.dark-mode .newsletter-container h2 {
    color: var(--secondary-color);
}

body.dark-mode .newsletter-container p {
    color: var(--secondary-color);
}

body.dark-mode .newsletter-form input[type="email"] {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--four-color);
}

body.dark-mode .newsletter-form .cta-btn {
    background-color: var(--four-color);
    color: var(--secondary-color);
}

body.dark-mode .newsletter-form .cta-btn:hover {
    background-color: var(--primary-color);
}

main hr {
    margin: 10px 0;
    border: none;
    border-top: 1px solid var(--tri-color);
}

/* Mobile Screen Styles */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    #typewriter {
        font-size: 2rem;
    }

    #changingText {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image img {
        width: 100%;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .service-card {
        padding: 15px;
    }

    .service-icon {
        font-size: 3rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .blog-card {
        padding: 15px;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .blog-content p {
        font-size: 0.9rem;
    }

    /* Testimonials Section */
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .testimonial-card {
        padding: 15px;
    }

    .testimonial-content p {
        font-size: 0.9rem;
    }

    .testimonial-content h3 {
        font-size: 1.1rem;
    }

    .testimonial-content span {
        font-size: 0.8rem;
    }

    /* Newsletter Section */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .newsletter-form .cta-btn {
        width: 100%;
    }
}

/* Styles for screens with a maximum width of 450px */
@media (max-width: 450px) {
    /* Hero Section */
    .hero {
        padding: 30px 10px;
    }

    .hero-container {
        gap: 20px;
    }

    #typewriter {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }

    #changingText {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .cta-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Services Section */
    .services {
        padding: 30px 10px;
    }

    .services-container h2 {
        font-size: 1.8rem;
    }

    .services-container p {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .service-card {
        padding: 15px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    /* Blog Section */
    .blog {
        padding: 30px 10px;
    }

    .blog-container h2 {
        font-size: 1.8rem;
    }

    .blog-container p {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .blog-card {
        padding: 15px;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }

    .blog-content p {
        font-size: 0.8rem;
    }

    .blog-content .cta-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 30px 10px;
    }

    .testimonials-container h2 {
        font-size: 1.8rem;
    }

    .testimonials-container p {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .testimonial-card {
        padding: 15px;
    }

    .testimonial-card img {
        width: 60px;
        height: 60px;
    }

    .testimonial-content p {
        font-size: 0.8rem;
    }

    .testimonial-content h3 {
        font-size: 1rem;
    }

    .testimonial-content span {
        font-size: 0.7rem;
    }

    /* Newsletter Section */
    .newsletter {
        padding: 30px 10px;
    }

    .newsletter-container h2 {
        font-size: 1.8rem;
    }

    .newsletter-container p {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
        padding: 8px;
        font-size: 0.9rem;
    }

    .newsletter-form .cta-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Styles for screens with a minimum width of 769px */
@media (min-width: 769px) {
    /* Hero Section */
    .hero {
        padding: 60px 30px;
    }

    .hero-container {
        gap: 50px;
    }

    #typewriter {
        font-size: 3.5rem;
        letter-spacing: 0.2em;
    }

    #changingText {
        font-size: 2.5rem;
        margin-top: 30px;
    }

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 30px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .cta-btn {
        padding: 12px 24px;
        font-size: 1.1rem;
    }

    /* Services Section */
    .services {
        padding: 60px 30px;
    }

    .services-container h2 {
        font-size: 2.5rem;
    }

    .services-container p {
        font-size: 1.2rem;
        margin-bottom: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }

    .service-card {
        padding: 30px;
    }

    .service-icon {
        font-size: 6rem;
    }

    .service-card h3 {
        font-size: 1.8rem;
    }

    .service-card p {
        font-size: 1.1rem;
    }

    /* Blog Section */
    .blog {
        padding: 60px 30px;
    }

    .blog-container h2 {
        font-size: 2.5rem;
    }

    .blog-container p {
        font-size: 1.2rem;
        margin-bottom: 50px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }

    .blog-card {
        padding: 30px;
    }

    .blog-content h3 {
        font-size: 1.8rem;
    }

    .blog-content p {
        font-size: 1.1rem;
    }

    .blog-content .cta-btn {
        padding: 12px 24px;
        font-size: 1.1rem;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 60px 30px;
    }

    .testimonials-container h2 {
        font-size: 2.5rem;
    }

    .testimonials-container p {
        font-size: 1.2rem;
        margin-bottom: 50px;
    }

    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }

    .testimonial-card {
        padding: 30px;
    }

    .testimonial-card img {
        width: 100px;
        height: 100px;
    }

    .testimonial-content p {
        font-size: 1.1rem;
    }

    .testimonial-content h3 {
        font-size: 1.5rem;
    }

    .testimonial-content span {
        font-size: 1rem;
    }

    /* Newsletter Section */
    .newsletter {
        padding: 60px 30px;
    }

    .newsletter-container h2 {
        font-size: 2.5rem;
    }

    .newsletter-container p {
        font-size: 1.2rem;
        margin-bottom: 50px;
    }

    .newsletter-form input[type="email"] {
        width: 400px;
        padding: 12px;
        font-size: 1.1rem;
    }

    .newsletter-form .cta-btn {
        padding: 12px 24px;
        font-size: 1.1rem;
    }
}