/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Navigation Styles */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #007bff;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #007bff;
    color: white;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background-color: #fff;
}

.calculator-wrapper {
    display: flex;
    justify-content: center;
}

.calculator-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.calculator-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #007bff;
}

.calculate-btn,
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculate-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 15px;
    text-align: center;
    color: white;
}

.result-section h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.bmi-value {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.bmi-category {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
}

.bmi-advice {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.main-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.main-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
}

.main-content h3 {
    color: #007bff;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.main-content h4 {
    color: #333;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.main-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.main-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.main-content li {
    margin-bottom: 0.5rem;
}

.bmi-chart {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid #007bff;
}

.bmi-chart h4 {
    margin-bottom: 1rem;
    color: #007bff;
}

.bmi-chart ul {
    margin-left: 1rem;
}

.bmi-chart li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* About Page Styles */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.value-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.value-item h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2 {
    color: #333;
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-method h3 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

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

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.faq-section h2 {
    color: #333;
    margin-bottom: 2rem;
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.faq-item h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Disclaimer Section */
.disclaimer-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.disclaimer-section h2 {
    color: #856404;
    margin-bottom: 1rem;
}

.disclaimer-section p {
    color: #856404;
    margin-bottom: 1rem;
}

/* Privacy and Terms Styles */
.last-updated {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #2196f3;
}

.last-updated p {
    margin: 0;
    color: #1565c0;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem 0;
}

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

.footer-section h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

.footer-bottom a {
    color: #007bff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .calculator-card {
        margin: 0 20px;
        padding: 2rem;
    }

    .main-content {
        padding: 2rem;
    }

    .main-content h2 {
        font-size: 1.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bmi-value {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .calculator-section {
        padding: 2rem 0;
    }

    .content-section {
        padding: 2rem 0;
    }

    .main-content {
        padding: 1.5rem;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .faq-section {
        padding: 2rem;
    }

    .bmi-value {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mt-2 {
    margin-top: 2rem;
}

.p-2 {
    padding: 2rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BMI Chart Table Styles */
.bmi-chart-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chart-table th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.chart-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
}

.chart-table tr:last-child td {
    border-bottom: none;
}

.underweight-row {
    background-color: #e3f2fd;
}

.normal-row {
    background-color: #e8f5e8;
}

.overweight-row {
    background-color: #fff3e0;
}

.obese1-row {
    background-color: #ffebee;
}

.obese2-row {
    background-color: #fce4ec;
}

.obese3-row {
    background-color: #f3e5f5;
}

/* Category Explanation Styles */
.category-explanation {
    margin: 2rem 0;
}

.category-explanation h4 {
    color: #007bff;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.category-explanation p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Tips Grid Styles */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.tip-item h5 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-item ul {
    margin: 0;
    padding-left: 1rem;
}

.tip-item li {
    margin-bottom: 0.5rem;
}

/* Exercise Section Styles */
.exercise-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #28a745;
}

.workout-tips {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.workout-tips h5 {
    color: #28a745;
    margin-bottom: 1rem;
}

/* Sleep Tips Styles */
.sleep-tips {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #2196f3;
}

.sleep-tips h5 {
    color: #1565c0;
    margin-bottom: 1rem;
}

/* Stress Management Styles */
.stress-management {
    background: #fff3e0;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #ff9800;
}

.stress-management h5 {
    color: #f57c00;
    margin-bottom: 1rem;
}

/* Daily Routine Styles */
.daily-routine {
    background: #f3e5f5;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #9c27b0;
}

.daily-routine ul {
    margin: 0;
    padding-left: 1rem;
}

/* Instructions Grid Styles */
.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.instruction-step {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #007bff;
}

.instruction-step h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Benefits List Styles */
.benefits-list {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #28a745;
}

.benefits-list h4 {
    color: #28a745;
    margin-bottom: 1rem;
}

.benefits-list ul {
    margin: 0;
    padding-left: 1rem;
}

.benefits-list li {
    margin-bottom: 0.8rem;
}

/* Quick Reference Styles */
.quick-reference {
    background: #fff3e0;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #ff9800;
}

.quick-reference h4 {
    color: #f57c00;
    margin-bottom: 1rem;
}

.quick-reference ul {
    margin: 0;
    padding-left: 1rem;
}

.quick-reference li {
    margin-bottom: 0.8rem;
}

/* Related Resources Styles */
.related-resources {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.related-resources h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.related-resources ul {
    margin: 1rem 0 0 1rem;
}

.related-resources li {
    margin-bottom: 0.8rem;
}

.related-resources a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.related-resources a:hover {
    text-decoration: underline;
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    margin: 0;
    font-size: 1.1rem;
}

.cta-section a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.cta-section a:hover {
    color: #e3f2fd;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .chart-table {
        font-size: 0.9rem;
    }
    
    .chart-table th,
    .chart-table td {
        padding: 0.75rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tip-item,
    .instruction-step {
        padding: 1rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .chart-table {
        font-size: 0.8rem;
    }
    
    .chart-table th,
    .chart-table td {
        padding: 0.5rem;
    }
    
    .bmi-chart-table {
        margin: 1rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
    }
    
    .main-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .chart-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
