/* Base Styles and Variables */
:root {
    --primary-red: #ff3a2d;
    --secondary-blue: #0066cc;
    --dark-text: #333333;
    --light-text: #666666;
    --bg-light-gray: #f8f9fa;
    --bg-white: #ffffff;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: var(--transition);
}

a:hover {
    color: #d42d22;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

img {
    max-width: 100%;
}

.highlight {
    color: var(--primary-red);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background-color: #d42d22;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: white;
}

/* Header and Navigation Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 5px 0;
}

/* Top Navigation */
.top-nav {
    display: flex;
    align-items: center;
    padding: 5px 0;
    width: 100%;
    background-color: #fff;
    overflow: hidden; /* Contains all children including overflow */
    border-bottom: 1px solid #eee;
}

/* Fixed Why Pi? section */
.fixed-feature {
    flex: 0 0 auto;
    margin-right: 30px;
    z-index: 2;
    background-color: #fff;
    position: relative;
    padding-right: 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 100px;
}

.fixed-feature .feature-item a {
    font-weight: 600;
    color: var(--primary-red);
}

.logo img {
    height: 60px;
    width: auto;
}

/* Completely new approach - inline-block for simplicity */
.scrolling-features {
    display: block;
    overflow: hidden;
    width: 75%;
    position: relative;
}

/* Using inline-block for natural flow */
.feature-items {
    white-space: nowrap;
    animation: scroll-text 15s linear infinite;
    display: inline-block;
}

/* Animation starts right away */
@keyframes scroll-text {
    from { transform: translateX(75%); }
    to { transform: translateX(-125%); }
}

/* Minimal feature item styling */
.feature-item {
    display: inline-block;
    padding: 0;
    margin: 0 15px;
    white-space: nowrap;
}

/* Only need one set of items */
.scrolling-features .feature-items:nth-child(2) {
    display: none;
}

/* Add gradient fade effect to edges */
.scrolling-features::before,
.scrolling-features::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 5%;
    z-index: 2;
    pointer-events: none;
}

/* No hover pause effect for continuous motion */

/* Add a gradient fade effect on the edges */
.scrolling-features::before,
.scrolling-features::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    z-index: 1;
}

.scrolling-features::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.scrolling-features::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* No longer using margin - each item has fixed width */
.feature-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Icon styling with fixed dimensions */
.feature-item i {
    /* margin-right: 15px; */
    color: var(--primary-red);
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem;
    white-space: nowrap;
    letter-spacing: 0.03em;
    padding: 0 5px;
}

.feature-item a {
    color: var(--dark-text);
    font-weight: 500;
}

.feature-item a:hover {
    color: var(--primary-red);
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--dark-text);
    padding: 8px 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red);
}

.main-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover:after,
.main-nav .nav-link.active:after {
    width: 100%;
}

.main-nav .contact-btn {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
}

.main-nav .contact-btn:hover {
    background-color: #d42d22;
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* Legacy Navigation Styles for backwards compatibility */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 500;
}

.nav-links a.active, 
.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links .btn-contact {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-links .btn-contact:hover {
    background-color: #d42d22;
    color: white;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 50px 0 40px;
    background: linear-gradient(rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.9)), url('../images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    min-height: calc(100vh - 120px); /* Viewport height minus header */
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    width: 100%;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 5px;
    text-align: center;
}

.hero-title .lifetech {
    color: var(--primary-red);
    font-weight: 700;
}

.skills-text {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 2px;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--light-text);
    margin: 0 auto 10px;
    max-width: 800px;
    padding: 0 10px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
}

/* Homepage Hero Feature Buttons */
.feature-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 100px 100px;
    gap: 15px;
    max-width: 900px;
    margin: 20px auto 0;
    width: 100%;
}

.feature-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    border-radius: 25px;
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;
}

.feature-button i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.courses-btn {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/courses-image.jpg');
    background-size: cover;
    background-position: center;
}

.jobs-btn {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/jobs-image.jpg');
    background-size: cover;
    background-position: center;
}

.licensing-btn {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/licensing-image.jpg');
    background-size: cover;
    background-position: center;
}

.test-btn {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/test-image.jpg');
    background-size: cover;
    background-position: center;
}

.feature-button img {
    width: 24px;
    margin-right: 10px;
}

/* LifeTech Section */
.lifetech {
    padding: 80px 0;
    /* background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('../images/features-bg.jpg'); */
    background-size: cover;
    background-position: center;
}

.lifetech-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 58, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary-red);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Pi Section */
.pi {
    padding: 100px 0;
    background-color: var(--bg-light-gray);
}

.pi .container {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 50px;
    align-items: center;
}

.pi-content {
    text-align: left;
}

.pi-content .section-title {
    text-align: left;
}

.pi-content > p {
    margin-bottom: 40px;
    color: var(--light-text);
}

.pi-values {
    display: grid;
    gap: 25px;
}

.pi-value h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.pi-value h3 i {
    color: var(--primary-red);
}

.pi-value p {
    color: var(--light-text);
}

.pi-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Journey with Pi Section */
.journey {
    padding: 120px 0;
    position: relative;
    background-color: var(--bg-white);
}

.journey-path {
    position: relative;
    margin: 80px auto 60px;
    max-width: 900px;
}

.journey-line {
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 50px;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-red) 0%, var(--secondary-orange) 100%);
    border-radius: 4px;
    z-index: 1;
}

.journey-step {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.journey-step:last-child {
    margin-bottom: 0;
}

.step-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 58, 45, 0.2);
    margin-right: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-step:nth-child(2n) .step-icon {
    background: var(--gradient-orange);
    box-shadow: 0 10px 30px rgba(255, 179, 71, 0.2);
}

.step-icon i {
    font-size: 36px;
    color: white;
}

.step-content {
    padding: 20px 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.journey-step:hover .step-icon {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 58, 45, 0.3);
}

.journey-step:nth-child(2n):hover .step-icon {
    box-shadow: 0 15px 40px rgba(255, 179, 71, 0.3);
}

.journey-step:hover .step-content {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.journey-step:nth-child(2n) .step-number {
    color: var(--secondary-orange);
}

.step-content h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--dark-text);
}

.step-content p {
    color: var(--light-text);
    line-height: 1.6;
}

.journey-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

/* Responsive styles for journey section */
@media (max-width: 768px) {
    .journey-line {
        left: 30px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        margin-right: 20px;
    }
    
    .step-icon i {
        font-size: 24px;
    }
    
    .step-content {
        padding: 15px 20px;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .journey-step {
        flex-direction: column;
        margin-bottom: 40px;
    }
    
    .journey-line {
        left: 30px;
        top: 30px;
        bottom: 0;
    }
    
    .step-icon {
        margin-bottom: 15px;
    }
    
    .journey-step:hover .step-content {
        transform: translateY(5px);
    }
}

/* Courses & Licensing Section */
.courses {
    padding: 100px 0;
    background-color: var(--bg-light-gray);
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-level {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-red);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-details {
    padding: 25px;
}

.course-details h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.course-meta i {
    margin-right: 5px;
}

.course-details p {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.course-badges span {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-badges i {
    margin-right: 5px;
}

.license-badge {
    background-color: rgba(255, 58, 45, 0.1);
    color: var(--primary-red);
}

.cert-badge {
    background-color: rgba(0, 123, 255, 0.1);
    color: #0075e8;
}

.partner-badge {
    background-color: rgba(40, 167, 69, 0.1);
    color: #25a244;
}

.course-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.course-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.course-link:hover i {
    transform: translateX(5px);
}

.placeholder-text {
    text-align: center;
    color: var(--light-text);
    padding: 50px 0;
}

.courses-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    overflow: hidden;
}

.testimonial {
    flex: 1;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--light-text);
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: bold;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Become Partner Section */
.become-partner {
    padding: 100px 0;
    background-color: var(--bg-light-gray);
}

.partner-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.benefit-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-red);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    color: #fff;
    font-size: 28px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.benefit-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.partner-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 58, 45, 0.9), rgba(255, 58, 45, 0.9)), url('../assets/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-red);
    margin-right: 15px;
}

.cta .btn-primary:hover {
    background-color: var(--bg-light-gray);
    color: var(--primary-red);
}

.cta .btn-secondary {
    border-color: white;
    color: white;
}

.cta .btn-secondary:hover {
    background-color: white;
    color: var(--primary-red);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 70px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 150px;
    width: auto;
    max-width: 150px !important;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column a {
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    /* Top Navigation */
    .top-nav {
        padding: 8px 0;
    }
    
    .fixed-feature {
        margin-right: 10px;
        padding-right: 10px;
    }
    
    .scrolling-features {
        overflow: hidden;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
    
    .feature-item i {
        font-size: 0.85rem;
    }
    
    /* Main Navigation */
    .main-nav {
        justify-content: space-between;
    }
    
    .nav-links {
        display: flex;
        align-items: center;
    }
    
    /* Content Layout */
    .hero .container,
    .pi .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image,
    .pi-image {
        order: -1;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-image img,
    .pi-image img {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .lifetech-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pi-content .section-title {
        text-align: center;
    }
    
    /* Footer */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-around;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Header simplification */
    header {
        padding: 8px 0;
    }
    
    /* Top Navigation */
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 3px 0;
        overflow-x: hidden; /* Prevent horizontal overflow on mobile */
    }
    
    .hero {
        min-height: calc(100vh - 100px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .fixed-feature {
        margin-bottom: 5px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 5px;
    }
    
    .scrolling-features {
        width: 100%;
    }
    
    .scrolling-features .feature-items {
        animation-duration: 20s; /* Faster on mobile */
    }
    
    .scrolling-features .feature-items:nth-child(2) {
        animation-duration: 20s;
        animation-delay: -10s;
    }
    
    .feature-item span {
        font-size: 0.8rem;
    }
    
    .feature-item i {
        font-size: 0.8rem;
        /* margin-right: 3px; */
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        padding: 5px 0;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Mobile Menu */
    .hamburger {
        display: flex;
        position: absolute;
        top: 25px;
        right: 20px;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links .nav-link {
        margin: 10px 0;
    }
    
    /* Content Layout */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .course-cards {
        grid-template-columns: 1fr;
    }
    
    /* Footer Mobile */
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    /* Extra small device optimizations */
    .scrolling-features {
        width: 90%;
    }
    
    .scrolling-features .feature-items {
        animation-duration: 15s; /* Even faster on smallest screens */
        padding-right: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-buttons {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 70px);
        gap: 12px;
        margin-top: 15px;
    }
    
    .feature-button {
        height: 70px;
        font-size: 1.2rem;
        border-radius: 20px;
    }
    
    .scrolling-features .feature-items:nth-child(2) {
        animation-duration: 15s;
        animation-delay: -7.5s;
    }
    
    .fixed-feature {
        margin-right: 15px;
        min-width: 80px;
    }
    
    .feature-item span {
        font-size: 0.75rem;
    }
    
    .feature-item i {
        font-size: 0.75rem;
        /* margin-right: 2px; */
    }
}

@media (max-width: 576px) {
    .lifetech-features {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .cta .btn-primary {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta .btn-primary,
    .cta .btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
    }
}
