/* --- General Styles & Variables --- */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #FFE66D;
    --accent-color: #4ECDC4;
    --bg-light: #FAFAFA;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #fff;
    --border-color: #E8E8E8;
    --star-color: #FF6B6B;
    --footer-bg: #2C3E50;
    --footer-link: #FF6B6B;
    --footer-link-hover: #FFE66D;
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-family);
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; color: var(--text-dark); text-align: center; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.py-5 {
    padding: 4rem 0;
}

.bg-white {
    background: var(--white);
}

.mb-4 {
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-primary:hover { 
    background-color: #FF5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary { 
    background-color: var(--white); 
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover { 
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
    background: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    height: 60px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.3rem 0;
}

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

.nav-cta {
    background: var(--text-dark);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 4rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: 2rem; /* Space from all sides */
    border-radius: 1.5rem;

    background: url('../images/background.png') no-repeat center / cover;

    /* Subtle fading effect on edges
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%); */

    /* Optional: soften the container too */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    z-index: -1;
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--footer-bgg);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 130%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* --- Stats Section --- */
.stats-section {
    padding: 3rem 0;
    background: var(--white);
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-text h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.stats-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.stats-numbers {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.stats-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* --- How It Works Section --- */
.how-it-works {
    padding: 4rem 0;
    background: var(--bg-light);
}

.how-it-works h2 {
    margin-bottom: 1rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.step-card .icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* --- Products Section --- */
.products-section {
    padding: 4rem 0;
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.product-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-content {
    padding: 1.5rem;
}

.grade-range {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.product-features li {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Partner Logos --- */
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.partner-logos img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logos img:hover {
    opacity: 1;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.testimonials-section h2 {
    margin-bottom: 1rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.testimonial-card .rating {
    color: var(--star-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info .author-details {
    display: flex;
    flex-direction: column;
}

.author-info .author-name {
    font-weight: 600;
    color: var(--text-dark);
}

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

/* --- Footer --- */
.main-footer {
    background: var(--footer-bg);
    color: #BDC3C7;
    padding: 3rem 0 1rem;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #BDC3C7;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    gap: 0;
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.newsletter-form button {
    border: none;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #FF5252;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #34495E;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #95A5A6;
}

/* --- About Us Page Styles --- */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-text h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Team Section */
.team-section {
    margin: 60px 0;
}

.team-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.team-member h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

/* Values Section */
.values-section {
    margin: 60px 0;
}

.values-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.value-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

/* Impact Section */
.impact-section {
    margin: 60px 0;
    text-align: center;
}

.impact-section h3 {
    margin-bottom: 40px;
    color: var(--text-dark);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.impact-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.impact-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.impact-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 22px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

.contact-form-container {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
}

/* Responsive styles for about page */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .team-grid,
    .values-grid,
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .impact-stats {
        grid-template-columns: 1fr;
    }
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .hero-content,
    .stats-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .stats-numbers {
        justify-content: center;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .stats-numbers {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .product-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logos {
        gap: 1rem;
    }
    
    .partner-logos img {
        height: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section,
    .stats-section,
    .how-it-works,
    .products-section,
    .testimonials-section,
    .py-5 {
        padding: 2rem 0;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .step-card,
    .product-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-numbers {
        gap: 1rem;
    }
    
    .partner-logos {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Product Details Page --- */
.product-details-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.product-details-grid {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.product-details-grid .product-image {
    flex: 1 1 350px;
    max-width: 450px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-details-grid .product-image img {
    width: 100%;
    max-width: 350px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow-light);
}

.product-details-grid .product-content {
    flex: 2 1 400px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-details-grid .product-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-details-grid .product-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

.product-details-grid .price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-details-grid form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.product-details-grid input[type="number"] {
    width: 80px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .product-details-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }
    .product-details-grid .product-image,
    .product-details-grid .product-content {
        max-width: 100%;
        padding: 1.5rem;
    }
}

/* --- Global Layout Fixes --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    width: 100%;
}

main {
    flex: 1 0 auto;
    width: 100%;
    display: block;
    padding-top: 20px;
}

.main-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

/* Main navigation styles */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    height: 60px;
}

/* Sticky header scroll effect */
.main-header {
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Create a script element at the end of the body to handle the scroll effect */
@media (min-width: 768px) {
    .main-header::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--border-color), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .main-header.scrolled::after {
        opacity: 1;
    }
}