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

html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header and Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: #667eea;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 1;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: #4a5568;
    padding: 1rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.dropdown-content a:hover {
    background: #f7fafc;
    color: #667eea;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* Calculator Section */
.calculator-section {
    margin: 3rem 0;
    text-align: center;
}

.calculator-section .dropdown {
    margin-bottom: 1.5rem;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

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

.calculator-card p {
    color: #718096;
    margin-bottom: 2rem;
    text-align: center;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-radius: 12px;
    border-left: 4px solid #48bb78;
}

.result-section h3 {
    color: #2f855a;
    margin-bottom: 1rem;
}

.result-content p {
    margin: 0.5rem 0;
    color: #2d3748;
}

.result-content span {
    font-weight: 600;
    color: #2f855a;
}

/* CTA Section */
.cta-section {
    margin: 3rem 0;
}

.cta-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-card h3 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
}

/* Information Section */
.info-section {
    margin: 3rem 0;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.info-card h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.info-card h3 {
    color: #4a5568;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.info-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.info-card ol {
    color: #718096;
    margin-left: 2rem;
    line-height: 1.8;
}

.info-card ol li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    margin-top: 4rem;
}

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

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

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

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

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

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

    .calculator-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .cta-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .info-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .dropdown-content {
        min-width: 260px;
        left: -50px;
    }
}

@media (max-width: 480px) {
    .dropdown-content {
        left: -100px;
        min-width: 240px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}