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

:root {
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #9ca3af;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', 'Hind', sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef7ff 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header Styles */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px 0;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero h1 i {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    font-weight: 500;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8rem;
    box-shadow: var(--shadow);
}

/* Calculator Section */
.calculator-section {
    padding: 40px 0;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 50px;
}

.card-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.card-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header p {
    opacity: 0.9;
}

.calculator-container {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group label i {
    color: var(--primary-color);
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-weight: 500;
}

.range-slider {
    margin-top: 10px;
}

.range-slider input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.range-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

.gender-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.gender-btn:hover {
    border-color: var(--primary-light);
}

.gender-btn.active {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.calculate-button {
    grid-column: span 2;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s;
}

.calculate-button:hover {
    transform: translateY(-2px);
}

/* Result Section */
.result-section {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.result-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
}

.reset-btn {
    padding: 10px 20px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: var(--border-color);
}

.result-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.bmi-circle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        #3b82f6 0% 25%,
        #10b981 25% 50%,
        #f59e0b 50% 75%,
        #ef4444 75% 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    background: white;
    border-radius: 50%;
}

.circle span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.circle-label {
    font-size: 1.2rem;
    color: var(--gray-color);
    position: relative;
    z-index: 1;
    margin-top: 5px;
}

.bmi-category {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.category.active {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.category-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.category-color.underweight { background: #3b82f6; }
.category-color.normal { background: #10b981; }
.category-color.overweight { background: #f59e0b; }
.category-color.obese { background: #ef4444; }

.category span:first-of-type {
    flex: 1;
    font-weight: 500;
}

.category span:last-of-type {
    font-weight: 600;
    color: var(--dark-color);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-box {
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.detail-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.detail-box h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.detail-box p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Info Section */
.info-section {
    padding: 60px 0;
}

.info-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.info-card {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

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

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.info-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom .disclaimer {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #6b7280;
}

.footer-bottom i.fa-heart {
    color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .calculate-button {
        grid-column: span 1;
    }
    
    .result-container {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .circle {
        width: 150px;
        height: 150px;
    }
    
    .circle::before {
        width: 130px;
        height: 130px;
    }
    
    .circle span {
        font-size: 2rem;
    }
}
